Prev: Tkdnd and tablelist
Next: Using the whim window manager
From: keithv on 20 Mar 2010 17:12 I need to show a list of file names along with size and modified date info. I've been using tile's treeview (http://wiki.tcl.tk/20930) and like the easy way of sorting by column. Now, however, I need to include a checkbutton on the left side of every line. Any suggestions on what I should use? Thanks, Keith
From: MSEdit on 21 Mar 2010 14:02 On Mar 20, 10:12 pm, keithv <kvet...(a)gmail.com> wrote: > I need to show a list of file names along with size and > modified date info. I've been using tile's treeview > (http://wiki.tcl.tk/20930) and like the easy way of > sorting by column. > > Now, however, I need to include a checkbutton on > the left side of every line. > > Any suggestions on what I should use? > > Thanks, > Keith I use a tablelist with the first column with checkbutton images in an SVN dialog, I remember having a few problems with the begin/end edit features and was unable to add a accurate counter because of the way tablelist handles changing the checkboxes (as images). This was easy to implement and I already used Tablelist for other tables. One other solution is TreeCtrl which I am sure allows this type of table but has a much steeper learning curve. I use it successfully in other programs though. Martyn
From: Gerald W. Lester on 21 Mar 2010 16:30 keithv wrote: > I need to show a list of file names along with size and > modified date info. I've been using tile's treeview > (http://wiki.tcl.tk/20930) and like the easy way of > sorting by column. > > Now, however, I need to include a checkbutton on > the left side of every line. > > Any suggestions on what I should use? The treeview allows for a tree and column view. The tree view allows for images and text. Have two images that look like the indicator of a checkbox in selected and unselected states. Have the text be the same as a checkbox. Put bindings that will toggle some variable between on and off values and also toggle the image. -- +------------------------------------------------------------------------+ | Gerald W. Lester | |"The man who fights for his ideals is the man who is alive." - Cervantes| +------------------------------------------------------------------------+
From: keithv on 22 Mar 2010 23:45 On Mar 21, 4:30 pm, "Gerald W. Lester" <Gerald.Les...(a)cox.net> wrote: > keithv wrote: > > I need to show a list of file names along with size and > > modified date info. I've been using tile's treeview > > (http://wiki.tcl.tk/20930) and like the easy way of > > sorting by column. > > > Now, however, I need to include a checkbutton on > > the left side of every line. > > > Any suggestions on what I should use? > > The treeview allows for a tree and column view. The > tree view allows for images and text. Have two images > that look like the indicator of a checkbox in > selected and unselected states. Have the text be the > same as a checkbox. Put bindings that will toggle > some variable between on and off values and also > toggle the image. Not too bad a solution but it has some problems: o too much space on the left (room for the open toggle) o an empty focus ring appears next to image o heading is resizeable o it's non-trivial reproducing extended selection mode (normal behavior isn't quite right in that clicking an already selected line should toggle it) Keith
From: Donal K. Fellows on 23 Mar 2010 05:18 On 20 Mar, 21:12, keithv <kvet...(a)gmail.com> wrote: > Any suggestions on what I should use? I'd guess you've got to the point where you need tktreectrl. That can do everything (except be simple to use without extensive wrapping). Donal.
|
Pages: 1 Prev: Tkdnd and tablelist Next: Using the whim window manager |