...i think you have a focus problem.... read perldoc Tk::focus....
if your main concern is stopping this normal widget behavior, for asthetic reasons, you might want to make your own custom widget that responds exactly the way you want
... some Tk widgets are so locked into this type of behavior, that the only way around it is to match colors for the highlight and select modes, so it appears invisible
....the first thing i would try, is to but in a -browsecmd callback in your tree, and in that callback force the focus back to the mainwindow, like
or some dynamic hack that keeps the focus elsewhere..... but then again ,it might break the way the widget works..... back to making your own widgets :-)-browsecmd => sub{ $mw->focus }
In reply to Re: Perl/Tk, how to make the black border not to appear around the Tree widget
by zentara
in thread Perl/Tk, how to make the black border not to appear around the Tree widget
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |