I have a TabControl in which each tab represents a distinct set of data. My application uses VCL Styles, and thus setting OwnerDraw to True does not lead to OnDrawTab being called. I was wondering if it is possible to somehow intercept the routine which draws a specific control using VCL Styles (in my case, TabControl), and change the way the control is drawn (for instance, change the Canvas.Font, etc.).
I have a TabControl in which each tab represents a distinct set of data.
Share
To change the font color of a tabsheet using the vcl styles, you must override the DrawTab method of the Vcl.ComCtrls.TTabControlStyleHook style hook and use your own code to draw the tab and set the color font.
Try this sample
And this is the result
Also exist several resources which can help you when you need customize a tabsheet and pagecontrol components using vcl styles.
Creating colorful tabsheets with the VCL Styles