![]() |
ContextMenu Hidden for Calendar? |
Post Reply ![]() |
Author | |
roant ![]() Newbie ![]() Joined: 06 August 2008 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 07 August 2008 at 12:33pm |
If I copy (from the Calendar sample) the following sub to my project I get the message that the variables mnuContexEditEvent, mnuContextTimeScale .. aren't defined.
If i try to find the definition in the Calendar sample it says:
Can't jump to 'mnuContexEditEvent' because it is hidden !?
Private Sub CalendarControl_ContextMenu(ByVal X As Single, ByVal Y As Single)
'Debug.Print "On context menu"
Dim HitTest As CalendarHitTestInfo Set HitTest = CalendarControl.ActiveView.HitTest If Not HitTest.ViewEvent Is Nothing Then Set ContextEvent = HitTest.ViewEvent.Event Me.PopupMenu mnuContexEditEvent Set ContextEvent = Nothing ElseIf (HitTest.HitCode = xtpCalendarHitTestDayViewTimeScale) Then Me.PopupMenu mnuContextTimeScale Else Me.PopupMenu mnuContextNewEvent End If End Sub
What should I do to get those context menus and can they be localized?
Thanks!
|
|
![]() |
|
dentor ![]() Senior Member ![]() ![]() Joined: 30 November 2005 Location: France Status: Offline Points: 102 |
![]() ![]() ![]() ![]() ![]() |
Hello,
these variables are the names of the context menus that you might set first:
![]() You can add these menus with the Menu creator or Ctrl-E.
|
|
![]() |
|
roant ![]() Newbie ![]() Joined: 06 August 2008 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
thanks. dentor !
|
|
![]() |
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 |