mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 01:16:18 +02:00
lcl: show calendar popup with current day and time in case of empty text instead of NullDate (issue #0013491 by patch of Salvatore Coppola)
git-svn-id: trunk@19381 -
This commit is contained in:
parent
8361d10065
commit
e4256705cd
@ -932,7 +932,10 @@ begin
|
||||
inherited DoButtonClick(Sender);
|
||||
|
||||
PopupOrigin:=ControlToScreen(Point(0, Height));
|
||||
ShowCalendarPopup(PopupOrigin, Date, @CalendarPopupReturnDate);
|
||||
if Trim(Text)=EmptyStr then
|
||||
ShowCalendarPopup(PopupOrigin, Now, @CalendarPopupReturnDate)
|
||||
else
|
||||
ShowCalendarPopup(PopupOrigin, Date, @CalendarPopupReturnDate)
|
||||
end;
|
||||
|
||||
procedure TDateEdit.DblClick;
|
||||
|
Loading…
Reference in New Issue
Block a user