Questions tagged [vcl-styles]

Rad Studio XE2 introduced a feature called VCL Styles. This functionality allows you to apply a skin (theme) to any VCL Forms application. For more information, you can check the official documentation, VCL Styles Overview.

Rad Studio XE2 introduced a feature called VCL Styles. This functionality allows you to apply a skin (theme) to any VCL Forms application. For more information, you can check the official documentation, VCL Styles Overview.

211 questions
44
votes
0 answers

How do I write a TDBCtrlGrid VCL Style custom class?

There are lots of questions here about XE2 VCL Styles and custom colors for Buttons, Panels, edits, etc, and VCL Styles. As much as I wish the existing questions covered it, they don't... So DB Control Grids appear to be Yet Another Special…
Warren P
  • 65,725
  • 40
  • 181
  • 316
23
votes
2 answers

What can I do about maximized, styled windows, which show their borders on adjacent monitors?

On a multi-monitor system, a "blank" VCL application maximizes fine, but the same application with styles enabled (and one chosen as default) maximizes incorrectly. What I'm seeing is the right-hand edge of the window extend onto the 2nd monitor (my…
DaveS_Lifeway
  • 375
  • 3
  • 9
19
votes
3 answers

How to disable VCL styles in Delphi

I am using the new VCL styles system in Delphi XE2. It works great, but I wish to disable it for a particular form that has a number of images on it (a splash/about form). Problem is I can't seem to find a property of the form that associates it…
Alan Clark
  • 2,017
  • 21
  • 28
17
votes
3 answers

Delphi VCL styles tutorial - how to change the style at runtime

Is there a good VCL Styles tutorial where we see how to dynamically (in run time) load/change the style ? This should work with Delphi XE2 and up, since XE2 is the first version with VCL Styles.
philnext
  • 3,242
  • 5
  • 39
  • 62
16
votes
1 answer

Is there any Delphi XE2 styles gallery?

In XE2 there is a new function : 'styles', for VCL(.vsf) and Firemonkey (.styles), and some are provided in C:\Program Files\Embarcadero\RAD Studio\9.0\Redist\styles directory. As it seems to be easy to create a new style, is there any 'styles…
philnext
  • 3,242
  • 5
  • 39
  • 62
15
votes
3 answers

How I can change the color of a TPanel with the VCL Styles enabled?

I need to change the color of a TPanel when the VCL styles are enabled. I tried using and modifying the code listed in the article Changing the color of Edit Controls with VCL Styles Enabled, but it is not working for a TPanel. How I can change the…
Salvador
  • 16,132
  • 33
  • 143
  • 245
13
votes
2 answers

Disabling TButton issue on a VCL styled form

When I try to disable a Button on a styled VCL from using the follwing line of code TButton(Sender).enabled:= False; I get the this result (Button disabled at runtime) instead of this!! (Button disabled at design time) It's really confusing to…
Raul
  • 656
  • 5
  • 17
13
votes
8 answers

VCL Styles - client size of form reduced

I don't know if it's a bug... But when I set any other VCL style except for "Windows", the window width is reduced. - Is there any solution for this? UPDATE I submitted this to QC: http://qc.embarcadero.com/wc/qcmain.aspx?d=103697 Hope they'll…
djsoft
  • 1,051
  • 8
  • 19
13
votes
1 answer

How I can apply a vcl style to a TPopupmenu?

I'm using the vcl styles in a Delphi XE2 application, but when i popup a TPopupmenu this is show using the native windows look and feel, exist any way to apply the vcl style colors to the TPopUpMenu?
Salvador
  • 16,132
  • 33
  • 143
  • 245
10
votes
3 answers

how to make a transparent form when a VCL Style is enabled?

I'm using the following code to make a form transparent, but when the application has a VCL style enabled the form is paint with the background color of the VCL style instead of be transparent. uses Winapi.Windows, Winapi.Messages,…
Salvador
  • 16,132
  • 33
  • 143
  • 245
10
votes
1 answer

Using custom styles shows invalid characters when right-clicking a file in TOpenDialog

See steps below to reproduce. Works well in XE2 but not XE8. Create a new VCL Forms Application - Delphi Place a TButton and a TOpenDialog on the form In the button OnClick event call OpenDialog1.Execute Run the program, open the file dialog, and…
Thomas
  • 375
  • 1
  • 2
  • 11
9
votes
3 answers

Visual bug in Windows title bar with VCL Styles enabled application and display scaling

Currently I am testing various aspects of VCL styles enabled applications. I noticed, that with Windows scaling higher than the default 96 dpi/100%, the icon and the title bar text of the VCL Form are too big in size - and both are to close…
Tom Major
  • 283
  • 1
  • 12
9
votes
1 answer

VCL Styles breaks randomly

I have a control derived from TMemo. It worked nice until I used for the first time with Delphi XE7 VCL Styles. Under Delphi XE7, styles are not applied to the scroll bars of the control. If dark theme/style is used, it looks horrible, while the…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
9
votes
4 answers

VCL-Style Issues in DLL

I have developed a DLL having one form. I have set a style to it using below code. library TestLib; uses Vcl.Themes, Vcl.Styles,.... . . exports function1, function2; begin TStyleManager.TrySetStyle('Style1'); end. When I load this dll…
Dev
  • 629
  • 2
  • 9
  • 23
9
votes
2 answers

How to get the Forms background color with VCL.Styles

Some components paint their color with the Color property setting even when vcl,styles are used. So when using a Metro dark style (nearly black) and a components color is set to clWindow the components color does not match the style. Is there a way…
Bill
  • 2,993
  • 5
  • 37
  • 71
1
2 3
14 15