1

I only want to skin / style one single control on my form using vcl styles and leave the rest to windows default.

In this example i want to skin the TButton component.

This is my form:

enter image description here

After applying a VCL style i get:

enter image description here

But what i want is:

enter image description here

The Bitmap-Style-Designer included with the IDE didn't seem to allow specifying which controls to skin so maybe there is a "trick" to do this?

1
  • VCL styles isn't designed for this. Use a custom button control. Oct 9, 2015 at 5:17

1 Answer 1

2

The VCL Styles are global to the application. So you can try disabling the VCL Styles for all the controls except for the button how is shown here (this method have some limitations), or even better you can draw the button yourself using the VCL Styles look and feel like so.

var
  LStyleServices : TCustomStyleServices;
begin
  LStyleServices:=TStyleManager.Style['AnyLoadedVclStyle'];
  //draw the button with using LStyleServices 

  ....       
end;
2

Not the answer you're looking for? Browse other questions tagged or ask your own question.