TRzBitBtn

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #590
      Kanhaiya jee
      Participant

        Hello,

        How can I change the properties like Font color, Background color border color of any disabled button?
        I tried with something like:-

        if not btn1.Enabled
        then btn1.Font.color:= clWhite;

        But it’s not working. Any help?

      • #592
        Ray Konopka
        Keymaster

          Hi,

          The TRzButton does not provide that level of customization. By default the appearance of the button is driven by the current Visual Style that is active. If you set the ThemeAware property to False, you can get a little more control of the appearance of the button. However, to modify the appearance of the button while disabled, you would need to create a custom descendant of the button.

          Ray

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.