18 lines
2.8 KiB
Text
18 lines
2.8 KiB
Text
version=pmwiki-1.0.5
|
|
newline=²
|
|
text=!!! show widget tree in your source code with line indentation²²* this is a sample code with a vbox widget.²* here is the widget tree :²²²[[include:Main/CodeTable]]²² - win - GtkWindow² - vbox - GtkVbox² - scrwnd - GtkScrolledWindow² - txt - GtkTextView² - button - GktButton² ²[[include:Main/CodeTableEnd]]²²-> here is full source code right indented. Very easy reading.²²[[include:Main/CodeTable]]²<?php²²$win = new GtkWindow();²² $vbox = new GtkVBox();² $win->add($vbox);²² $label = new GtkLabel('Your name:');² $vbox->pack_start($label, false);²² $scrwnd = new GtkScrolledWindow();² $vbox->pack_start($scrwnd, true);²² $txt = new GtkTextView();² $scrwnd->add($txt);²² $button = new GtkButton('Send');² $vbox->pack_start($button, false);²²# additional settings²$win->set_title('GtkBox test');²$win->connect_simple('destroy', array('gtk', 'main_quit'));²$win->set_size_request(200, 300);²$win->set_position(Gtk::WIN_POS_CENTER);²²$win->show_all();²Gtk::main();²²?>²[[include:Main/CodeTableEnd]]²²
|
|
time=1158831640
|
|
diff:1158831541:1158831541:=1,47c1²< !!! show widget tree in your source code with line indentation²< ²< -> this is a sample code with a vbox widget.²< -> here is the widget tree :²< ²< ²< [[include:Main/CodeTable]]²< ²< - win - GtkWindow²< - vbox - GtkVbox²< - scrwnd - GtkScrolledWindow²< - txt - GtkTextView²< - button - GktButton²< ²< [[include:Main/CodeTable]]²< ²< <?php²< ²< $win = new GtkWindow();²< ²< $vbox = new GtkVBox();²< $win->add($vbox);²< ²< $label = new GtkLabel('Your name:');²< $vbox->pack_start($label, false);²< ²< $scrwnd = new GtkScrolledWindow();²< $vbox->pack_start($scrwnd, true);²< ²< $txt = new GtkTextView();²< $scrwnd->add($txt);²< ²< $button = new GtkButton('Send');²< $vbox->pack_start($button, false);²< ²< # additional settings²< $win->set_title('GtkBox test');²< $win->connect_simple('destroy', array('gtk', 'main_quit'));²< $win->set_size_request(200, 300);²< $win->set_position(Gtk::WIN_POS_CENTER);²< ²< $win->show_all();²< Gtk::main();²< ²< ?>²< [[include:Main/CodeTableEnd]]²< ²---²> Describe SourceWidgetTree here.²\ No newline at end of file²
|
|
author=Marc Quinton
|
|
author:1158831541=Marc Quinton
|
|
host:1158831541=143.196.162.107
|
|
name=CodeSnippets.SourceWidgetTree
|
|
host=143.196.162.107
|
|
agent=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217
|
|
rev=3
|
|
diff:1158831610:1158831541:=15,18d14²< [[include:Main/CodeTableEnd]]²< ²< -> here is full source code right indented. Very easy reading.²< ²19a16²> ²
|
|
author:1158831610=Marc Quinton
|
|
host:1158831610=143.196.162.107
|
|
diff:1158831640:1158831610:=3,4c3,4²< * this is a sample code with a vbox widget.²< * here is the widget tree :²---²> -> this is a sample code with a vbox widget.²> -> here is the widget tree :²
|
|
author:1158831640=Marc Quinton
|
|
host:1158831640=143.196.162.107
|