Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How disable auto-highlighting of buttons ?

11 views
Skip to first unread message

Henrik Soderstrom

unread,
Jun 3, 1996, 3:00:00 AM6/3/96
to

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

Jeffrey Hobbs

unread,
Jun 3, 1996, 3:00:00 AM6/3/96
to

In article <4ov2la$h...@erinews.ericsson.se>,

Henrik Soderstrom <eme...@rioja.ericsson.se> wrote:
>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

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/

Rick Macdonald

unread,
Jun 3, 1996, 3:00:00 AM6/3/96
to Henrik Soderstrom

Henrik Soderstrom wrote:


> 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...

Andreas Leitgeb

unread,
Jun 4, 1996, 3:00:00 AM6/4/96
to

Henrik Soderstrom (eme...@rioja.ericsson.se) wrote:
: 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 ?

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


Arun Murugan

unread,
Jun 4, 1996, 3:00:00 AM6/4/96
to Henrik Soderstrom

Yup, I find it hideous too. Two ways to turn it off:

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
---------------------

0 new messages