disable the "Click to add appointment" |
Post Reply |
Author | |
Makarand
Senior Member Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Posted: 16 December 2008 at 12:17am |
Hi Oleg,
How can I disable the "Click to add appointment" functionality? see the attached image for the detail. Waiting for reply. - Mak |
|
prashant
Senior Member Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
Post Options
Thanks(0)
|
Hi Mak,
Add following piece of code in your Calendar views OnInitialUpdate() GetCalendarCtrl().GetCalendarOptions()->bEnableAddNewTooltip = FALSE; Cheers |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Hi, Mak,
GetCalendarCtrl().GetCalendarOptions()->bEnableAddNewTooltip = FALSE;
will eliminate in-place editing but OnClick still generate New Event Dialog call - same as context menu with Add New Event item
What do you really want to keep?
Looks like flag bEnableAddNewTooltip not working in current version but another flag -
GetCalendarCtrl().GetCalendarOptions()->bEnableInPlaceCreateEvent = FALSE;
works - (I tested it)
About OnClick and ContextMenu events:
Calendar Control only send Notification to User View, e.g.
void CCalendarDemoView::AddNewEvent(...){
CXTPCalendarEventPropertiesDlg dlg(&GetCalendarCtrl(), TRUE, this); }
Inside this code - before dlg - you can implement your own logic and immediately return if don't want dialog appears. Same for ContextMenu - for you business logic you can delete Add Event menu item if needed.
Looks like I covered all your cases - right?
Resume - set flag bEnableInPlaceCreateEvent FALSE to get rid from in-place event creation and implement your own logic in your code to allow or not OnClick and On Context Menu CXTPCalendarEventPropertiesDlg calls
|
|
KumarCJ
Groupie Joined: 02 April 2007 Location: India Status: Offline Points: 96 |
Post Options
Thanks(0)
|
Hello Codejock Team, We are using "Xtreme ToolkitPro v12.1.1". We are using below code for not displaying "Click to add appointment" tooltip in our application. This code is working fine in debug/release mode of vc++ 6.0 for all the developer machine and testers machines and having same directory settings, but when we use the same build exe with same codejock lib on other machine the issue arises. When we build our application on build machine which is having same directory settings and same files in debug/release both the mode and try to run the our application exe. [Issue]: "Click to add appointment" tooltip is appearing on calendar. After this we tried using below code as suggested by Mark on "https://forum.codejock.com/search_results_posts.asp?SearchID=20090402013753&KW=bEnableInPlaceCreateEvent" ((CXTPCalendarControl*)this)->GetCalendarOptions()->bEnableInPlaceCreateEvent = FALSE; I wanted to know why it is good to use "((CXTPCalendarControl*)this)->GetCalendarOptions()->bEnableInPlaceCreateEvent = FALSE;" instead of using "((CXTPCalendarControl*)this)->GetCalendarOptions()->bEnableAddNewTooltip = FALSE;" Please let us know the reason behind this. [Note:] We did not tried "((CXTPCalendarControl*)this)->GetCalendarOptions()->bEnableInPlaceCreateEvent = FALSE;" on or build machine. Will try and let you know the result. |
|
KumarCJ
Groupie Joined: 02 April 2007 Location: India Status: Offline Points: 96 |
Post Options
Thanks(0)
|
Note: |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Switch on Vista32 to be sure you are using trasted platform
|
|
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 |