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
9
votes
1 answer

How to manually include a VCL Style in my application?

I have an application which uses conditionals to be able to compile it either as a VCL Forms Application or as a Windows Service Application in Delphi XE2. However, since I have manually altered the project's main source file, the IDE will no longer…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
9
votes
2 answers

TDateTimePicker VCL Styles glitch in XE2 that only happens on Windows Classic Theme

I guess this is yet another reason why VCL styles are not ready to be really used. TDateTimePicker control looks fine without VCL styles. Turn on any vcl style, and I get this appearance: I can turn off the vcl styles for just this component type,…
Warren P
  • 65,725
  • 40
  • 181
  • 316
8
votes
2 answers

combobox doesn't use vcl style highlight color.

I'm using a combobox with the vcl styles enabled, but when i run the application the highlight color used by the combobox is the windows highlight color and not of the vcl styles. How i can fix this, i mean use the vcl style highlight color in the…
Salvador
  • 16,132
  • 33
  • 143
  • 245
8
votes
5 answers

Delphi XE2: Reloading a custom VCL style from file?

I'm loading a custom style from file using: TStyleManager.LoadFromFile(filename) When the file is changed I want to load it again. But if I try that I get a EDuplicateStyleException because the style is already registered. Is there a way to unload…
Ville Krumlinde
  • 7,021
  • 1
  • 33
  • 41
8
votes
4 answers

Property "ofOverwritePrompt" for TSaveDialog does not work when VCL Styles are used in Delphi 10.1 Berlin

Create a new VCL Forms application On the main form add a Tbutton and a TSaveDialog Set "ofOverwritePrompt" to True in properties for the SaveDialog1 Use: procedure TForm1.Button1Click(Sender: TObject); begin SaveDialog1.Execute(); end; Run the…
Thomas
  • 375
  • 1
  • 2
  • 11
8
votes
2 answers

Changing Delphi styles at runtime doesn't allow dropping files to the form

I have the following procedure that allows droping files from windows, the dropping works just fine but when I change the style at runtime using (TStyleManager.TrySetStyle(styleName)), the form accept no more dropping! what is wrong here…
Raul
  • 656
  • 5
  • 17
8
votes
2 answers

Style properties for TDateTimePicker

A TDateTime picker is a ComboBox where the drop-down list is replaced with a calendar. I use XE2 VCL Styles and changing style does'nt affect TDateTimePicker Color & Font Color. I have change the Calendar style with this question but the solution is…
philnext
  • 3,242
  • 5
  • 39
  • 62
7
votes
1 answer

With VCL Styles TProgressBar.Style := pbstMarquee does not work

When I use pbstMarquee on progress bar control with VCL Styles, marquee animation does not work. Steps to reproduce: File > New > VCL Application Put TProgressBar on main form > TProgressBar.Style := pbstMarquee Project Option > Appearence > set…
JH Jang
  • 157
  • 3
  • 12
7
votes
3 answers

VCL-Styles embedded in dll?

How do I embed Delphi XE2 VCL-Styles in a dll? The Application - Appearance page is not visible in project settings for DLL-projects. I tried defining them in a rc-file included with a $R directive which works but if there is a better way I'd like…
Ville Krumlinde
  • 7,021
  • 1
  • 33
  • 41
7
votes
1 answer

How i can Skin the message box of my app when the vcl styles are activated?

I'm using the Application.MessageBox to show messages on my VCL application, but when the application had a vcl style applied the message window is shown with the windows style instead of the current vcl style. Sample code …
Salvador
  • 16,132
  • 33
  • 143
  • 245
7
votes
3 answers

Program icon looks curious in the title bar when using a VCL style

Using Delphi XE7 on a Windows 7 Pro 64-bit system. If I choose 'Charcoal Dark Slate' VCL style, the 16x16 pixel titel bar icon down-sized from the 32x32 program icon looks not like expected. It should look like the small icon below. If I load the…
Nobby
  • 289
  • 2
  • 12
7
votes
2 answers

Exclude VCL Styles from styling Dialog / ShowMessage borders

Is there any way to exclude VCL Styles from styling a system dialogs' border. Sepecifically a dialog that is shown by calling MessageDlg or ShowMessage. I read some articles on "The Road To Delphi" (which is an excellent site btw) but couldn't find…
ChrisB
  • 2,497
  • 2
  • 24
  • 43
7
votes
2 answers

VCL Style from DLL is affecting TMenuItem in Application

I am using Delphi XE6 and VCL styles. I have main application and dlls. My main application has enabled runtime themes and I am using vcl style files. I did quite similar thing to my DLLs. I enabled runtime themes and added VCL.Themes, VCL.Styles…
Nix
  • 581
  • 5
  • 20
7
votes
1 answer

Delphi XE2 Style: Main Menu Ignored

I have applied a style to a VCL application in Delphi XE2, but it works OK, but it seems that the main menu has ignored the style. See attached image. Is this a normal behavior? Any advice on how to apply style to the main menu?
Alexandre
  • 507
  • 1
  • 5
  • 16
7
votes
1 answer

TActionMainMenuBar, VCL-Styles and MDI buttons(Minimize, Close etc) not being styled.

I'm trying to make TActionMainMenuBar display styled MDI buttons like a TMainMenu does. Any suggestions? I can't stop using MDI for this project.
1
2
3
14 15