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.).
相关问题
- Is there a Delphi 5 component that can handle .png
- Is there a way to install Delphi 2010 on Windows 2
- Is TWebBrowser dependant on IE version?
- iOS objective-c object: When to use release and wh
- DBGrid - How to set an individual background color
相关文章
- Best way to implement MVVM bindings (View <-> V
- Windows EventLog: How fast are operations with it?
- How to force Delphi compiler to display all hints
- Coloring cell background on firemonkey stringgrid
- HelpInsight documentation in Delphi 2007
- Can RTTI interrogate types from project code at de
- What specifically causes EPrivilege to be raised?
- Equivalent to designer guidelines in code
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