- This topic has 3 replies, 2 voices, and was last updated 2025-07-27 at 12:48 am by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Home › Forums › Konopka Signature VCL Controls (formerly Raize Components) › KSVC6: Override VCL Styles for TRzPanel.
Hi Ray,
Is there any way to prevent a VCL Style from styling a TRzPanel?
Thanks.
= Steve
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
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
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
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com (opens in a new window)