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
505
How to style a focused button?
posted

UltraButton can be style in normal, hottracked, and down state -- is there a way to provide a style for when the button has the focus? Could the hottracked state be misused for that purpose?

 We intend to create buttons with various shapes depending on the selected style. The focus rectangle just doesn't work in our case!

Parents
  • 469350
    Offline posted

     Hi Salvis,

         You can check in AppStylist on the button's UIRole and see which states are supported. I don't think there is an appearance specifically for the focused state, so I don't think you can do what you want through AppStylist. 

        You could, of course, handle this in code by changing the appearance on the control in the Enter/Leave events.

        You can also turn off the focus rect in code using a DrawFilter. Here's a KB article that tells you how: KB04791  

Reply Children