This code snippet below from a VWG Conversion updates the Tab Page’s Forecolor to Red
In Wise J it does not work.
Is there some method to force programmatic change of forecolor to the Tab Page’s text
to refresh in the UI? It initializes as black.
pgNotes.ForeColor = System.Drawing.Color.Red;
pgNotes.Font = new System.Drawing.Font(pgNotes.Font, System.Drawing.FontStyle.Bold);
//tabControl1.Refresh();
//pgNotes.Refresh();
tabControl1.Recreate();
My attempts to Call Refresh or Recreate at tab control or tab page level do not seem to have any effect.
Hi Christian,
I don’t see any issues in setting the Forecolor directly.
Please find attached sample where the Forecolor of Page1 was set with the designer and the Forecolor of Page2 is set when you click the button.
If that does not work for you please send us a compilable test application and we’ll investigate.
Best regards
Frank
We are not VWG and we have nothing to do with that framework. In our theming system the selectable part of the TabPage is called “button”.
It’s unclear if you are trying to set the color of the button part or the TabPage or the content of the panel related to the Tab. Without a runnable test case we can’t help you with your issue amy further. Please refer to the posting guidelines.
Hi Christian,
what color do you want to change on the Tab Page? In any case the best way would be to modify your theme or add a theme mixin.
If you want to change the color of the header of the tab page you would have to adjust
TabView - Page - Button - Default - Properties - TextColor
if you want to change the color in the tab page content area it’s
TabView - Page - Default - Properties - TextColor
You can either change it globally in theme/mixin or globally in code or work with different appearance keys if you want to have different TabPage views.
Best regards
Frank
Please login first to submit.