Hello,
Just taking the first steps in Tcl/Tk programming - looks
like great fun and hope it will turn out useful too.
But I will go absolutely crazy if I can´t find a way to turn
off the *hideous* auto-highlighting of buttons when the pointer
moves across them - can anyone tell me how ?
(Apologies to anyone who happens to like this feature - I don't)
TIA /Henrik
If you don't like that, then perhaps you want to maintain strict
Motif behavior via by setting the variable 'tk_strictMotif' to 1.
--
Jeffrey Hobbs Office: 541/346-3998
Univ of Oregon CIS GRF email: jho...@cs.uoregon.edu
URL: http://www.cs.uoregon.edu/~jhobbs/
> But I will go absolutely crazy if I can=B4t find a way to turn
> off the *hideous* auto-highlighting of buttons when the pointer
> moves across them - can anyone tell me how ?
Look at the man page for "options". You want the "activebackground"
configure option.
-- =
=2E..RickM...
you can set the highlightcolor for all buttons to the same color
as their "normal" foreground.
this can be done for each button, or once and for all with "option"
(see manpage of "option")
hope that helped
1) set tk_strictMotif 1
This is a tk global variable. Set it at the beginning of
your script.
2) The above has some side effects (like, changing a menu's
highlight bar color has no effect(for Motif compliance)). So to
hide just the flashing effect, do this:
tk_setPalette activeBackground [. cget -bg]
This sets the highlight color to the background color, in effect
hiding the annoying flashing.
- Arun
---------------------