mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 22:00:20 +02:00
lcl: fix TPromptDialog, TQuestionDialog construction (issue #0018655)
git-svn-id: trunk@29283 -
This commit is contained in:
parent
c808e2596d
commit
5b2ff3e881
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user