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:
zoran 2020-02-11 10:33:51 +00:00
parent 2efc246c6b
commit 0dc05db67d

View File

@ -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);