lcl: fix TPromptDialog, TQuestionDialog construction (issue #0018655)

git-svn-id: trunk@29283 -
This commit is contained in:
paul 2011-02-01 07:44:14 +00:00
parent c808e2596d
commit 5b2ff3e881

View File

@ -120,7 +120,7 @@ end;
constructor TPromptDialog.CreateMessageDialog(const ACaption, aMsg: string;
DialogType : longint; TheButtons: PLongint; ButtonCount, DefaultIndex : Longint);
begin
inherited Create(nil);
inherited CreateNew(nil, 1);
IsSmallDevice := (Screen.Width <= 300);
@ -684,7 +684,7 @@ var
NewKind: TBitBtnKind;
NewCaption: String;
begin
inherited Create(nil);
inherited CreateNew(nil, 1);
PopupMode := pmAuto;
BorderStyle := bsDialog;
Position := poScreenCenter;