Print Page | Close Window

Making the Calendar Read Only

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=7965
Printed Date: 20 July 2025 at 4:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Making the Calendar Read Only
Posted By: samhow
Subject: Making the Calendar Read Only
Date Posted: 10 September 2007 at 11:49pm
Hi,
 
I am unable to find out how to make the calendar read only.  I am sure there is a simple way to do this but I certainly can't work it out.
 
I wish to allow the user to navigate the attached date picker, hover over events and see toop tips but not type any text into the calendar, neither existing or new events.
 
I have tried using the IsEditOperationDisabled and BeforeEditOperation events to cancel the edit events but it's not working, these events seem to fire at odd times. 
 
Help is appreciated.

Cheers



Replies:
Posted By: sserge
Date Posted: 23 September 2007 at 5:17pm
Complete editing disabling:

Private Sub CalendarControl_BeforeEditOperation(ByVal OpParams As XtremeCalendarControl.CalendarEditOperationParameters, CancelOperation As Boolean)
  CancelOperation = True
Exit Sub

...

Private Sub CalendarControl_IsEditOperationDisabled(ByVal OpParams As XtremeCalendarControl.CalendarEditOperationParameters, DisableOperation As Boolean)
    DisableOperation = True
Exit Sub


--
WBR,
Serge


Posted By: samhow
Date Posted: 25 September 2007 at 6:13am
Thanks for your help sserge, that worked for me.

Cheers


Posted By: DavidB
Date Posted: 09 October 2008 at 4:13am
I added the code but the calendar can still be updated. What do I need to do do prevent modifications of the events?


Posted By: Ditte
Date Posted: 09 October 2008 at 8:09pm
Hi,

I think you should find a way do disable the methods
ShowNewEvent
ShowEditEvent
This will disable the built-in dialog. 

-------------
Regards



Dittmar



Product: Xtreme SuitePro (ActiveX) 13.4.2

Platform: Win XP

Language: Visual Dataflex 16.1


Posted By: olivvv59
Date Posted: 30 April 2009 at 5:37am
Hi,
 
I just want to disable the keyboard use directly in my calendar.
 
I try your tip.But it disable the drag and drop method.
 
How Do I need to do?
 
Thank you for your help
Olivvv
 
EDIT : i find it --> calendarControl.Options.EnableInPlaceCreateEvent = .F.
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net