Re: Button release makes button look different, how do I stop this?



When I run the app and release a button after I have pushed it that
particular button(pressed button) looks a little different from the
other buttons(other buttons).  The bottom and right edges are darker on
(pressed button)  than on (other buttons).  How can I make it so when
the button is released (pressed button) looks the same as (other
buttons)


I think the dark edge you are referring to is the
normal focus indication that will stay with clicked
buttons until you move the focus to another widget.
I don't think this is related to your alternate
color scheme.

If you wish to remove the focus indication, one way
is to unset the focus every time you receive it,
although this may have other consequences that are
undesirable for your application.

a gtkWidget has a CAN_FOCUS property wich you can set to FALSE.
GTK_WIDGET_UNSET_FLAGS(wid, GTK_WIDGET_CAN_FOCUS);

your app wont be usefull without a mouse, but will not draw the focus around
that widget.

regards ...
clemens




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