Disable Subject Editing in Day, Week, Month View? |
Post Reply |
Author | |
steve_murch
Newbie Joined: 18 May 2007 Status: Offline Points: 6 |
Post Options
Thanks(0)
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.
|
|
steve_murch
Newbie Joined: 18 May 2007 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
correction in 1 -- when you left-click on the event, it starts an in-place edit. question still stands... thanks |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |