GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GTK# listbox ?

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
clash
Familiar Face


Joined: 17 Jan 2007
Posts: 5

PostPosted: Wed Jan 17, 2007 6:29 pm    Post subject: GTK# listbox ? Reply with quote

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: 465
Location: Portland, OR USA

PostPosted: Wed Jan 17, 2007 9:30 pm    Post subject: Reply with quote

I have done very, very little with monodevelop myself, but I have looked in to it quite a bit (and have some bookmarks). The treeview widget is what you'll be using.

The old tried and true tutorial is http://scentric.net/tutorial/, however, it's not in mono.
Here's some information from the mono documentation: http://www.go-mono.com/docs/index.aspx?link=T%3AGtk.TreeView
And here's a pretty nice tutorial which will show just about exactly what you're trying to do: http://www.mono-project.com/GtkSharp_TreeView_Tutorial

Good luck.
Back to top
clash
Familiar Face


Joined: 17 Jan 2007
Posts: 5

PostPosted: Thu Jan 18, 2007 12:55 pm    Post subject: gtk Form_load Reply with quote

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: 465
Location: Portland, OR USA

PostPosted: Thu Jan 18, 2007 8:24 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP