Skip to content

Commit cad5484

Browse files
22 Oct 2024: version 3.7.1
- Fixed background for icon into MessageDialogs - Fixed drawing TStyledGraphicButton
1 parent 0e94740 commit cad5484

12 files changed

+136
-105
lines changed

Demos/Delphi11/StyledComponentsDemo.dproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<DCC_ExeOutput>..\Bin\$(Platform)</DCC_ExeOutput>
4747
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=Styled Components Demo;FileVersion=1.0.0.0;InternalName=;LegalCopyright=Copyright Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProgramID=;ProductName=;ProductVersion=1.0;Comments=</VerInfo_Keys>
4848
<DCC_UnitSearchPath>..\..\source;..\source;..\..\packages;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
49-
<Custom_Styles>&quot;Aqua Light Slate|VCLSTYLE|$(BDSCOMMONDIR)\Styles\AquaLightSlate.vsf&quot;;Glow|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glow.vsf;&quot;Iceberg Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\IcebergClassico.vsf&quot;;&quot;Lavender Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\LavenderClassico.vsf&quot;;Sky|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Sky.vsf;&quot;Slate Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\SlateClassico.vsf&quot;;&quot;Tablet Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\TabletDark.vsf&quot;;&quot;Tablet Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\TabletLight.vsf&quot;;Windows10|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10.vsf;&quot;Windows10 Blue|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Blue.vsf&quot;;&quot;Windows10 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Dark.vsf&quot;;&quot;Windows10 Green|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Green.vsf&quot;;&quot;Windows10 Purple|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Purple.vsf&quot;;&quot;Windows10 SlateGray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10SlateGray.vsf&quot;;&quot;Windows11 Modern Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Dark.vsf&quot;;&quot;Windows11 Modern Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Light.vsf&quot;;&quot;Windows11 Polar Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Polar_Dark.vsf&quot;;&quot;Windows11 Polar Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Polar_Light.vsf&quot;;Amakrits|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Amakrits.vsf;&quot;Amethyst Kamri|VCLSTYLE|$(BDSCOMMONDIR)\Styles\AmethystKamri.vsf&quot;;&quot;Aqua Graphite|VCLSTYLE|$(BDSCOMMONDIR)\Styles\AquaGraphite.vsf&quot;;Auric|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Auric.vsf;Carbon|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Carbon.vsf;&quot;Charcoal Dark Slate|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CharcoalDarkSlate.vsf&quot;;&quot;Cobalt XEMedia|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CobaltXEMedia.vsf&quot;;&quot;Cyan Dusk|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CyanDusk.vsf&quot;;&quot;Cyan Night|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CyanNight.vsf&quot;;&quot;Emerald Light Slate|VCLSTYLE|$(BDSCOMMONDIR)\Styles\EmeraldLightSlate.vsf&quot;;&quot;Golden Graphite|VCLSTYLE|$(BDSCOMMONDIR)\Styles\GoldenGraphite.vsf&quot;;Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Light.vsf;Luna|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Luna.vsf;Obsidian|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Obsidian.vsf;&quot;Onyx Blue|VCLSTYLE|$(BDSCOMMONDIR)\Styles\OnyxBlue.vsf&quot;;&quot;Ruby Graphite|VCLSTYLE|$(BDSCOMMONDIR)\Styles\RubyGraphite.vsf&quot;;&quot;Sapphire Kamri|VCLSTYLE|$(BDSCOMMONDIR)\Styles\SapphireKamri.vsf&quot;;Silver|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Silver.vsf;&quot;Smokey Quartz Kamri|VCLSTYLE|$(BDSCOMMONDIR)\Styles\SmokeyQuartzKamri.vsf&quot;;&quot;Turquoise Gray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\TurquoiseGray.vsf&quot;;Glossy|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glossy.vsf;&quot;Windows10 Clear Day|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10ClearDay.vsf&quot;;&quot;Windows10 Malibu|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Malibu.vsf&quot;</Custom_Styles>
49+
<Custom_Styles>&quot;Aqua Light Slate|VCLSTYLE|$(BDSCOMMONDIR)\Styles\AquaLightSlate.vsf&quot;;Glow|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glow.vsf;&quot;Iceberg Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\IcebergClassico.vsf&quot;;&quot;Lavender Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\LavenderClassico.vsf&quot;;Sky|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Sky.vsf;&quot;Slate Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\SlateClassico.vsf&quot;;&quot;Tablet Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\TabletDark.vsf&quot;;&quot;Tablet Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\TabletLight.vsf&quot;;Windows10|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10.vsf;&quot;Windows10 Blue|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Blue.vsf&quot;;&quot;Windows10 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Dark.vsf&quot;;&quot;Windows10 Green|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Green.vsf&quot;;&quot;Windows10 Purple|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Purple.vsf&quot;;&quot;Windows10 SlateGray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10SlateGray.vsf&quot;;&quot;Windows11 MineShaft|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_MineShaft.vsf&quot;;&quot;Windows11 Modern Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Dark.vsf&quot;;&quot;Windows11 Modern Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Light.vsf&quot;;&quot;Windows11 Polar Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Polar_Dark.vsf&quot;;&quot;Windows11 Polar Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Polar_Light.vsf&quot;;&quot;Windows11 White Smoke|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_WhiteSmoke.vsf&quot;;Amakrits|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Amakrits.vsf;&quot;Amethyst Kamri|VCLSTYLE|$(BDSCOMMONDIR)\Styles\AmethystKamri.vsf&quot;;&quot;Aqua Graphite|VCLSTYLE|$(BDSCOMMONDIR)\Styles\AquaGraphite.vsf&quot;;Auric|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Auric.vsf;Carbon|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Carbon.vsf;&quot;Charcoal Dark Slate|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CharcoalDarkSlate.vsf&quot;;&quot;Cobalt XEMedia|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CobaltXEMedia.vsf&quot;;Copper|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Copper.vsf;CopperDark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CopperDark.vsf;Coral|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Coral.vsf;&quot;Cyan Dusk|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CyanDusk.vsf&quot;;&quot;Cyan Night|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CyanNight.vsf&quot;;Diamond|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Diamond.vsf;Emerald|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Emerald.vsf;&quot;Emerald Light Slate|VCLSTYLE|$(BDSCOMMONDIR)\Styles\EmeraldLightSlate.vsf&quot;;&quot;Golden Graphite|VCLSTYLE|$(BDSCOMMONDIR)\Styles\GoldenGraphite.vsf&quot;;Jet|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Jet.vsf;Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Light.vsf;Luna|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Luna.vsf;Obsidian|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Obsidian.vsf;&quot;Onyx Blue|VCLSTYLE|$(BDSCOMMONDIR)\Styles\OnyxBlue.vsf&quot;;Radiant|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Radiant.vsf;&quot;Ruby Graphite|VCLSTYLE|$(BDSCOMMONDIR)\Styles\RubyGraphite.vsf&quot;;&quot;Sapphire Kamri|VCLSTYLE|$(BDSCOMMONDIR)\Styles\SapphireKamri.vsf&quot;;Silver|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Silver.vsf;&quot;Smokey Quartz Kamri|VCLSTYLE|$(BDSCOMMONDIR)\Styles\SmokeyQuartzKamri.vsf&quot;;Sterling|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Sterling.vsf;&quot;Turquoise Gray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\TurquoiseGray.vsf&quot;;Vapor|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Vapor.vsf;Calypso|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Calypso.vsf;&quot;Calypso LE|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CalypsoLE.vsf&quot;;&quot;Calypso SE|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CalypsoSE.vsf&quot;;&quot;Calypso SLE|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CalypsoSLE.vsf&quot;;&quot;Flat UI Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\FlatUILight.vsf&quot;;Glossy|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glossy.vsf;&quot;Lucky Point|VCLSTYLE|$(BDSCOMMONDIR)\Styles\LuckyPoint.vsf&quot;;&quot;Material Oxford Blue|VCLSTYLE|$(BDSCOMMONDIR)\Styles\MaterialOxfordBlue.vsf&quot;;&quot;Material Oxford Blue SE|VCLSTYLE|$(BDSCOMMONDIR)\Styles\MaterialOxfordBlueSE.vsf&quot;;&quot;Material Pattens Blue|VCLSTYLE|$(BDSCOMMONDIR)\Styles\MaterialPattensBlue.vsf&quot;;&quot;Puerto Rico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\PuertoRico.vsf&quot;;Stellar|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Stellar.vsf;&quot;Stellar Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\StellarDark.vsf&quot;;&quot;Wedgewood Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\WedgewoodLight.vsf&quot;;&quot;Windows10 BlackPearl|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10BlackPearl.vsf&quot;;&quot;Windows10 Blue Whale|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10BlueWhale.vsf&quot;;&quot;Windows10 Blue Whale LE|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10BlueWhaleLE.vsf&quot;;&quot;Windows10 Clear Day|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10ClearDay.vsf&quot;;&quot;Windows10 Malibu|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Malibu.vsf&quot;;Zircon|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Zircon.vsf;&quot;Zircon SE|VCLSTYLE|$(BDSCOMMONDIR)\Styles\ZirconSE.vsf&quot;</Custom_Styles>
5050
<DCC_Define>UseStyledCompEditorsAtRunTime;$(DCC_Define)</DCC_Define>
5151
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
5252
<DCC_IntegerOverflowCheck>true</DCC_IntegerOverflowCheck>

Demos/source/DemoWelcomeForm.dfm

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
object WelcomeForm: TWelcomeForm
22
Left = 426
33
Top = 263
4-
BorderStyle = bsNone
4+
BorderIcons = []
5+
BorderStyle = bsToolWindow
56
Caption = 'Welcome'
6-
ClientHeight = 321
7-
ClientWidth = 526
7+
ClientHeight = 294
8+
ClientWidth = 528
89
Color = clBtnFace
910
Font.Charset = DEFAULT_CHARSET
1011
Font.Color = clWindowText
@@ -18,8 +19,8 @@ object WelcomeForm: TWelcomeForm
1819
object FramePanel: TPanel
1920
Left = 0
2021
Top = 0
21-
Width = 526
22-
Height = 321
22+
Width = 518
23+
Height = 294
2324
Align = alClient
2425
BevelOuter = bvNone
2526
BorderWidth = 1
@@ -28,17 +29,18 @@ object WelcomeForm: TWelcomeForm
2829
object BackPanel: TPanel
2930
Left = 1
3031
Top = 1
31-
Width = 524
32-
Height = 319
32+
Width = 516
33+
Height = 292
3334
Align = alClient
3435
TabOrder = 0
3536
object TitleLabel: TLabel
3637
AlignWithMargins = True
37-
Left = 96
38+
Left = 94
3839
Top = 21
39-
Width = 424
40-
Height = 63
40+
Width = 421
41+
Height = 67
4142
Margins.Top = 20
43+
Margins.Right = 10
4244
Align = alClient
4345
Alignment = taCenter
4446
AutoSize = False
@@ -55,8 +57,9 @@ object WelcomeForm: TWelcomeForm
5557
Top = 11
5658
Width = 80
5759
Height = 74
58-
Margins.Left = 10
59-
Margins.Top = 10
60+
Height = 80
61+
Margins.Left = 8
62+
Margins.Top = 8
6063
Margins.Right = 2
6164
Margins.Bottom = 2
6265
Align = alLeft
@@ -292,9 +295,9 @@ object WelcomeForm: TWelcomeForm
292295
object Memo: TMemo
293296
AlignWithMargins = True
294297
Left = 7
295-
Top = 93
296-
Width = 510
297-
Height = 182
298+
Top = 97
299+
Width = 502
300+
Height = 151
298301
Margins.Left = 6
299302
Margins.Top = 6
300303
Margins.Right = 6
@@ -307,14 +310,14 @@ object WelcomeForm: TWelcomeForm
307310
end
308311
object BottomPanel: TPanel
309312
Left = 1
310-
Top = 281
311-
Width = 522
313+
Top = 254
314+
Width = 514
312315
Height = 37
313316
Align = alBottom
314317
BevelOuter = bvNone
315318
TabOrder = 1
316319
object OkButton: TStyledButton
317-
Left = 432
320+
Left = 434
318321
Top = 3
319322
Width = 84
320323
Height = 30

Demos/source/StyledButtonGroupForm.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ procedure TfmStyledButtonGroup.CreateStyledButtonGroup;
196196
FStyledButtonGroup := TStyledButtonGroup.Create(Self);
197197
FStyledButtonGroup.Parent := Self;
198198
FStyledButtonGroup.Align := alLeft;
199-
FStyledButtonGroup.Width := Round(BUTTON_WIDTH * 1.5);
199+
FStyledButtonGroup.Width := Round(BUTTON_WIDTH * 1.5 * GetScaleFactor);
200200
UpdateShowCaptions(FStyledButtonGroup, BUTTONGROUP_SHOW_CAPTIONS);
201201
UpdateSetFullSize(FStyledButtonGroup, BUTTONGROUP_FULLSIZE);
202202
UpdateSetGroupStyle(FStyledButtonGroup, BUTTON_GROUP_GROUP_STYLE);
@@ -211,7 +211,7 @@ procedure TfmStyledButtonGroup.CreateButtonGroup;
211211
FButtonGroup := TButtonGroup.Create(Self);
212212
FButtonGroup.Parent := Self;
213213
FButtonGroup.Align := alLeft;
214-
FButtonGroup.Width := Round(BUTTON_WIDTH * 1.5);
214+
FButtonGroup.Width := Round(BUTTON_WIDTH * 1.5 * GetScaleFactor);
215215
UpdateShowCaptions(FButtonGroup, BUTTONGROUP_SHOW_CAPTIONS);
216216
UpdateSetFullSize(FButtonGroup, BUTTONGROUP_FULLSIZE);
217217
UpdateSetGroupStyle(FButtonGroup, BUTTON_GROUP_GROUP_STYLE);

Demos/source/StyledButtonVCLStylesForm.pas

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,16 @@ procedure TfmStyledButtonVCLStyles.CreateButtons(const AVcl: Boolean;
206206
AStyleName: string);
207207
var
208208
LButton: TStyledButton;
209+
LAsVcl: Boolean;
209210
begin
211+
LAsVcl := RenderRadioGroup.ItemIndex = RENDER_SAME_AS_VCL;
210212
LButton := TStyledButton.CreateStyled(Self,
211213
DEFAULT_CLASSIC_FAMILY,
212214
AStyleName,
213-
DEFAULT_APPEARANCE);
215+
DEFAULT_APPEARANCE,
216+
DEFAULT_STYLEDRAWTYPE,
217+
DEFAULT_CURSOR,
218+
not LAsVcl);
214219

215220
LButton.Enabled := EnabledCheckBox.Checked;
216221
LButton.SetBounds((AColumn * LWidth) + (BUTTON_MARGIN*AColumn),

Demos/source/StyledButtonsForm.dfm

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,11 +1551,9 @@ object fmStyledButtons: TfmStyledButtons
15511551
Left = 0
15521552
Top = 0
15531553
Width = 883
1554-
Height = 47
1554+
Height = 121
15551555
Align = alTop
15561556
Caption = 'Normal Classic Buttons (similar to VCL Styled Button)'
1557-
DoubleBuffered = False
1558-
ParentDoubleBuffered = False
15591557
TabOrder = 0
15601558
object ClassicNormalFlowPanel: TFlowPanel
15611559
Left = 2
@@ -1565,6 +1563,8 @@ object fmStyledButtons: TfmStyledButtons
15651563
Align = alTop
15661564
AutoSize = True
15671565
BevelOuter = bvNone
1566+
ParentBackground = False
1567+
ParentColor = True
15681568
TabOrder = 0
15691569
OnResize = FlowPanelResize
15701570
end
@@ -1573,11 +1573,9 @@ object fmStyledButtons: TfmStyledButtons
15731573
Left = 0
15741574
Top = 47
15751575
Width = 883
1576-
Height = 56
1576+
Height = 130
15771577
Align = alTop
15781578
Caption = 'Outline Classic Buttons (inspired to VCL Styled Button)'
1579-
DoubleBuffered = False
1580-
ParentDoubleBuffered = False
15811579
TabOrder = 1
15821580
object ClassicOutlineFlowPanel: TFlowPanel
15831581
Left = 2
@@ -1587,6 +1585,8 @@ object fmStyledButtons: TfmStyledButtons
15871585
Align = alTop
15881586
AutoSize = True
15891587
BevelOuter = bvNone
1588+
ParentBackground = False
1589+
ParentColor = True
15901590
TabOrder = 0
15911591
OnResize = FlowPanelResize
15921592
end
@@ -1615,8 +1615,6 @@ object fmStyledButtons: TfmStyledButtons
16151615
Height = 185
16161616
Align = alTop
16171617
Caption = 'Normal Buttons'
1618-
DoubleBuffered = False
1619-
ParentDoubleBuffered = False
16201618
TabOrder = 0
16211619
object FlowPanelNormal: TFlowPanel
16221620
Left = 2
@@ -1626,6 +1624,8 @@ object fmStyledButtons: TfmStyledButtons
16261624
Align = alTop
16271625
AutoSize = True
16281626
BevelOuter = bvNone
1627+
ParentBackground = False
1628+
ParentColor = True
16291629
TabOrder = 0
16301630
OnResize = FlowPanelResize
16311631
end
@@ -1637,17 +1637,17 @@ object fmStyledButtons: TfmStyledButtons
16371637
Height = 185
16381638
Align = alTop
16391639
Caption = 'Outline Buttons'
1640-
DoubleBuffered = False
1641-
ParentDoubleBuffered = False
16421640
TabOrder = 1
16431641
object FlowPanelOutLine: TFlowPanel
1644-
Left = 2
1642+
Left = 1
16451643
Top = 15
16461644
Width = 877
16471645
Height = 143
16481646
Align = alTop
16491647
AutoSize = True
16501648
BevelOuter = bvNone
1649+
ParentBackground = False
1650+
ParentColor = True
16511651
TabOrder = 0
16521652
OnResize = FlowPanelResize
16531653
end
@@ -1675,8 +1675,6 @@ object fmStyledButtons: TfmStyledButtons
16751675
Height = 185
16761676
Align = alTop
16771677
Caption = 'Normal Buttons'
1678-
DoubleBuffered = False
1679-
ParentDoubleBuffered = False
16801678
TabOrder = 0
16811679
object SvgColorNormalFlowPanel: TFlowPanel
16821680
Left = 2
@@ -1686,6 +1684,8 @@ object fmStyledButtons: TfmStyledButtons
16861684
Align = alTop
16871685
AutoSize = True
16881686
BevelOuter = bvNone
1687+
ParentBackground = False
1688+
ParentColor = True
16891689
TabOrder = 0
16901690
OnResize = FlowPanelResize
16911691
end
@@ -1697,17 +1697,17 @@ object fmStyledButtons: TfmStyledButtons
16971697
Height = 185
16981698
Align = alTop
16991699
Caption = 'Outline Buttons'
1700-
DoubleBuffered = False
1701-
ParentDoubleBuffered = False
17021700
TabOrder = 1
17031701
object SvgColorOutlineFlowPanel: TFlowPanel
1704-
Left = 2
1702+
Left = 1
17051703
Top = 15
17061704
Width = 877
17071705
Height = 143
17081706
Align = alTop
17091707
AutoSize = True
17101708
BevelOuter = bvNone
1709+
ParentBackground = False
1710+
ParentColor = True
17111711
TabOrder = 0
17121712
OnResize = FlowPanelResize
17131713
end

Demos/source/StyledCategoryButtonsForm.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ procedure TfmStyledCategoryButtons.CreateStyledCategoryButtons;
183183
FStyledCategoryButtons := TStyledCategoryButtons.Create(Self);
184184
FStyledCategoryButtons.Parent := Self;
185185
FStyledCategoryButtons.Align := alLeft;
186-
FStyledCategoryButtons.Width := Round(BUTTON_WIDTH * 1.5);
186+
FStyledCategoryButtons.Width := Round(BUTTON_WIDTH * 1.5 * GetScaleFactor);
187187
UpdateShowCaptions(FStyledCategoryButtons, CATEGORYBUTTONS_SHOW_CAPTIONS);
188188
UpdateSetFullSize(FStyledCategoryButtons, CATEGORYBUTTONS_FULLSIZE);
189189
FStyledCategoryButtons.Images := VirtualImageList;
@@ -197,7 +197,7 @@ procedure TfmStyledCategoryButtons.CreateCategoryButtons;
197197
FCategoryButtons := TCategoryButtons.Create(Self);
198198
FCategoryButtons.Parent := Self;
199199
FCategoryButtons.Align := alLeft;
200-
FCategoryButtons.Width := Round(BUTTON_WIDTH * 1.5);
200+
FCategoryButtons.Width := Round(BUTTON_WIDTH * 1.5 * GetScaleFactor);
201201
UpdateShowCaptions(FCategoryButtons, CategoryButtons_SHOW_CAPTIONS);
202202
UpdateSetFullSize(FCategoryButtons, CategoryButtons_FULLSIZE);
203203
FCategoryButtons.Images := VirtualImageList;

README.htm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</style>
3232
<h1>Delphi VCL StyledComponents <a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg" alt="License"/></a></h1>
3333
<h2>Components similar to Delphi VCL Buttons, Toolbar, DbNavigator, BindNavigator, ButtonGroup and CategoryButtons with Custom Graphic Styles, and an advanced, full-customizable TaskDialog, also with animations!</h2>
34-
<h3>Actual official version: 3.7.0</h3>
34+
<h3>Actual official version: 3.7.1</h3>
3535
<hr />
3636
<h2>A brief description</h2>
3737
<p><strong>StyledComponents</strong> is a set of VCL components for Delphi (32 and 64 bit) that allow you to overcome the limits imposed by standard VCL components, maintaining 100% compatibility of the properties.</p>
@@ -347,6 +347,11 @@ <h3>Available from Delphi XE6 to Delphi 12 (32bit and 64bit platforms)</h3>
347347
<p><img src="./Images/SupportingDelphi.jpg" alt="Delphi Support"/></p>
348348
<p>Related links: <a href="https://www.embarcadero.com">embarcadero.com</a> - <a href="https://learndelphi.org">learndelphi.org</a></p>
349349
<h3>RELEASE NOTES</h3>
350+
<p>22 Oct 2024: version 3.7.1</p>
351+
<ul>
352+
<li>Fixed background for icon into MessageDialogs</li>
353+
<li>Fixed drawing TStyledGraphicButton</li>
354+
</ul>
350355
<p>20 Oct 2024: version 3.7.0</p>
351356
<ul>
352357
<li>Outlined Colored Button (standard and SVG) now paint buttons also when focused, same as when &ldquo;hot&rdquo;</li>

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Components similar to Delphi VCL Buttons, Toolbar, DbNavigator, BindNavigator, ButtonGroup and CategoryButtons with Custom Graphic Styles, and an advanced, full-customizable TaskDialog, also with animations!
44

5-
### Actual official version: 3.7.0
5+
### Actual official version: 3.7.1
66

77
---
88
## A brief description
@@ -403,6 +403,10 @@ If you are have Skia4Delphi installed, you can also try the AnimatedTaskDialogDe
403403
Related links: [embarcadero.com](https://www.embarcadero.com) - [learndelphi.org](https://learndelphi.org)
404404

405405
### RELEASE NOTES
406+
22 Oct 2024: version 3.7.1
407+
- Fixed background for icon into MessageDialogs
408+
- Fixed drawing TStyledGraphicButton
409+
406410
20 Oct 2024: version 3.7.0
407411
- Outlined Colored Button (standard and SVG) now paint buttons also when focused, same as when "hot"
408412
- Use always DrawRectWithGDIPlus

packages/Vcl.StyledButtonEditorUnit.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ function EditStyledButtonRender(const AButtonRender: TStyledButtonRender): Boole
205205

206206
Result := ShowModal = mrOk;
207207
SavedBounds := BoundsRect;
208+
if Result then
209+
AButtonRender.OwnerControl.Invalidate;
208210
finally
209211
Free;
210212
end;

0 commit comments

Comments
 (0)