Set background color to ToggleButton



Hi, I'm writing a simple GTK# application trying to change the background color to a ToggleButton:

            ToggleButton firstButton = new ToggleButton ("Push me", targetColor);
            firstButton.ModifyBg (StateType.Active, targetColor);

However, the background color does not change when it's pushed.

Do you know how can I change the toggle's background color when the button is pushed?

Thanks in advance.


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