CalCtrl.Opetions.EnableInPlaceCreateEvent |
Post Reply |
Author | |
BVoon
Newbie Joined: 25 November 2008 Location: Malaysia Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 25 November 2008 at 11:22pm |
I am trying to get the calendar control to use a custom form for adding appointment/event into the database. I like to have the "Click to add appointment" feature to be disabled.
I used the CalendarControl.Options.EnableInPlaceCreateEvent = False and also the CalendarControl.Options.EnableAddNewTooltip = False all have no effect on the control. Any help is very much appreciated. |
|
nothingcool
|
|
BVoon
Newbie Joined: 25 November 2008 Location: Malaysia Status: Offline Points: 5 |
Post Options
Thanks(0)
|
I found out that it will only work when the Provider=Custom
|
|
nothingcool
|
|
SteveStraley
Groupie Joined: 25 November 2005 Status: Offline Points: 46 |
Post Options
Thanks(0)
|
Hi,
did you find a way to do this for the native access provider? |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Guys, you need to spend some time analyzing sample code.
e.g. in VB CalendarSample
apply in Form Load function
CalendarControl.Options.EnableInPlaceCreateEvent = False
CalendarControl.Options.EnableAddNewTooltip = False and disable NON-CONTROL but APP action:
Private Sub CalendarControl_DblClick()
Dim HitTest As CalendarHitTestInfo Set HitTest = CalendarControl.ActiveView.HitTest Dim Events As CalendarEvents If Not HitTest.HitCode = xtpCalendarHitTestUnknown Then ' Set Events = CalendarControl.DataProvider.RetrieveDayEvents(HitTest.ViewDay.Date) End If ' If HitTest.ViewEvent Is Nothing Then ' mnuNewEvent_Click ' Else ' ModifyEvent HitTest.ViewEvent.Event ' End If End Sub you will have 100% disable event creation or modification. If instead of commented code you will use your own code with your logic - you will reach that you like.
|
|
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 |