in reply to Perl/Tk, how to make the black border not to appear around the Tree widget
...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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl/Tk, how to make the black border not to appear around the Tree widget
by Anonymous Monk on Nov 10, 2009 at 18:44 UTC | |
by zentara (Cardinal) on Nov 11, 2009 at 12:37 UTC |