GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Apr 17, 2014 1:10 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: GTK# listbox ?
PostPosted: Wed Jan 17, 2007 6:29 pm 
Offline
Familiar Face

Joined: Wed Jan 17, 2007 6:26 pm
Posts: 5
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 17, 2007 9:30 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
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.

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject: gtk Form_load
PostPosted: Thu Jan 18, 2007 12:55 pm 
Offline
Familiar Face

Joined: Wed Jan 17, 2007 6:26 pm
Posts: 5
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 18, 2007 8:24 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
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").

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group