mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 09:13:48 +02:00
LCL, use DateTime property to set initial date in TCalendar, avoid problems with non numeric month shortdate formats
git-svn-id: trunk@14144 -
This commit is contained in:
parent
6617af4295
commit
db0e597196
@ -151,7 +151,7 @@ begin
|
||||
SetInitialBounds(0,0,GetControlClassDefaultSize.X,GetControlClassDefaultSize.Y);
|
||||
fDisplaySettings := [dsShowHeadings, dsShowDayNames];
|
||||
ControlStyle:=ControlStyle-[csTripleClicks,csQuadClicks,csAcceptsControls];
|
||||
Date := FormatDateTime(ShortDateFormat,Now);
|
||||
DateTime := Now;
|
||||
end;
|
||||
|
||||
destructor TCustomCalendar.Destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user