Forum > LCL

How to change Page control and combobox color ?

(1/2) > >>

Pong:
for example: Page control border color .
I am trying to create a simple component but I'm not sure use class(TCustomControl) or  class(Tcombobox) :'(

Nicole:
I am afraid - not at all.
My workaround are small images. You may add them to the tabs.

Just grab some 16 x 16 icons, add them to an TImageList.
This ImageList you link to the TPageControl.
After this you can select your images from within the Tabsheets.

Is quite nice, I got used to it.

Or you use one of the components around, which allow it. - I did not like one of them and forgot their names.

Martin_fr:
Moderation note

All IRC related content has been removed from this thread.

Please to not re-add.

Martin_fr:
As hinted by Joanna (by-product in one of the moderated IRC posts), it may be possible with "OwnerDrawn". However, no details have been posted on this.

winni:
Hi!

TPageControl is based on TWinControl.

TWinControl owns no Canvas.

So you have to add a Canvas.

Winni

Navigation

[0] Message Index

[#] Next page

Go to full version