Skip to content

Commit 5e708ba

Browse files
Version 3.8.1
- Added support for Delphi 12 64bit IDE - Fix storing default ImageMargins of StyledButtons
1 parent 5ae81bb commit 5e708ba

10 files changed

+159
-41
lines changed

Images/SupportingDelphi.jpg

9.56 KB
Loading

README.htm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
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.8.0</h3>
34+
<h3>Actual official version: 3.8.1</h3>
3535
<hr />
3636
<h2>New Setup for Installation of Components</h2>
37-
<p>From 3.8.0 version a new &ldquo;Installer&rdquo; read-to-use is located in the Release area: <a href="https://github.com/EtheaDev/StyledComponents/releases/latest/download/StyledComponents_Setup.exe">Download the Installer</a>.</p>
37+
<p>From 3.8.1 version a new &ldquo;Installer&rdquo; read-to-use is located in the Release area: <a href="https://github.com/EtheaDev/StyledComponents/releases/latest/download/StyledComponents_Setup.exe">Download the Installer</a>.</p>
3838
<p>The Installer automatically detect your Delphi versions, installa sources, build and installa packages and add source paths.</p>
3939
<p><img src="./Images/Setup.png" alt="Setup"/></p>
4040
<hr />
@@ -352,6 +352,11 @@ <h3>Available from Delphi XE6 to Delphi 12 (32bit and 64bit platforms)</h3>
352352
<p><img src="./Images/SupportingDelphi.jpg" alt="Delphi Support"/></p>
353353
<p>Related links: <a href="https://www.embarcadero.com">embarcadero.com</a> - <a href="https://learndelphi.org">learndelphi.org</a></p>
354354
<h3>RELEASE NOTES</h3>
355+
<p>12 Mar 2025 - Version 3.8.1</p>
356+
<ul>
357+
<li>Added support for Delphi 12 64bit IDE</li>
358+
<li>Fix storing default ImageMargins of StyledButtons</li>
359+
</ul>
355360
<p>18 Jan 2025: version 3.8.0</p>
356361
<ul>
357362
<li>Added example of Custom TaskDialog Form in Demo (for Delphi 12)</li>

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
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.8.0
5+
### Actual official version: 3.8.1
66

77
---
88
## New Setup for Installation of Components
99

10-
From 3.8.0 version a new "Installer" read-to-use is located in the Release area: [Download the Installer](https://github.com/EtheaDev/StyledComponents/releases/latest/download/StyledComponents_Setup.exe).
10+
From 3.8.1 version a new "Installer" read-to-use is located in the Release area: [Download the Installer](https://github.com/EtheaDev/StyledComponents/releases/latest/download/StyledComponents_Setup.exe).
1111

1212
The Installer automatically detect your Delphi versions, installa sources, build and installa packages and add source paths.
1313

@@ -412,6 +412,10 @@ If you are have Skia4Delphi installed, you can also try the AnimatedTaskDialogDe
412412
Related links: [embarcadero.com](https://www.embarcadero.com) - [learndelphi.org](https://learndelphi.org)
413413

414414
### RELEASE NOTES
415+
12 Mar 2025 - Version 3.8.1
416+
- Added support for Delphi 12 64bit IDE
417+
- Fix storing default ImageMargins of StyledButtons
418+
415419
18 Jan 2025: version 3.8.0
416420
- Added example of Custom TaskDialog Form in Demo (for Delphi 12)
417421
- Fixed Clear Animation Data for Animated StyledButton

packages/D12/1.Vcl.StyledComponents.groupproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<BuildGroupProject Include="dclStyledComponents.dproj">
5656
<ProjectGuid>{03F938E4-4CBD-4FD4-86A2-084115D91AA9}</ProjectGuid>
5757
<Configurations>Release</Configurations>
58-
<Platforms>Win32</Platforms>
58+
<Platforms>Win32;Win64</Platforms>
5959
<Enabled>True</Enabled>
6060
</BuildGroupProject>
6161
</ItemGroup>

packages/D12/2.Vcl.StyledAnimatedComponents.groupproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<BuildGroupProject Include="dclStyledAnimatedComponents.dproj">
5656
<ProjectGuid>{EBF448F0-3AF1-4B95-B1AD-5874F1BABAEC}</ProjectGuid>
5757
<Configurations>Release</Configurations>
58-
<Platforms>Win32</Platforms>
58+
<Platforms>Win32;Win64</Platforms>
5959
<Enabled>True</Enabled>
6060
</BuildGroupProject>
6161
</ItemGroup>

packages/D12/StyledComponents.dproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<ProjectGuid>{F870FD7C-4984-4784-8B29-4CDB55E64524}</ProjectGuid>
44
<MainSource>StyledComponents.dpk</MainSource>
5-
<ProjectVersion>20.2</ProjectVersion>
5+
<ProjectVersion>20.3</ProjectVersion>
66
<FrameworkType>VCL</FrameworkType>
77
<Base>True</Base>
88
<Config Condition="'$(Config)'==''">Release</Config>
@@ -147,6 +147,7 @@
147147
<Platforms>
148148
<Platform value="Win32">True</Platform>
149149
<Platform value="Win64">True</Platform>
150+
<Platform value="Win64x">False</Platform>
150151
</Platforms>
151152
</BorlandProject>
152153
<ProjectFileVersion>12</ProjectFileVersion>

packages/D12/dclStyledAnimatedComponents.dproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Base>True</Base>
88
<Config Condition="'$(Config)'==''">Release</Config>
99
<Platform Condition="'$(Platform)'==''">Win32</Platform>
10-
<TargetedPlatforms>1</TargetedPlatforms>
10+
<TargetedPlatforms>3</TargetedPlatforms>
1111
<AppType>Package</AppType>
1212
<ProjectName Condition="'$(ProjectName)'==''">dclStyledAnimatedComponents</ProjectName>
1313
</PropertyGroup>
@@ -68,6 +68,7 @@
6868
</PropertyGroup>
6969
<PropertyGroup Condition="'$(Base_Win64)'!=''">
7070
<DCC_UsePackage>StyledComponents;StyledAnimatedComponents;$(DCC_UsePackage)</DCC_UsePackage>
71+
<BT_BuildType>Debug</BT_BuildType>
7172
</PropertyGroup>
7273
<PropertyGroup Condition="'$(Cfg_1)'!=''">
7374
<DCC_Define>DEBUG;$(DCC_Define)</DCC_Define>
@@ -121,7 +122,8 @@
121122
</Delphi.Personality>
122123
<Platforms>
123124
<Platform value="Win32">True</Platform>
124-
<Platform value="Win64">False</Platform>
125+
<Platform value="Win64">True</Platform>
126+
<Platform value="Win64x">False</Platform>
125127
</Platforms>
126128
</BorlandProject>
127129
<ProjectFileVersion>12</ProjectFileVersion>

packages/D12/dclStyledComponents.dproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<PropertyGroup>
33
<ProjectGuid>{03F938E4-4CBD-4FD4-86A2-084115D91AA9}</ProjectGuid>
44
<MainSource>dclStyledComponents.dpk</MainSource>
5-
<ProjectVersion>20.2</ProjectVersion>
5+
<ProjectVersion>20.3</ProjectVersion>
66
<FrameworkType>VCL</FrameworkType>
77
<Base>True</Base>
88
<Config Condition="'$(Config)'==''">Release</Config>
99
<Platform Condition="'$(Platform)'==''">Win32</Platform>
10-
<TargetedPlatforms>1</TargetedPlatforms>
10+
<TargetedPlatforms>3</TargetedPlatforms>
1111
<AppType>Package</AppType>
1212
<ProjectName Condition="'$(ProjectName)'==''">dclStyledComponents</ProjectName>
1313
</PropertyGroup>
@@ -24,15 +24,14 @@
2424
<CfgParent>Base</CfgParent>
2525
<Base>true</Base>
2626
</PropertyGroup>
27-
<PropertyGroup Condition="'$(Config)'=='Debug' or '$(Cfg_1)'!=''">
28-
<Cfg_1>true</Cfg_1>
27+
<PropertyGroup Condition="('$(Platform)'=='Win64x' and '$(Base)'=='true') or '$(Base_Win64x)'!=''">
28+
<Base_Win64x>true</Base_Win64x>
2929
<CfgParent>Base</CfgParent>
3030
<Base>true</Base>
3131
</PropertyGroup>
32-
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_1)'=='true') or '$(Cfg_1_Win32)'!=''">
33-
<Cfg_1_Win32>true</Cfg_1_Win32>
34-
<CfgParent>Cfg_1</CfgParent>
32+
<PropertyGroup Condition="'$(Config)'=='Debug' or '$(Cfg_1)'!=''">
3533
<Cfg_1>true</Cfg_1>
34+
<CfgParent>Base</CfgParent>
3635
<Base>true</Base>
3736
</PropertyGroup>
3837
<PropertyGroup Condition="'$(Config)'=='Release' or '$(Cfg_2)'!=''">
@@ -123,7 +122,8 @@
123122
</Delphi.Personality>
124123
<Platforms>
125124
<Platform value="Win32">True</Platform>
126-
<Platform value="Win64">False</Platform>
125+
<Platform value="Win64">True</Platform>
126+
<Platform value="Win64x">False</Platform>
127127
</Platforms>
128128
</BorlandProject>
129129
<ProjectFileVersion>12</ProjectFileVersion>

source/Vcl.ButtonStylesAttributes.pas

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ interface
5555
;
5656

5757
const
58-
StyledComponentsVersion = '3.7.6';
58+
StyledComponentsVersion = '3.8.1';
5959
DEFAULT_RADIUS = 6;
6060
RESOURCE_SHIELD_ICON = 'STYLED_BUTTON_SHIELD_ADMIN';
6161
DEFAULT_MAX_BADGE_VALUE = 99;
@@ -2051,14 +2051,14 @@ procedure DrawButtonText(const ACanvas: TCanvas;
20512051
R: TRect;
20522052
LOldBKMode: Integer;
20532053
begin
2054-
(* for test
2054+
{$IFDEF DEBUG_TEST}
20552055
ACanvas.Brush.Color := clYellow;
20562056
ACanvas.FillRect(ARect);
20572057
ACanvas.Pen.Color := clRed;
20582058
ACanvas.Pen.Width := 1;
20592059
ACanvas.Pen.Style := psSolid;
20602060
ACanvas.Rectangle(ARect);
2061-
*)
2061+
{$ENDIF}
20622062
R := ARect;
20632063
Winapi.Windows.DrawText(ACanvas.Handle, PChar(AText), Length(AText),
20642064
R, ABidiFlags or DT_CALCRECT);
@@ -2080,13 +2080,13 @@ procedure DrawButtonText(const ACanvas: TCanvas;
20802080
R.Top := ARect.Top + ABorderWidth + ASpacing ;
20812081
if R.Bottom > ARect.Bottom - ABorderWidth - Aspacing then
20822082
R.Bottom := ARect.Bottom - ABorderWidth - Aspacing;
2083-
(* for test
2083+
{$IFDEF DEBUG_TEST}
20842084
ACanvas.Brush.Color := clRed;
20852085
ACanvas.FillRect(R);
20862086
ACanvas.Pen.Color := clBlue;
20872087
ACanvas.Pen.Width := 1;
20882088
ACanvas.Rectangle(R);
2089-
*)
2089+
{$ENDIF}
20902090
Winapi.Windows.DrawText(ACanvas.Handle, PChar(AText),
20912091
Length(AText), R, ABidiFlags or DT_END_ELLIPSIS);
20922092
end

0 commit comments

Comments
 (0)