mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 00:18:57 +01:00
DateTimePicker: Change popup mode of CalendarForm from pmAuto to pmExplicit (makes difference when ParentForm of DateTimePicker is TCustomForm, not TForm)
git-svn-id: trunk@62623 -
This commit is contained in:
parent
2efc246c6b
commit
0dc05db67d
@ -872,8 +872,10 @@ begin
|
||||
if Assigned(DTPickersParentForm) then begin
|
||||
DTPickersParentForm.AddHandlerOnVisibleChanged(@VisibleOfParentChanged);
|
||||
DTPickersParentForm.FreeNotification(Self);
|
||||
end;
|
||||
PopupMode := pmAuto;
|
||||
PopupParent := DTPickersParentForm;
|
||||
PopupMode := pmExplicit;
|
||||
end else
|
||||
PopupMode := pmAuto;
|
||||
|
||||
P := Point(0, 0);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user