in reply to Re^2: How to get foreground color from a TK::Listbox
in thread How to get foreground color from a TK::Listbox
Hi, the Listbox is a very useful widget, but has it's limitations. I would suggest making your own widget on a Tk::Canvas. The Canvas allows you to do almost anything you want. I made a little Canvas based demo widget module to show how easy it is.... see Tk-CanvasDirTree. It shows how to easily import a list and display it anyways you want. If you want full control over colors and fonts and bindings, the Tk::Canvas is the way to go. The only real trick is measuring your font size in pixels, which is easy to do. Make your own wheel! :-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to get foreground color from a TK::Listbox
by jsteng (Beadle) on Apr 15, 2018 at 14:39 UTC | |
by zentara (Archbishop) on Apr 17, 2018 at 11:57 UTC |
In Section
Seekers of Perl Wisdom