KSVC6: Override VCL Styles for TRzPanel.

Home Forums Konopka Signature VCL Controls (formerly Raize Components) KSVC6: Override VCL Styles for TRzPanel.

Viewing 2 reply threads
  • Author
    Posts
    • #4143
      Steve Gill
      Participant

        Hi Ray,

        Is there any way to prevent a VCL Style from styling a TRzPanel?

        Thanks.

        = Steve

      • #4144
        Ray Konopka
        Keymaster

          Hi Steve,

          There are a couple of ways you can override the current VCL Style in a TRzPanel. The first is to change the VisualStyle property from vsWinXP to vsClassic or vsGradient. vsWinXP means that the panel is drawn using the current Style, which was first introduced in Windows XP (hence the enum name). When you change VisualStyle to vsClassic or vsGradient, the various Color properties in the TRzPanel take effect.

          Another option is to remove the seClient element from the StyleElements set. This has the same effect as switching the VisualStyle property. StyleElements is a base VCL property that was added many years after the VisualStyle property was added to the TRzPanel, which is why both properties are available in the control.

          Ray

          • #4145
            Steve Gill
            Participant

              Hi Ray,

              I just tried both methods.  Unfortunately neither of them worked.

              I tried uploading a screenshot but I keep getting a message that says the 163KB file is too large.

              = Steve

               

          • #4158
            Ray Konopka
            Keymaster

              Hi Steve,
              I’m sorry, but I missed your follow-up message. You can send your screenshot to support@raize.com and I’ll take a look. Also, what version of Delphi are you using and which version of KSVC? I just noticed that that your subject references KSVC6. Is that correct?
              Ray

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