vcl-styles

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

孤街醉人 提交于 2019-12-01 04:08:42
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 program icon in 16x16 pixel format, it looks good in the titel bar, but ugly in the task bar because of the 16 to 32 pixel enlargement. Dalija Prasnikar This is known issue with VCL Styles http://qc.embarcadero.com/wc/qcmain.aspx?d=106224 Also see this issue in Embarcadero's newer QC site: https://quality.embarcadero.com/browse/RSP-11572 --- it's been

How to manually include a VCL Style in my application?

谁说胖子不能爱 提交于 2019-11-30 15:28:48
问题 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 allow me to make certain modifications using the standard Project Options window. Specifically, I am not able to select VCL Styles to include or implement. Therefore, I have to implement VCL Styles manually. So, I added the two necessary units Vcl

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

半世苍凉 提交于 2019-11-30 04:54:27
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 main is on the left). When I started comparing to other Windows apps, I noticed that under Windows 7 (at least), maximized windows do not even have non-client borders on the left, right or bottom sides. And indeed, the standard VCL (non-styled) app behaves this same way, without non-client borders. How do I fix this? I notice that TFormStyleHook

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

旧巷老猫 提交于 2019-11-28 23:40:24
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 color of a TPanel with the VCL Styles enabled? The TPanel doesn't use a style hook to draw the control, so you can't use the technique described in the article. instead you must override the paint method. Check this sample using a interposer class. type TPanel=Class(Vcl.ExtCtrls.TPanel) protected procedure Paint; override; End; Uses Vcl.Styles, Vcl

Style properties for TDateTimePicker

梦想的初衷 提交于 2019-11-28 01:55:27
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 not OK for the ComboBox , any idea ? Now I plan to inherit a TComboBox for use with a TMonthCalendar but I would know if anybody had a better solution. In order to use the workaround of the CalColors property, you must disable the Windows Theme in the drop down window of the TDateTimePicker component, for that you must use the DTM_GETMONTHCAL

How to disable VCL styles in Delphi

浪子不回头ぞ 提交于 2019-11-27 22:02:27
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 with a particular style, and so can't disable it for that form only. There only seems to be the global TStyleManager class which appears to be static. With this in mind, is the only way to achieve this to call TStyleManager.TrySetStyle('Windows') , show the form, and then set it back to the original style when the form is closed? RRUZ The VCL Styles

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

左心房为你撑大大i 提交于 2019-11-27 14:57:38
问题 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 color of a TPanel with the VCL Styles enabled? 回答1: The TPanel doesn't use a style hook to draw the control, so you can't use the technique described in the article. instead you must override the paint method. Check this sample using a interposer

Style properties for TDateTimePicker

不羁岁月 提交于 2019-11-27 04:47:24
问题 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 not OK for the ComboBox , any idea ? Now I plan to inherit a TComboBox for use with a TMonthCalendar but I would know if anybody had a better solution. 回答1: In order to use the workaround of the CalColors property, you must disable the Windows

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

安稳与你 提交于 2019-11-27 01:29:08
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. I'm adding an answer because local information is often preferred to just links. Here's the key facts you need to know before you start: Many VCL controls have color properties, but those properties are going to get ignored when styles are on, and the default "common controls" like Button are going to get drawn by Delphi itself, instead of using the XP or Windows 2000 style that "comes with windows".

Styling only one VCL component in Delphi

↘锁芯ラ 提交于 2019-11-26 21:51:56
问题 I know, that it's possible to disable custom styling for components, but how can I enable styles for only one component class? For example leave the whole form and all components on it unskinned, and skin only TButton. Like on this image. 回答1: Most of the VCL controls internally uses the StyleServices global function to get the methods to draw the control. So if you are not using the Vcl Styles, the StyleServices return an instance to the windows API functions to draw themed controls (UxTheme