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
1320
Different pictures in a StateButtonTool
posted

Hello everybody,

I need to have two different pictures in a "StateButtonTool" for the pressed and the unpressed state. The "StateButtonTool" is under control of a "UltraToolbarsManager".

The red oval should be only one "StateButtonTool". With the designer there is no way to set different pictures. But maybe there is a way to do this at runtime.

Has anybody done this already?

Thank you very much for any help!

Best regards

Frank

 

  • 1320
    Offline posted

    Dear Hristo,

    yes, setting the pressed picture in the "PressedApperance -> image" works fine and solves perfectly my requirement.

    Thank you very much indeed.

    Frank

  • 48586
    Suggested Answer
    posted

    Hello,

     

    You could use PressedAppearance object in order to determine the appearance of StateButtonTool when it is in pressed state (StateButtonTool.ShareProps.AppearancesSmall. PressedAppearance ).

     

    Please let me know if you have any further questions.