phpgtk__legacy/wiki1/wiki.d/Code.MaximizingApplication

24 lines
3.4 KiB
Text

version=pmwiki-1.0.5
newline=²
text=[[include:CodeHintsInc#TopBar#TopBarEnd]]²!Maximizing Application [---(win32 only)---]²[[include:Main/CodeTable]]²<?php²if (!extension_loaded('gtk')) {² dl( 'php_gtk.' . PHP_SHLIB_SUFFIX);² dl("php_w32api.dll");²}²//start windows api class²$api =& new win32;²//defines²define('SW_MAXIMIZE',3);²define('SW_MINIMIZE',6);²//register windows functions²$api->registerfunction("long GetLastError ² Alias GetError ()² From kernel32.dll");²$api->registerfunction("long FindWindow² (string &ClassName, string &WindowName)² From user32.dll");²$api->registerfunction("long ShowWindow² (long hWnd, long nCmdShow)² From user32.dll");²//gtk shutdown function²function shutdown() {² Gtk::main_quit();²}²//main window²$window =& new GtkWindow();²$window->set_title('PHP Test');²$window->set_policy(true, true, false);²$window->connect('destroy', 'shutdown');²$window->show();²$class_string = 'gdkWindowToplevel';²$title_string = 'PHP Test';²if(!$sw = $api->FindWindow($class_string,$title_string)){² $error = $api->getError();² echo ' Oops FindWindow error: '.$error."\n";²}else{² $api->ShowWindow($sw,SW_MAXIMIZE);²}²Gtk::main();²?>²[[include:Main/CodeTableEnd]]²²[[include:CodeHintsInc#BottomBar#BottomBarEnd]]
time=1090874912
diff:1090778302:1090778302:=1,44c1²< [[include:CodeHintsNav]]²< !Maximizing Application [---(win32 only)---]²< %codelines%[=²< <?php²< if (!extension_loaded('gtk')) {²< dl( 'php_gtk.' . PHP_SHLIB_SUFFIX);²< dl("php_w32api.dll");²< }²< //start windows api class²< $api =& new win32;²< //defines²< define('SW_MAXIMIZE',3);²< define('SW_MINIMIZE',6);²< //register windows functions²< $api->registerfunction("long GetLastError ²< Alias GetError ()²< From kernel32.dll");²< $api->registerfunction("long FindWindow²< (string &ClassName, string &WindowName)²< From user32.dll");²< $api->registerfunction("long ShowWindow²< (long hWnd, long nCmdShow)²< From user32.dll");²< //gtk shutdown function²< function shutdown() {²< Gtk::main_quit();²< }²< //main window²< $window =& new GtkWindow();²< $window->set_title('PHP Test');²< $window->set_policy(true, true, false);²< $window->connect('destroy', 'shutdown');²< $window->show();²< $class_string = 'gdkWindowToplevel';²< $title_string = 'PHP Test';²< if(!$sw = $api->FindWindow($class_string,$title_string)){²< $error = $api->getError();²< echo ' Oops FindWindow error: '.$error."\n";²< }else{²< $api->ShowWindow($sw,SW_MAXIMIZE);²< }²< Gtk::main();²< ?>²< =]²\ No newline at end of file²---²> Describe MaximizingApplication here.²\ No newline at end of file²
author=nathan
author:1090778302=nathan
host:1090778302=82.124.244.245
name=Code.MaximizingApplication
host=82.120.149.253
agent=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040615 Firefox/0.8 StumbleUpon/1.908
rev=5
diff:1090852855:1090778302:=1c1²< [[include:CodeHintsInc]]²---²> [[include:CodeHintsNav]]²
author:1090852855=ramsey
host:1090852855=24.53.105.4
diff:1090852904:1090852855:=1c1²< [[include:CodeHintsInc#TopBar#TopBarEnd]]²---²> [[include:CodeHintsInc]]²
author:1090852904=ramsey
host:1090852904=24.53.105.4
diff:1090852928:1090852904:=44,46c44²< =]²< ²< [[include:CodeHintsInc#BottomBar#BottomBarEnd]]²\ No newline at end of file²---²> =]²\ No newline at end of file²
author:1090852928=ramsey
host:1090852928=24.53.105.4
diff:1090874912:1090852928:minor=3c3²< [[include:Main/CodeTable]]²---²> %codelines%[=²44c44²< [[include:Main/CodeTableEnd]]²---²> =]²
author:1090874912=nathan
host:1090874912=82.120.149.253