Julia Dudascik (Contractor)
2016-09-22 21:10:36 UTC
Hello
I have a FXButton in a toolbar. So it is a "toolbar" style button and has a
flat look.
When that button is pressed, I want the state to remain as "STATE_ENGAGED",
until it is pressed again. I am able to do this by creating a class that is
derived from FXButton.
The problem I have is that, while this button is in a "STATE_ENGAGED" mode,
I would like it to appear to be "pressed down" or have some indication that
the option is currently on.
I have tried to change the color of the button and even the style
(setButtonStyle) and the button look does not change. I call setButtonStyle
within the function that indicates the button has been pressed. No matter
what I do, the button still looks the same. I even call forceRefresh and
repaint().
How can I make the toolbar style button to appear "pressed-down" when this
option is on?
Thanks
Julia
I have a FXButton in a toolbar. So it is a "toolbar" style button and has a
flat look.
When that button is pressed, I want the state to remain as "STATE_ENGAGED",
until it is pressed again. I am able to do this by creating a class that is
derived from FXButton.
The problem I have is that, while this button is in a "STATE_ENGAGED" mode,
I would like it to appear to be "pressed down" or have some indication that
the option is currently on.
I have tried to change the color of the button and even the style
(setButtonStyle) and the button look does not change. I call setButtonStyle
within the function that indicates the button has been pressed. No matter
what I do, the button still looks the same. I even call forceRefresh and
repaint().
How can I make the toolbar style button to appear "pressed-down" when this
option is on?
Thanks
Julia