Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - CalCtrl.Opetions.EnableInPlaceCreateEvent
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CalCtrl.Opetions.EnableInPlaceCreateEvent

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


Joined: 25 November 2008
Location: Malaysia
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote BVoon Quote  Post ReplyReply Direct Link To This Post Topic: CalCtrl.Opetions.EnableInPlaceCreateEvent
    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
Back to Top
BVoon View Drop Down
Newbie
Newbie


Joined: 25 November 2008
Location: Malaysia
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote BVoon Quote  Post ReplyReply Direct Link To This Post Posted: 26 November 2008 at 7:32pm
I found out that it will only work when the Provider=Custom
nothingcool
Back to Top
SteveStraley View Drop Down
Groupie
Groupie


Joined: 25 November 2005
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote SteveStraley Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2009 at 10:27pm
Hi,

did you find a way to do this for the native access provider?
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2009 at 9:31pm
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.
 
 
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.109 seconds.