You've already forked lazarus-ccr
tvplanit: Add "Don't ask again" checkbox to VpPrtFmt editor save prompt by using a TTaskDialog. Update resource strings and translations.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8540 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -47,6 +47,7 @@ type
|
||||
private
|
||||
FControlLink: TVpControlLink;
|
||||
FDrawingStyle: TVpDrawingStyle;
|
||||
FShowSavePrompt: Boolean;
|
||||
FWindowState: TWindowState;
|
||||
protected
|
||||
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
|
||||
@ -58,6 +59,7 @@ type
|
||||
published
|
||||
property ControlLink : TVpControlLink read FControlLink write SetControlLink;
|
||||
property DrawingStyle: TVpDrawingStyle read FDrawingStyle write FDrawingStyle default ds3d;
|
||||
property ShowSavePrompt: Boolean read FShowSavePrompt write FShowSavePrompt default true;
|
||||
property WindowState : TWindowState read FWindowState write FWindowState default wsNormal;
|
||||
|
||||
property Options;
|
||||
@ -77,6 +79,7 @@ begin
|
||||
inherited Create(AOwner);
|
||||
FControlLink := SearchControlLink (Owner);
|
||||
FDrawingStyle := ds3d;
|
||||
FShowSavePrompt := true;
|
||||
|
||||
FPlacement.Height := 480;
|
||||
FPlacement.Width := 640;
|
||||
@ -93,7 +96,9 @@ begin
|
||||
PrtFmtDlg.WindowState := WindowState;
|
||||
PrtFmtDlg.ControlLink := ControlLink;
|
||||
PrtFmtDlg.DrawingStyle := FDrawingStyle;
|
||||
PrtFmtDlg.ShowSavePrompt := FShowSavePrompt;
|
||||
Result := PrtFmtDlg.Execute;
|
||||
if Result then FShowSavePrompt := PrtFmtDlg.ShowSavePrompt;
|
||||
finally
|
||||
PrtFmtDlg.Free;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user