TCommondialog: do not publish Widht/Height properties. Issue . Patch by AlexeyT.

git-svn-id: trunk@59032 -
This commit is contained in:
bart 2018-09-16 13:06:31 +00:00
parent daee51d966
commit ca05451b8c

View File

@ -118,13 +118,13 @@ type
procedure DoCanClose(var CanClose: Boolean); virtual;
procedure DoClose; virtual;
function HandleAllocated: boolean;
property Width: integer read GetWidth write SetWidth;
property Height: integer read GetHeight write SetHeight;
published
property OnClose: TNotifyEvent read FOnClose write FOnClose;
property OnCanClose: TCloseQueryEvent read FOnCanClose write FOnCanClose;
property OnShow: TNotifyEvent read FOnShow write FOnShow;
property HelpContext: THelpContext read FHelpContext write FHelpContext default 0;
property Width: integer read GetWidth write SetWidth default 0;
property Height: integer read GetHeight write SetHeight default 0;
property Title: TTranslateString read FTitle write FTitle stored IsTitleStored;
end;
@ -972,6 +972,9 @@ initialization
InterfaceBase.PromptDialogFunction := @DefaultPromptDialog;
InterfaceBase.QuestionDialogFunction := @DefaultQuestionDialog;
RegisterPropertyToSkip(TCommonDialog, 'Width', 'Property streamed in older Lazarus revision','');
RegisterPropertyToSkip(TCommonDialog, 'Height', 'Property streamed in older Lazarus revision','');
finalization
InterfaceBase.InputDialogFunction := nil;
InterfaceBase.QuestionDialogFunction := nil;