vcl-styles

How to apply VCL Styles to DLL-based forms in Inno Setup for uninstall? Cannot Import dll

耗尽温柔 提交于 2019-12-08 08:19:24
问题 I'm trying to add VCL styles (Inno Setup 5.5.6 (a)) for my installer. Style load correctly during the installation, but when I try to uninstall I get an error Runtime Error(at-1:0): Cannot Import dll:VclStylesInno.dll. And I can not uninstall my program. Does anyone know what I can do? Thanks for the help #define VCLStylesSkinPath "{localappdata}\VCLStylesSkin" [Files] ;Install Source: "VclStylesinno.dll"; DestDir: "{app}"; Flags: dontcopy Source: "Styles\Auric.vsf"; DestDir: "{app}"; Flags:

CapsLock password message in TEdit visually fails with VCL Styles

♀尐吖头ヾ 提交于 2019-12-07 23:25:45
问题 The CapsLock message when using password in TEdit get buggy when using VCL Style. This is how looks like without style: and this with VCL Style on: The message is in portuguese, but I don't think this matter. Using Windows 10 style in Delphi Seattle 23.0.21418.4207 (with Update 1). 回答1: Found it. VCL Style Utils, like a lot of other things, solves the bug. Just had to add the Vcl.Styles.Utils.ScreenTips in the uses. 来源: https://stackoverflow.com/questions/41098869/capslock-password-message-in

Flat toolbar buttons with Delphi VCL Styles enabled?

我只是一个虾纸丫 提交于 2019-12-07 15:24:18
问题 Without VCL styles enabled, my TActionToolbar(s) look like flat toolbars. However, if I enable pretty much any VCL style, suddenly all the toolbar buttons look like 3d buttons. The VCL Style Viewer app shows toolbar buttons with both flat and button-like appearance: How can I make my TActionToolbar have the flat toolbar button style instead of looking like a bunch of buttons when I enable VCL Styles? 回答1: The draw methods used by all the controls related to the TActionManager are handled by a

CapsLock password message in TEdit visually fails with VCL Styles

雨燕双飞 提交于 2019-12-06 08:15:55
The CapsLock message when using password in TEdit get buggy when using VCL Style. This is how looks like without style: and this with VCL Style on: The message is in portuguese, but I don't think this matter. Using Windows 10 style in Delphi Seattle 23.0.21418.4207 (with Update 1). Found it. VCL Style Utils, like a lot of other things, solves the bug. Just had to add the Vcl.Styles.Utils.ScreenTips in the uses. 来源: https://stackoverflow.com/questions/41098869/capslock-password-message-in-tedit-visually-fails-with-vcl-styles

Get a specific glyph from Delphi VCL Style

独自空忆成欢 提交于 2019-12-06 07:58:21
I want to get at a specific bitmap from a VCL style - and set it as an image on a button - it is actually the help question mark. In the Bitmap Style Editor is is the btnHelp image, from the Form. To get a Visual element (glyph) from a VCL Style you must use the GetElementDetails and the TCustomStyleServices.DrawElement procedure. Try this sample uses Vcl.Themes; {$R *.dfm} procedure TForm1.PaintBox1Paint(Sender: TObject); var LDetails : TThemedElementDetails; begin //Get the detailsfor the HelpButton LDetails := StyleServices.GetElementDetails(twHelpButtonNormal); //Draw the the element in

Delphi XE2: Disabling vcl Style on a component

谁都会走 提交于 2019-12-06 05:13:38
问题 I am trying to follow the example about to disable the color on a control on my form. TStyleManager.Engine.RegisterStyleHook(ClrMeans.TwwDBComboDLG, TEditStyleHook); But I am getting an exception when either registering or unregistering either a the 3rd party control (infopower TwwDBComboDlg) or a standard VCL TEdit. Anybody had any issues with this or any suggestions 回答1: The link here explains what you need to know. Basically, you need to either put a "null hook" in, which is what you

How to apply a vcl style hook to a particular component of a form?

旧城冷巷雨未停 提交于 2019-12-06 01:08:31
I'm using the vcl style hook of the answer to this question close button of a tabsheet not supporting vcl styles and is working fine, but the close button is draw in all the TPageControl components of my app. And I want add this option (draw the close button) to only a particular form. The question is : how I can apply this hook or any vcl style hook just to the TPageControl of a specific form? You can use a interposer class for the TPageControl component check this sample type TPageControl = class(Vcl.ComCtrls.TPageControl); TForm1 = class(TForm) PageControl1: TPageControl; ... ... And then

Is VclStyle Bug ? TProgressBar.Style := pbstMarQuee Does not work

ぃ、小莉子 提交于 2019-12-05 22:45:39
问题 Is VclStyle Bug ? T^T I tried to find BugFix list(http://edn.embarcadero.com/article/42090/) but I can't File > New > VCL Application TProgressBar put main form >TProgressBar.Style := pbstMarQuee Project Option > Appearence > set Custom Style > set Default Style Ctrl + F9 ProgressBar does not work Sorry. My english is bad :( 回答1: This is a feature not implemented in the TProgressBarStyleHook. Unfortunally Windows does not send any message to the progress bar control to indicate if the

Flat toolbar buttons with Delphi VCL Styles enabled?

心不动则不痛 提交于 2019-12-05 19:24:49
Without VCL styles enabled, my TActionToolbar(s) look like flat toolbars. However, if I enable pretty much any VCL style, suddenly all the toolbar buttons look like 3d buttons. The VCL Style Viewer app shows toolbar buttons with both flat and button-like appearance: How can I make my TActionToolbar have the flat toolbar button style instead of looking like a bunch of buttons when I enable VCL Styles? The draw methods used by all the controls related to the TActionManager are handled by a TPlatformDefaultStyleActionBars class from here the classes used to paint the controls are selected

TMainMenu is not shown when the vcl styles is removed from the NC Area

此生再无相见时 提交于 2019-12-05 16:37:15
I'm using this code to remove the vcl styles from the non client area of a form. type TFormStyleHookNC= class(TMouseTrackControlStyleHook) protected procedure PaintBackground(Canvas: TCanvas); override; constructor Create(AControl: TWinControl); override; end; constructor TFormStyleHookNC.Create(AControl: TWinControl); begin inherited; OverrideEraseBkgnd := True; end; procedure TFormStyleHookNC.PaintBackground(Canvas: TCanvas); var Details: TThemedElementDetails; R: TRect; begin if StyleServices.Available then begin Details.Element := teWindow; Details.Part := 0; R := Rect(0, 0, Control