Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I've been playing with Tcl-Tk, and Tkx trying to achive a simple background image with my Perl Tk Tree from my earlier post. Apparently it's not so simple because I've been struggling with it for over a week. I even went down the Gtk path. Does anyone have a snippet I could view to help me understand how this is accomplished?

It would be greatly appreciated!
Thanks

Replies are listed 'Best First'.
Re: lost with Tk Tree BG image
by zentara (Cardinal) on Mar 14, 2006 at 17:45 UTC
    Well, it seems that your tcl script is about the only thing around that can do this. If Courage can't show you how to run the tcl thru Tk using the tcl module, I would say switch to a canvas. The canvas can display just about anything, and you can layer the things with tag priorities. The downside is that you will probably have to reinvent the tree, and manually create it on the canvas.

    Even Gtk would have trouble with this, because their themes do not extend to every nook-and-cranny of every widget. They setup the themes for the most commonly wanted theme schemes, but the background for the treeview is still not done independently.

    You could have done it on a canvas, within a week. :-) It really wouldn't be that hard once you got your design down. Setup an invisible grid on the canvas, and display your tree items as little icons or text. When the tree changes, you will just have to delete everything and rebuild; but the canvas is very fast, so it ought to work pretty well.


    I'm not really a human, but I play one on earth. flash japh