Print Page | Close Window

Disable Subject Editing in Day, Week, Month View?

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=8029
Printed Date: 10 May 2024 at 12:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disable Subject Editing in Day, Week, Month View?
Posted By: steve_murch
Subject: Disable Subject Editing in Day, Week, Month View?
Date Posted: 16 September 2007 at 2:51pm

Hi there,

Two (hopefully) quick and related questions about this excellent control:

1)  How can I disable the automatic subject editing in the Day/Week/Month views?  I.e., when you right-click on the event, it starts an in-place edit that lets you change the subject.  I'd like to disable this.

2)  How do I trap the right mouse button for a visible calendar event?  In my application, I'm adding specific objects to a calendar, and I want to control the editing and context-menus within my own dialogs.

 




Replies:
Posted By: steve_murch
Date Posted: 16 September 2007 at 2:52pm

correction in 1 -- when you left-click on the event, it starts an in-place edit.  question still stands... thanks



Posted By: sserge
Date Posted: 20 September 2007 at 5:23pm
Hi,

1)
You have to handle events XTP_NC_CALENDAR_IS_EVENT_EDIT_OPERATION_DISABLED and XTP_NC_CALENDAR_BEFORE_EVENT_EDIT_OPERATION.

To disable a specific editing operation it is enough to set *pbCancel = TRUE.

For an example see CalendarDemo sample application, method CCalendarDemoView::OnEvent_IsEditActionDisabled.


2) Handle XTP_NC_CALENDARCONTEXTMENU event. An example is available in the same sample.

--
WBR,
Serge



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