|
|
| Author |
Message |
|
|
clash Familiar Face
Joined: 17 Jan 2007 Posts: 5
|
Posted: Wed Jan 17, 2007 6:29 pm Post subject: GTK# listbox ? |
|
|
Hey all, just starting development with monodevelop and gtk#.
The gui designer on monodevelop is stetic but i can't seem to find a simple listbox widget. I found the treeview widget but it seems vastly overkill for what i need and i can't find any good resources on how to use it.
Anyone have any help they can provide ? Thanks. |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 481 Location: Portland, OR USA
|
|
| Back to top |
|
 |
clash Familiar Face
Joined: 17 Jan 2007 Posts: 5
|
Posted: Thu Jan 18, 2007 12:55 pm Post subject: gtk Form_load |
|
|
Thank you didn't see those tutorials when i was looking before, i was working with basic gtk ones. I got it sorted :)
Btw another stupid question. In gtk, is there a Form_Load event like in C# on windows ? I just want somewhere to put code that will be run once when the window appears. |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 481 Location: Portland, OR USA
|
Posted: Thu Jan 18, 2007 8:24 pm Post subject: |
|
|
Well, speaking from a C standpoint, we often explicity show the form with gtk_widget_show() and thus can specify a function before or after that call which initializes the form. For example, a main application window might first call initialize_window() which will size the window, initilize toolbars, etc.
You can also look in to the various signals which are emitted when the widget is created (look at the signals for GtkWidget such as "realize" and "show"). |
|
| Back to top |
|
 |
|