Print Page | Close Window

ContextMenu Hidden for Calendar?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=11758
Printed Date: 15 July 2025 at 7:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ContextMenu Hidden for Calendar?
Posted By: roant
Subject: ContextMenu Hidden for Calendar?
Date 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!
 
 



Replies:
Posted By: dentor
Date Posted: 08 August 2008 at 12:23pm
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.
 
 


Posted By: roant
Date Posted: 08 August 2008 at 3:20pm
thanks. dentor !



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net