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 

TreeView Again ....

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


Joined: 17 Jan 2007
Posts: 5

PostPosted: Tue Jan 23, 2007 12:44 pm    Post subject: TreeView Again .... Reply with quote

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 ?
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 427
Location: Portland, OR USA

PostPosted: Tue Jan 23, 2007 7:49 pm    Post subject: Reply with quote

This time I can't help you because I typically work in C.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion 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