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,7 +872,9 @@ begin
if Assigned(DTPickersParentForm) then begin if Assigned(DTPickersParentForm) then begin
DTPickersParentForm.AddHandlerOnVisibleChanged(@VisibleOfParentChanged); DTPickersParentForm.AddHandlerOnVisibleChanged(@VisibleOfParentChanged);
DTPickersParentForm.FreeNotification(Self); DTPickersParentForm.FreeNotification(Self);
end; PopupParent := DTPickersParentForm;
PopupMode := pmExplicit;
end else
PopupMode := pmAuto; PopupMode := pmAuto;
P := Point(0, 0); P := Point(0, 0);