mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 20:20:23 +02:00
lcl: TButtonPanel: pass CM_APPSHOWBTNGLYPHCHANGED to owned buttons
git-svn-id: trunk@20533 -
This commit is contained in:
parent
3d88da4119
commit
681610137f
@ -20,7 +20,7 @@ interface
|
||||
|
||||
uses
|
||||
Types, SysUtils, Classes, Controls, ExtCtrls, Buttons, Forms, GraphType,
|
||||
Graphics, LCLStrConsts, Themes;
|
||||
Graphics, LMessages, LCLStrConsts, Themes;
|
||||
|
||||
type
|
||||
TButtonOrder = (boDefault, boCloseCancelOK, boCloseOKCancel);
|
||||
@ -87,6 +87,7 @@ type
|
||||
procedure Loaded; override;
|
||||
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
|
||||
procedure SetAlign(Value: TAlign); override;
|
||||
procedure CMAppShowBtnGlyphChanged(var Message: TLMessage); message CM_APPSHOWBTNGLYPHCHANGED;
|
||||
public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
@ -332,6 +333,11 @@ begin
|
||||
Realign;
|
||||
end;
|
||||
|
||||
procedure TCustomButtonPanel.CMAppShowBtnGlyphChanged(var Message: TLMessage);
|
||||
begin
|
||||
NotifyControls(Message.msg);
|
||||
end;
|
||||
|
||||
procedure TCustomButtonPanel.SetButtonOrder(Value: TButtonOrder);
|
||||
begin
|
||||
if FButtonOrder = Value then Exit;
|
||||
|
@ -1375,7 +1375,6 @@ type
|
||||
FOnQueryEndSession : TQueryEndSessionEvent;
|
||||
FOnMinimize : TNotifyEvent;
|
||||
FOnRestore : TNotifyEvent;
|
||||
procedure SetShowMenuGlyphs(const AValue: TApplicationShowGlyphs);
|
||||
protected
|
||||
procedure SetCaptureExceptions(const AValue : boolean);
|
||||
procedure SetHelpFile(const AValue : string);
|
||||
@ -1386,6 +1385,7 @@ type
|
||||
procedure SetHintShortCuts(const AValue : Boolean);
|
||||
procedure SetHintShortPause(const AValue : Integer);
|
||||
procedure SetShowButtonGlyphs(const AValue: TApplicationShowGlyphs);
|
||||
procedure SetShowMenuGlyphs(const AValue: TApplicationShowGlyphs);
|
||||
procedure SetShowHint(const AValue : Boolean);
|
||||
procedure SetShowMainForm(const AValue: Boolean);
|
||||
procedure SetTitle(const AValue : String);
|
||||
|
Loading…
Reference in New Issue
Block a user