in reply to Re: Perl/Tk, how to make the black border not to appear around the Tree widget
in thread Perl/Tk, how to make the black border not to appear around the Tree widget

Thank you much for the reply, Zentara,

>...its always nice to give a complete, minimal running example, so we can run your code without having to flesh it out ourselves
It's all deep inside different loops, with multiple hash keys and array indexes. But OK, you're right. Next time I'll do it, anyway...

After adding your browsecmd, the black border appears for a moment and then goes. Thanks a lot, you have shown me the main problem!

Yes, I have only asthetic reasons... And yes, I checked, 'highlight' option changes the color of the border. So, I miss only the right color name for my background (the default like silver?).

Thank you again!

  • Comment on Re^2: Perl/Tk, how to make the black border not to appear around the Tree widget

Replies are listed 'Best First'.
Re^3: Perl/Tk, how to make the black border not to appear around the Tree widget
by zentara (Cardinal) on Nov 11, 2009 at 12:37 UTC
    hi...each widget in Tk seems to respond to a different set of options.... its a haphazrd collection of options.... so here is another little secret

    read perldoc Tk::options and see the other options available ( that the Tree author didn't put in his docs).... there is an option for "highlightthickness".... you might see if that works, put a value for 0 or 1 in there and see if it helps.

    ...as to the other trick, about matching colors...in Tk::options there are some options for background and highlightbackground colors..... they may not respond to the Tree though....that is the trouble with Tk.....it's not a coherent widget set and inherited object system...... next project, think Gtk2


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku