Prev: Tcl_InvalidateStringRep(objPtr) causes later crash in TclCreateLiteral
Next: ttk notebook generate event
From: Albert Schlef on 8 Apr 2010 00:30 I have several columns in my treeview. It's a bit hard to read the data in the table because there's nothing separating the columns. I was thinking about painting the background of every odd column in a different color. But I don't mind any other suggestion. For example, I'm also fine with somehow printing a thin line at a column's borders. Is it possible? I've looked in the the manual page for treeview[1], but I don't see how this can be done. (Note: I don't know TCL. I know only the basics of Tk, and using it with the Ruby language, so solutions that are too "involved" are probably off-limits for me.) [1] http://www.tcl.tk/man/tcl8.6/TkCmd/ttk_treeview.htm#M19
From: WJG on 9 Apr 2010 14:25 Is this the type of appearance that you wish to achieve? http://sites.google.com/site/gnocltclgtk/gnocl-user-documentation/widget-set/gnocl-tree WJG
From: Thomas MENEZ on 11 Apr 2010 06:59 On Apr 9, 8:25 pm, WJG <wjgiddi...(a)blueyonder.co.uk> wrote: > Is this the type of appearance that you wish to achieve? > > http://sites.google.com/site/gnocltclgtk/gnocl-user-documentation/wid... > > WJG I don't think it is what he's after. I think it's rather : http://imagepaste.nullnetwork.net/viewimage.php?id=792 I also can't achieve this with ttk::treeview... Any suggestion ?
From: Arndt Roger Schneider on 11 Apr 2010 09:19
Albert Schlef schrieb: >I have several columns in my treeview. It's a bit hard to read the >data in the table because there's nothing separating the columns. I >was thinking about painting the background of every odd column in a >different color. But I don't mind any other suggestion. For example, >I'm also fine with somehow printing a thin line at a column's borders. > >Is it possible? > >I've looked in the the manual page for treeview[1], but I don't see >how this can be done. > >(Note: I don't know TCL. I know only the basics of Tk, and using it >with the Ruby language, so solutions that are too "involved" are >probably off-limits for me.) > >[1] http://www.tcl.tk/man/tcl8.6/TkCmd/ttk_treeview.htm#M19 > > > Can be done with rtl_mlistbox: http://gestaltitems.sourceforge.net/rtl/RTL_Multilistbox.html Picture 6.2 contains Tk listboxes. http://gestaltitems.sourceforge.net/hugelist/hugelist_integration.html Picture 3 contains hugelists, with individual colors per column and alternating colors per rows. The setup is a bit more complex, it uses cascading rtl_mlistboxes inside of which are the hugelist listboxes. With version 1.5 --with on-demand data acquisition--, you may also turn a hugelist into a tree. Although, the open and close events must be handled by your application code. -roger |