just yet tested TDateEdit on "StayOnTop" form and cought a bug, the calendar window (of course) popups behind the parent form.
in CalendarPopup unit, since that, i suggest change procedure "ShowCalendarPopup" by setting
PopupForm.FormStyle always to fsStayOnTop.
something like this:
procedure ShowCalendarPopup(const Position: TPoint; ADate: TDateTime;
OnReturnDate: TReturnDateEvent);
var
PopupForm: TCalendarPopupForm;
begin
PopupForm := TCalendarPopupForm.Create(nil);
PopupForm.Initialize(Position, ADate);
PopupForm.FOnReturnDate := OnReturnDate;
{Let it be on TOP}
PopupForm.FormStyle:=fsStayOnTop;
//TODO: Change to PopupForm.Show when gtk supports non modal forms on top of
//modal forms.
{$IFDEF windows}
PopupForm.Show;
{$ELSE}
PopupForm.ShowModal;
{$ENDIF}
end;
Also: i'm not an expert in GTK, but maybe the solution might resolve the showmodal case
{$ELSE}
PopupForm.ShowModal;
{$ENDIF}
Thanks for your attention