Vote UpVote

Creating colorful tabsheets with the VCL Styles

The Road to Delphi – Introduction Until now if you want change the color of a TTabSheet in a VCL application you must create a new descendant class of the TTabSheet component, then handle the WM_ERASEBKGND message, set the TPageControl to OwnerDraw property to true and finally implement the OnDrawTab event. And after that you will have an awfull and un-themed TPageControl. In this post I will show you how using the vcl styles you can gain full control over to paint methods with very nice results. The TTabSheet To customize the colors of the TabSheets of a TPageControl we need to handle the WM_ERASEBKGND message ...
Favorite? Off-Topic? Rodrigo @ 2012-04-12 11:51


Visits: 909
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Douglas Rodrigues de Almeida
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)