Ian Branch 127 Posted November 25, 2023 Hi Team, Win 11, D12, latest Raize components via GetIt. I use TrzPageControl for my tabbed interface. With all of the themes/styles I have used so far there hasn't been an issue except for one theme/style. If I try to use the Wedgewood Light style the currently active tab caption is pretty much unreadable. 😞 See examples. Is this a theme/style issue or a TrzPageControl issue? In either case, is there a fix? I really would like to use the Wedgewood Light theme/style. Regards & TIA, Ian Share this post Link to post
DelphiUdIT 177 Posted November 25, 2023 (edited) This is like Wedgewood Light style works in a VCL project with the standard PageControl (I dont'have Raize component). There is not any issue. May be this is an issue of TrzPageControl, but should be see how the style is implemented in that control (or if some design properties of the control are set and incompatible with style). Edited November 25, 2023 by DelphiUdIT Share this post Link to post
corneliusdavid 214 Posted November 27, 2023 I'd say it's the color choices the RzPageControl chooses to use for it's background--partially because it uses a dark one for the tabs, so to make the selected one stand out, it uses a light background, which for Wedgewood, is too close to the font color. Here's a form using the Wedgewood theme with both the Standard PageControl (on the left) and the RzPageControl (on the right): The Sterling theme looks a little better as far as the contrast for the selected page but the whole form looks washed out (IMHO): The Aqua Light Slight seems to work well for light-colored themes: Just try several different themes until the control gives the right balance of colors in your application. Share this post Link to post
Ian Branch 127 Posted November 27, 2023 28 minutes ago, corneliusdavid said: Just try several different themes until the control gives the right balance of colors in your application. There a several that work fine with the component but I prefer Wedgwood Light for the overall presentation. Just this one annoyance. Ian Share this post Link to post
corneliusdavid 214 Posted November 27, 2023 So here are three ideas that might help: Customize the Color property of each tab (RzTabSheet) at design time (which doesn't affect the sheet's background color, just the tab color). Hook into the OnChange event of the RzPageControl and set the RzTabSheet's color for the selected tab. On the RzPageControl, uncheck the seFont option of the StyleElements property. I think this ignores the color that the Wedgewood Light theme would set and uses the Windows standard font color (clWindowText for this element). Using the third option, here's what my test looks like: Share this post Link to post
Ian Branch 127 Posted November 27, 2023 Hi David, Thank you for your suggestions. Great minds think alike. I have just finished going through all the Apps implementing option 3. Regards, Ian Share this post Link to post
corneliusdavid 214 Posted November 27, 2023 Excellent! Glad that helped. I just found a similar property in a DevEx grid control a few weeks ago with a similar need/solution. Share this post Link to post