Print Page | Close Window

ReadOnly property for AdvSmoothCalendarGroup

Printed From: TMS Software
Category: General
Forum Name: Feature Requests
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=8142
Printed Date: 19 Oct 2019 at 11:55pm


Topic: ReadOnly property for AdvSmoothCalendarGroup
Posted By: Luis Concepcion Gonzalez
Subject: ReadOnly property for AdvSmoothCalendarGroup
Date Posted: 25 Aug 2017 at 11:07am
Is it posible to add a ReadOnly property for AdvSmoothCalendarGroup?

I'm using a TAdvSmoothCalendarGroup component to show/load multiple selected days ranges by code. It works fine, but user can cancel the current selection just clicking on any date. There is no readonly property.

I have been looking for an event to cancel user mouse clicks or something with no success. Everytime I click the calendar, selection disappears and I have to reload the date ranges again.

Thanks

Luis C.



Replies:
Posted By: Pieter Scheldeman
Date Posted: 25 Aug 2017 at 2:31pm
Hi, 

You can simply set the Enabled property to false in the constructor of the form

procedure TForm1.FormCreate(Sender: TObject);
begin
  AdvSmoothCalendarGroup1.Enabled := False;
end;



Print Page | Close Window