Skip to content

Commit cb23a15

Browse files
version 3.7.2
- Added UseAnimations in StyledTaskDialog component - Fixed use of StyledTaskDialog component - Fixed use of ModalResult value different from standard values
1 parent cad5484 commit cb23a15

14 files changed

+144
-96
lines changed

README.htm

Lines changed: 7 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.1</h3>
34+
<h3>Actual official version: 3.7.2</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,12 @@ <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>08 Nov 2024: version 3.7.2</p>
351+
<ul>
352+
<li>Added UseAnimations in StyledTaskDialog component</li>
353+
<li>Fixed use of StyledTaskDialog component</li>
354+
<li>Fixed use of ModalResult value different from standard values</li>
355+
</ul>
350356
<p>22 Oct 2024: version 3.7.1</p>
351357
<ul>
352358
<li>Fixed background for icon into MessageDialogs</li>

README.md

Lines changed: 6 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.1
5+
### Actual official version: 3.7.2
66

77
---
88
## A brief description
@@ -403,6 +403,11 @@ 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+
08 Nov 2024: version 3.7.2
407+
- Added UseAnimations in StyledTaskDialog component
408+
- Fixed use of StyledTaskDialog component
409+
- Fixed use of ModalResult value different from standard values
410+
406411
22 Oct 2024: version 3.7.1
407412
- Fixed background for icon into MessageDialogs
408413
- Fixed drawing TStyledGraphicButton
Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,4 @@
11
inherited StyledTaskDialogAnimatedForm: TStyledTaskDialogAnimatedForm
22
Caption = 'StyledTaskDialogAnimatedForm'
33
TextHeight = 15
4-
inherited FooterPanel: TPanel
5-
inherited FooterIconPanel: TPanel
6-
object SkFooterAnimatedImage: TSkAnimatedImage
7-
Left = 0
8-
Top = 0
9-
Width = 25
10-
Height = 25
11-
Align = alTop
12-
end
13-
end
14-
end
15-
inherited CenterPanel: TPanel
16-
inherited ImagePanel: TPanel
17-
inherited IconContainer: TPanel
18-
object SkAnimatedImage: TSkAnimatedImage
19-
Left = 0
20-
Top = 0
21-
Width = 64
22-
Height = 64
23-
Align = alClient
24-
end
25-
end
26-
end
27-
end
284
end

source/Skia.Vcl.StyledTaskDialogAnimatedUnit.pas

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,12 @@ interface
5252
, Vcl.ExtCtrls
5353
, Vcl.StdCtrls
5454
, System.UITypes
55-
, Vcl.Skia
55+
, Vcl.Skia //Warning: you cannot use Animated Style Dialog if you don't have Skia4Delphi!
5656
, System.Skia
5757
;
5858

5959
type
6060
TStyledTaskDialogAnimatedForm = class(TStyledTaskDialogForm)
61-
SkFooterAnimatedImage: TSkAnimatedImage;
62-
SkAnimatedImage: TSkAnimatedImage;
6361
private
6462
procedure InternalLoadImage(const AAnimatedImage: TSkAnimatedImage;
6563
const AImageIndex: TImageIndex; AImageName: string);
@@ -150,5 +148,9 @@ procedure TStyledTaskDialogAnimatedForm.InternalLoadImage(
150148

151149
initialization
152150
RegisterTaskDialogFormClass(TStyledTaskDialogAnimatedForm);
151+
InitializeStyledTaskDialogs(True);
152+
153+
finalization
154+
UnregisterTaskDialogFormClass(TStyledTaskDialogAnimatedForm);
153155

154156
end.

source/Vcl.AngularButtonStyles.pas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ procedure TAngularButtonStyleLight.GetStyleByModalResult(
203203
mrTryAgain : begin AStyleClass := btn_PrimaryDeepPurple; AStyleAppearance := FlatAttr; end;
204204
mrContinue : begin AStyleClass := btn_PrimaryDeepPurple; AStyleAppearance := FlatAttr; end;
205205
mrHelp : begin AStyleClass := btn_Warn; AStyleAppearance := FlatAttr; end;
206+
else
207+
GetStyleByModalResult(mrNone, AStyleClass, AStyleAppearance);
206208
end;
207209
end;
208210

@@ -393,6 +395,8 @@ procedure TAngularButtonStyleDark.GetStyleByModalResult(
393395
mrTryAgain : begin AStyleClass := btn_PrimaryPurple; AStyleAppearance := FlatAttr; end;
394396
mrContinue : begin AStyleClass := btn_PrimaryPurple; AStyleAppearance := FlatAttr; end;
395397
mrHelp : begin AStyleClass := btn_Warn; AStyleAppearance := FlatAttr; end;
398+
else
399+
GetStyleByModalResult(mrNone, AStyleClass, AStyleAppearance);
396400
end;
397401
end;
398402

source/Vcl.BootstrapButtonStyles.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ procedure TBoostrapButtonStyles.GetStyleByModalResult(
196196
mrTryAgain : begin AStyleClass := btn_warning; AStyleAppearance := BOOTSTRAP_NORMAL; end;
197197
mrContinue : begin AStyleClass := btn_secondary; AStyleAppearance := BOOTSTRAP_NORMAL; end;
198198
mrHelp : begin AStyleClass := btn_info; AStyleAppearance := BOOTSTRAP_NORMAL; end;
199+
else
200+
GetStyleByModalResult(mrNone, AStyleClass, AStyleAppearance);
199201
end;
200202
end;
201203

source/Vcl.ButtonStylesAttributes.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ interface
5555
;
5656

5757
const
58-
StyledComponentsVersion = '3.7.1';
58+
StyledComponentsVersion = '3.7.2';
5959
DEFAULT_RADIUS = 6;
6060
RESOURCE_SHIELD_ICON = 'STYLED_BUTTON_SHIELD_ADMIN';
6161
DEFAULT_MAX_BADGE_VALUE = 99;

source/Vcl.ColorButtonStyles.pas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ procedure TBasicColorButtonStyles.GetStyleByModalResult(
172172
mrTryAgain : begin AStyleClass := 'clYellow'; AStyleAppearance := COLOR_BTN_NORMAL; end;
173173
mrContinue : begin AStyleClass := 'clGray'; AStyleAppearance := COLOR_BTN_NORMAL; end;
174174
mrHelp : begin AStyleClass := 'clYellow'; AStyleAppearance := COLOR_BTN_NORMAL; end;
175+
else
176+
GetStyleByModalResult(mrNone, AStyleClass, AStyleAppearance);
175177
end;
176178
end;
177179

@@ -355,6 +357,8 @@ procedure TSVGColorButtonStyles.GetStyleByModalResult(
355357
mrTryAgain : begin AStyleClass := 'Slategray'; AStyleAppearance := COLOR_BTN_NORMAL; end;
356358
mrContinue : begin AStyleClass := 'Lightseagreen'; AStyleAppearance := COLOR_BTN_NORMAL; end;
357359
mrHelp : begin AStyleClass := 'Plum'; AStyleAppearance := COLOR_BTN_NORMAL; end;
360+
else
361+
GetStyleByModalResult(mrNone, AStyleClass, AStyleAppearance);
358362
end;
359363
end;
360364

source/Vcl.StandardButtonStyles.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ procedure TButtonStandardStyles.GetStyleByModalResult(
184184
mrTryAgain : begin AStyleAppearance := DEFAULT_APPEARANCE; end;
185185
mrContinue : begin AStyleAppearance := DEFAULT_APPEARANCE; end;
186186
mrHelp : begin AStyleAppearance := DEFAULT_APPEARANCE; end;
187+
else
188+
GetStyleByModalResult(mrNone, AStyleClass, AStyleAppearance);
187189
end;
188190
end;
189191

source/Vcl.StyledCmpMessages.pas

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ interface
5959
ERR_ACCES_VIOL_DESC = 'Si è verificato un errore inatteso nel programma.'+sLineBreak+sLineBreak+'%s'+sLineBreak+sLineBreak+
6060
'Si consiglia di uscire dal programma e riavviarlo (i dati già registrati non andranno perduti)'+sLineBreak+
6161
'Se l''errore dovesse persistere contattare il supporto tecnico';
62+
ERR_DIALOG_FORM_NOT_REGISTERED = 'Errore: La TaskDialog Form con le animazioni non è disponibile.'+sLineBreak+
63+
'Aggiungere "%s" Unit al progetto';
6264

6365
//Navigator buttons Captions
6466
CaptionFirstRecord = 'Primo';
@@ -118,6 +120,8 @@ interface
118120
ERR_ACCES_VIOL_DESC = 'Une erreur non gérée a été detectée.'+sLineBreak+sLineBreak+'%s'+sLineBreak+sLineBreak+
119121
'Il est recommandé de fermer et de relancer l''application.'+sLineBreak+
120122
'Si le programme persiste, contactez le support technique.';
123+
ERR_DIALOG_FORM_NOT_REGISTERED = 'Erreur : le formulaire TaskDialog avec animations n''est pas disponible.'+sLineBreak+
124+
'Ajouter l''unité "%s" au projet';
121125

122126
//Navigator buttons Captions
123127
CaptionFirstRecord = 'Premier';
@@ -176,7 +180,8 @@ interface
176180
ERR_ACCES_VIOL_DESC = 'Unexpected error.'+sLineBreak+sLineBreak+'%s'+sLineBreak+sLineBreak+
177181
'It is recommended to exit and reexecute the program.'+sLineBreak+
178182
'If this error persists, please contact our technical support.';
179-
183+
ERR_DIALOG_FORM_NOT_REGISTERED = 'Error: Animated TaskDialog Form not registered!'+sLineBreak+
184+
'Please add "%s" Unit to the project';
180185
//Navigator buttons Captions
181186
CaptionFirstRecord = 'First';
182187
CaptionPriorRecord = 'Prior';

0 commit comments

Comments
 (0)