diff --git a/Ext/StyledComponents/source/Vcl.StyledButton.pas b/Ext/StyledComponents/source/Vcl.StyledButton.pas index 5de365f..0da45a8 100644 --- a/Ext/StyledComponents/source/Vcl.StyledButton.pas +++ b/Ext/StyledComponents/source/Vcl.StyledButton.pas @@ -53,7 +53,7 @@ interface ; const - StyledButtonsVersion = '3.5.1'; + StyledButtonsVersion = '3.5.2'; resourcestring ERROR_SETTING_BUTTON_STYLE = 'Error setting Button Style: %s/%s/%s not available'; @@ -282,6 +282,7 @@ TStyledButtonRender = class(TObject) procedure SetGroupIndex(const AValue: Integer); procedure SetShowCaption(const AValue: Boolean); procedure UpAllButtons; + function GetCaptionToDraw: string; protected FCustomDrawType: Boolean; FUseButtonLayout: Boolean; @@ -2575,7 +2576,7 @@ procedure TStyledButtonRender.DrawCaptionAndImage(const ACanvas: TCanvas; LCaption: TCaption; begin if FShowCaption then - LCaption := Caption + LCaption := GetCaptionToDraw else LCaption := ''; case FCaptionAlignment of @@ -3767,6 +3768,16 @@ function TStyledButtonRender.GetComponentWidth: Integer; Result := FOwnerControl.Width; end; +function TStyledButtonRender.GetCaptionToDraw: string; +begin + if FOwnerControl is TCustomStyledGraphicButton then + Result := TCustomStyledGraphicButton(FOwnerControl).GetCaptionToDraw + else if FOwnerControl is TCustomStyledButton then + Result := TCustomStyledButton(FOwnerControl).GetCaptionToDraw + else + Result := ''; +end; + function TStyledButtonRender.GetComponentHeight: Integer; begin Result := FOwnerControl.Height; @@ -3926,7 +3937,7 @@ constructor TCustomStyledGraphicButton.CreateStyled(AOwner: TComponent; inherited Create(AOwner); FImageIndex := -1; FRender := GetRenderClass.CreateStyled(Self, - ControlClick, ControlFont, GetCaptionToDraw, SetCaption, + ControlClick, ControlFont, GetCaption, SetCaption, GetParentFont, SetParentFont, AFamily, AClass, AAppearance, _DefaultStyleDrawType, _DefaultCursor, _UseCustomDrawType); @@ -3950,7 +3961,7 @@ constructor TCustomStyledGraphicButton.CreateStyled(AOwner: TComponent; inherited Create(AOwner); FImageIndex := -1; FRender := GetRenderClass.CreateStyled(Self, - ControlClick, ControlFont, GetCaptionToDraw, SetCaption, + ControlClick, ControlFont, GetCaption, SetCaption, GetParentFont, SetParentFont, AFamily, AClass, AAppearance, ADrawType, ACursor, AUseCustomDrawType); @@ -5074,7 +5085,7 @@ constructor TCustomStyledButton.CreateStyled(AOwner: TComponent; ParentColor := False; FImageIndex := -1; FRender := GetRenderClass.CreateStyled(Self, - ControlClick, ControlFont, GetCaptionToDraw, SetCaption, + ControlClick, ControlFont, GetCaption, SetCaption, GetParentFont, SetParentFont, AFamily, AClass, AAppearance, _DefaultStyleDrawType, _DefaultCursor, _UseCustomDrawType); @@ -5091,7 +5102,7 @@ constructor TCustomStyledButton.CreateStyled(AOwner: TComponent; ParentColor := False; FImageIndex := -1; FRender := GetRenderClass.CreateStyled(Self, - ControlClick, ControlFont, GetCaptionToDraw, SetCaption, + ControlClick, ControlFont, GetCaption, SetCaption, GetParentFont, SetParentFont, AFamily, AClass, AAppearance, ADrawType, ACursor, AUseCustomDrawType); diff --git a/Ext/StyledComponents/source/Vcl.StyledToolbar.pas b/Ext/StyledComponents/source/Vcl.StyledToolbar.pas index aeeac16..6c68426 100644 --- a/Ext/StyledComponents/source/Vcl.StyledToolbar.pas +++ b/Ext/StyledComponents/source/Vcl.StyledToolbar.pas @@ -113,7 +113,6 @@ TStyledToolButton = class(TCustomStyledGraphicButton) function IsStoredStyleClass: Boolean; override; function IsEnabledStored: Boolean; override; function IsCaptionStored: Boolean; override; - function GetText: TCaption; override; function GetImage(out AImageList: TCustomImageList; out AImageIndex: Integer): Boolean; override; function GetButtonState: TStyledButtonState; override; @@ -605,16 +604,6 @@ function TStyledToolButton.GetStyleDrawType: TStyledButtonDrawType; Result := inherited StyleDrawType; end; -function TStyledToolButton.GetText: TCaption; -begin - if Assigned(FToolBar) and not (FToolBar.ShowCaptions) then - Result := '' - else if IsSeparator then - Result := '' - else - Result := inherited GetText; -end; - function TStyledToolButton.GetWrap: Boolean; begin Result := inherited WordWrap; diff --git a/Images/Context-Menu.png b/Images/Context-Menu.png deleted file mode 100644 index b190502..0000000 Binary files a/Images/Context-Menu.png and /dev/null differ diff --git a/Images/ExportToPNG.png b/Images/ExportToPNG.png deleted file mode 100644 index 8c0e1f0..0000000 Binary files a/Images/ExportToPNG.png and /dev/null differ diff --git a/Images/SkiaShellExtensions.png b/Images/SkiaShellExtensions.png new file mode 100644 index 0000000..1cc29ad Binary files /dev/null and b/Images/SkiaShellExtensions.png differ diff --git a/Images/lottie_200.png b/Images/lottie_200.png new file mode 100644 index 0000000..1af2b3f Binary files /dev/null and b/Images/lottie_200.png differ diff --git a/README.htm b/README.htm index 9ac0b23..457c457 100644 --- a/README.htm +++ b/README.htm @@ -30,7 +30,7 @@ }

SKIA Shell Extensions and Lottie Editor License

-

Latest Version 1.5.3 - 09 May 2024

+

Latest Version 1.5.4 - 12 May 2024

A collection of extensions tools for image and animations files, integrated into Microsoft Windows Explorer (7, 8, 10 and 11):