in reply to Re^3: Tk::HList selectionClear background problem
in thread Tk::HList selectionClear background problem

Again, thank you for the reply. You have an interesting idea. The only problem with what you are suggesting is that it will not work the way I want for the 'extended' mode of selection. In other words, try to select a number and a letter at the same time (hold CTRL down to do that) and you will see that the selectbackground for the entire tree is adjusted based on the bottom-most selected item. Expressed a different way, select 1.A and 2 and both selectbackgrounds will be white, or select 1 and 1.B and both selectbackgrounds will be blue. I am starting to get the impression that what I am trying to is impossible in Tk::HList ...
  • Comment on Re^4: Tk::HList selectionClear background problem

Replies are listed 'Best First'.
Re^5: Tk::HList selectionClear background problem
by zentara (Cardinal) on Dec 28, 2006 at 22:50 UTC
    I am starting to get the impression that what I am trying to is impossible in Tk::HList

    Yeah, all the list widgets are "convenience widgets", they are not designed for general flexibility. You probably would find the Tk::Canvas will do what you want, and you can make your own custom widget, which is based on a Canvas. See Tk::CanvasDirTree for an example of subclassing a canvas to a custom widget.

    However, one of the list experts may come along and find a hack for you.... it takes alot of experimenting with the browsecmd, etc..... and it may be impossible as you say.


    I'm not really a human, but I play one on earth. Cogito ergo sum a bum