Hello, I would like to know if there is a Calendar's possibility of requiring only the choice of months, without having to choose any day. I will only work with the months, but I can not select a month if a day of it is not selected. Is there such a possibility?
Example: choice month and exit.
Hi,
You can achieve this with the following code:
procedure TForm1.AdvSmoothCalendar1DateModeChanged(Sender: TObject; Mode,
ModeTo: TAdvSmoothCalendarDateMode; var allow: Boolean);
begin
allow := ModeTo = dmMonth;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
AdvSmoothCalendar1.Animation := False;
AdvSmoothCalendar1.ChangeMode(dmMonth);
end;
Which forces the mode to month, but doesn't allow picking a day.
Oh, very nice...
Thank you so much