Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
ButtonTool for ToolBar
posted

Hi, 

I have got a problem with the styling of the buttontool. 

I want it more clearly which buttons are disabled and which are not, without requiring the user to hover over the button. 

So we decided to let the active button have a fixed border. But I can't seem to make the border setting on a buttontool conditional, based on enabled/disabled?

(Only background color has that possibility?)

How can I achieve this in an other way?

Kind regards, 

Tobias Vandenbempt

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    TobiasV said:
    I want it more clearly which buttons are disabled and which are not, without requiring the user to hover over the button. 

    I'm a little confused by what you mean by this. By default, the button's BackColor and ForeColor will change when it's disabled. So it should be easy to tell which buttons are enabled without mousing over the button. My guess is that you are already applying some appearances to the button that makes it hard to distinguish. So you might want to look into the styling you are using, because the BackColor and ForeColor would be the standard way to indicate a disabled control.

    TobiasV said:
    So we decided to let the active button have a fixed border. But I can't seem to make the border setting on a buttontool conditional, based on enabled/disabled?

    There are no appearance properties for the border that are specific to the enabled state. But you could change the BorderColor on the tool at the same time you set the Enabled property.

Children