mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 18:59:19 +02:00
lcl: added TCustomDateTimePicker.ShowCalendarForm
This commit is contained in:
parent
e897d845ea
commit
448d4b0a28
@ -314,6 +314,7 @@ type
|
||||
procedure UndoChanges; virtual;
|
||||
|
||||
procedure DropDownCalendarForm; virtual;
|
||||
procedure ShowCalendarForm(aWrapper: TCalendarControlWrapper); virtual;
|
||||
|
||||
function GetCheckBoxRect(IgnoreRightToLeft: Boolean = False): TRect;
|
||||
function GetDateTimePartFromTextPart(TextPart: TTextPart): TDateTimePart;
|
||||
@ -681,7 +682,6 @@ type
|
||||
constructor CreateNewDTCalendarForm(AOwner: TComponent;
|
||||
ADTPicker: TCustomDateTimePicker);
|
||||
destructor Destroy; override;
|
||||
published
|
||||
end;
|
||||
|
||||
{ TDateTimePicker }
|
||||
@ -3762,10 +3762,16 @@ begin
|
||||
or (csDesigning in ComponentState))
|
||||
then begin
|
||||
FCalendarForm := TDTCalendarForm.CreateNewDTCalendarForm(nil, Self);
|
||||
FCalendarForm.Show;
|
||||
ShowCalendarForm(TDTCalendarForm(FCalendarForm).Cal);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCustomDateTimePicker.ShowCalendarForm(aWrapper: TCalendarControlWrapper);
|
||||
begin
|
||||
if aWrapper=nil then ;
|
||||
FCalendarForm.Show;
|
||||
end;
|
||||
|
||||
{ TDTUpDown }
|
||||
|
||||
{ When our UpDown control gets enabled/disabled, the two its buttons' Enabled
|
||||
|
Loading…
Reference in New Issue
Block a user