You've already forked lazarus-ccr
fpspreadsheet: Redo prev two commits in a more general way.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6590 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -116,6 +116,7 @@ type
|
||||
public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
procedure ExecuteTarget(Target: TObject); override;
|
||||
procedure UpdateTarget(Target: TObject); override;
|
||||
published
|
||||
property Zoom: Integer read FZoom write SetZoom default 100;
|
||||
end;
|
||||
@@ -880,6 +881,11 @@ begin
|
||||
FZoom := AValue;
|
||||
end;
|
||||
|
||||
procedure TsWorksheetZoomAction.UpdateTarget(Target: TObject);
|
||||
begin
|
||||
Checked := (Worksheet <> nil) and (round(Worksheet.ZoomFactor*100) = FZoom);
|
||||
end;
|
||||
|
||||
|
||||
{ TsCopyAction }
|
||||
|
||||
|
Reference in New Issue
Block a user