| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
GladeXML::signal_connectConnects all signals with the given handler to a callback function. In glade, you can "connect" signals to "handlers". These handlers can be named like functions but not necessarily have to be: When using this signal_connect() function you can connect the handler "clicker" to a function called "test". When using signal_autoconnect() this is not possible as glade connects only handlers to functions of the same name as the handler.
Try to extend the example with the following (after glade
instantiation and before gtk_main):
If you want to connect to a function of an object, you
should use the following construct:
You can pass any type and number of additional parameters to the callback function. Note that the first parameter will be the calling widget. |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「GladeXML::signal_connect」をGoogle検索
|