You've already forked lazarus-ccr
spktoolbar: Improved setters of some TSpkBaseButton properties. See https://forum.lazarus.freepascal.org/index.php/topic,51552.msg471040.html#msg471040.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8706 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -849,6 +849,9 @@ end;
|
||||
|
||||
procedure TSpkBaseButton.SetButtonKind(const Value: TSpkButtonKind);
|
||||
begin
|
||||
if FButtonKind = Value then
|
||||
exit;
|
||||
|
||||
FButtonKind := Value;
|
||||
if Assigned(FToolbarDispatch) then
|
||||
FToolbarDispatch.NotifyMetricsChanged;
|
||||
@ -856,6 +859,9 @@ end;
|
||||
|
||||
procedure TSpkBaseButton.SetCaption(const Value: string);
|
||||
begin
|
||||
if FCaption = Value then
|
||||
exit;
|
||||
|
||||
FCaption := Value;
|
||||
if Assigned(FToolbarDispatch) then
|
||||
FToolbarDispatch.NotifyMetricsChanged;
|
||||
@ -884,6 +890,9 @@ end;
|
||||
|
||||
procedure TSpkBaseButton.SetDropdownMenu(const Value: TPopupMenu);
|
||||
begin
|
||||
if FDropDownMenu = Value then
|
||||
exit;
|
||||
|
||||
FDropdownMenu := Value;
|
||||
if Assigned(FToolbarDispatch) then
|
||||
FToolbarDispatch.NotifyMetricsChanged;
|
||||
|
Reference in New Issue
Block a user