[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Disabling button highlighting



On Sat, 7 Nov 1998, Eric Harlow wrote:

> Change the style color for the style's PRELIGHT and make it the same
> as the NORMAL. 
>     style->fg[PRELIGHT] = style->fg[NORMAL];
>     style->bg[PRELIGHT] = style->bg[NORMAL]
> of course, the easiest way is to create a *new* style and push that on
> whenever you're creating a button that you don't want "highlighted" as
> someone moves over it. 

actually, the toggle button i created has a red background when depressed,
and the normal background when up... so, i want the prelight to be the
current background color (which changes)... i think i'm gonna just have
a function called when the mouse enters the button, setting the prelight
color to the current background color... it's not elegant but might work..
just curious if there was a way to completely wipe-out the prelight'ing
of those toggle buttons..

thanx though... :)

-=Scott



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]