PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

GtkListItem Constructor | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

GtkListItem Constructor

GtkListItem ([string label ]);

A GtkListItem is a container widget, derived indirectly from GtkBin and so only able to hold one direct child. Most of the time, the child you will want the list item to contain will be a GtkLabel - and so, in common with all objects that have an alternative '-with-label' constructor available in GTK, we have the option in PHP-GTK to pass the label's text as a parameter during construction, e.g.

If you wanted something other than a label in the list item, you simply omit the parameter and add the required widget:

or, if you wanted perhaps a label plus some other item:

Whatever your list item consists of, the GtkList will only respond to it as a GtkListItem. If you have different kinds of list item contents in the same list, you will need to exercise a great deal of caution if you are connecting callbacks to any form of select signal.

See also: GtkList, which has a working example under the constructor.

忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「GtkListItem Constructor」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | GtkListItem Constructor」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: