TRzCheckBox on Windows 11

Viewing 2 reply threads
  • Author
    Posts
    • #4357
      Olivier Beltrami
      Participant

        Hello,
        On Windows 11, the appearance of csChecked and csGrayed for the TRzCheckBox is almost the same (a garish smurf blue). Is there a way to override this somewhere in the code ?
        Very best regards,
        Olivier

      • #4374
        Ray Konopka
        Keymaster

          Hi Olivier,
          Unfortunately, that style comes from Windows itself. To change the appearance, there are a couple things you could do. First, you could load a different VCL Style into your application and then use the Per Control Styling introduced in Delphi and then set all your check boxes to use the other style.

          Another option would be to set the ThemeAware property of the TRzCheckBox to False, and then set the HotTrack property to True. This will cause the TRzCheckBox to draw the check box states internally rather than use the style elements.

          Ray

        • #4377
          Olivier Beltrami
          Participant

            Hi Ray,

            Thank you very much for your suggestions.

            Looking at the initialization code that I have in the base class of all my forms, I see that I was actually using your second suggestion (ThemeAware =false and HotTrack=true) for Windows 7 and below. So, I have now extended this to Windows 11 as well.

            Very best regards,

            Olivier

        Viewing 2 reply threads
        • You must be logged in to reply to this topic.