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 Oct 08, 2015 8:11 pm

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: TreeView Again ....
PostPosted: Tue Jan 23, 2007 12:44 pm 
Familiar Face

Joined: Wed Jan 17, 2007 6:26 pm
Posts: 5
Ok, i have a method called OnSelectionChanged to grab the change of selection in the treeview. I am listening/calling this method by "treeView.Selection.Changed += OnSelectionChanged;"

I have 2 files, Main.cs which starts up the second window, MainWindow.cs. All the code is in MainWindow.cs.

Theres an example for this event in the monodocs and the ONLY difference (to at very least get into the method OnSelectionChanged) is that i am calling treeView.Selection.Changed .. etc in my "Public MainWindow" whereas in the example it is getting called inside a "Static Void Main".

As far as i'm concerned from a C# perspective this should be working ...

Is there something special about calling this listener/event from static void main and not from "public MainWindow" in my mainWindow.cs file ?

 Post subject:
PostPosted: Tue Jan 23, 2007 7:49 pm 
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
This time I can't help you because I typically work in C.

Micah Carrick - Forum Administrator

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest

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