You've already forked lazarus-ccr
SpkToolbar: Fix checked state not propagating from toggle button back to Action.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5388 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -765,6 +765,9 @@ begin
|
||||
FChecked := Value;
|
||||
if Assigned(FToolbarDispatch) then
|
||||
FToolbarDispatch.NotifyVisualsChanged;
|
||||
|
||||
if not (csDesigning in ComponentState) and (Action <> nil) then
|
||||
(Action as TCustomAction).Checked := Value;
|
||||
end;
|
||||
|
||||
procedure TSpkBaseButton.SetDropdownMenu(const Value: TPopupMenu);
|
||||
|
@@ -461,8 +461,11 @@ begin
|
||||
if AValue <> FState then
|
||||
begin
|
||||
FState := AValue;
|
||||
{
|
||||
if Assigned(FToolbarDispatch) then
|
||||
FToolbarDispatch.NotifyVisualsChanged;
|
||||
}
|
||||
inherited SetChecked(Checked);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@@ -170,7 +170,7 @@ object Form1: TForm1
|
||||
Appearance.Element.ActiveInnerDarkColor = 961020
|
||||
Appearance.Element.ActiveCaptionColor = 8405614
|
||||
Appearance.Element.Style = esRounded
|
||||
TabIndex = 3
|
||||
TabIndex = 0
|
||||
Images = ImageList
|
||||
LargeImages = LargeImageList
|
||||
Tabs = (
|
||||
|
Reference in New Issue
Block a user