[Mono-list] TreeView question

Carlos Ble carlosble at shidix.com
Fri Oct 20 05:43:27 EDT 2006


Hi,
I have never struggled with this TreeView feature but is possible that
your approach could be wrong or not the best one. 
You can store objects in cells so you can design your own classes 
with events and all features you need to handle a change in an object or
whatever. The hashtable you have sounds no good.
Regards
 

El jue, 19-10-2006 a las 20:10 -0400, Rodney J. Dyer escribió:
> Carlos Ble wrote:
> > http://www.mono-project.com/GtkSharp_TreeView_Tutorial
> >
> >   
> Sure, I already found this, but what I am struggling with are issues
> such as how to:
> 
> - Select a column of data
> - Make it so that if you tab from a cell you move one cell to the right
> and return will move one line down
> - When I override the Edited event from the CellRenderer, I would like
> to know which column it is currently located.  The only things passed to
> the func are the Gtk.EditedArgs and the Gtk.CellRendererText.  While the
> EditedArgs has a path, it only gives me the row being edited and not the
> column.  I'm using a data class that keeps values by a Hashtable whose
> keys are set by the column headers (it is ok people will not have
> columns with the same name).  How can I determine which column is being
> edited (The tree View Column only emits on Clicked).  Can I get a
> reference to the TreeViewColumn that I added the cell to during
> construction?).  It appears that Gtk.UserData is depreciated.  I can see
> that using TreeView.GetCursor() can be called from within the
> EditedFunc, but this seems a bit kludgy and I must be missing something
> here.
> 
> -- Rodney J. Dyer, PhD Department of Biology Virginia Commonwealth 
> University http://dyerlab.bio.vcu.edu
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Carlos Ble      
Shidix Technologies
www.shidix.com/carlosble




More information about the Mono-list mailing list