Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Making the Calendar Read Only
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Making the Calendar Read Only

 Post Reply Post Reply
Author
Message
samhow View Drop Down
Newbie
Newbie


Joined: 10 September 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote samhow Quote  Post ReplyReply Direct Link To This Post Topic: Making the Calendar Read Only
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
samhow View Drop Down
Newbie
Newbie


Joined: 10 September 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote samhow Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2007 at 6:13am
Thanks for your help sserge, that worked for me.

Cheers
Back to Top
DavidB View Drop Down
Newbie
Newbie


Joined: 09 October 2008
Location: Malaysia
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote DavidB Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Ditte View Drop Down
Groupie
Groupie


Joined: 28 October 2007
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ditte Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
olivvv59 View Drop Down
Newbie
Newbie


Joined: 30 April 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote olivvv59 Quote  Post ReplyReply Direct Link To This Post 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.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.