Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - ContextMenu Hidden for Calendar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ContextMenu Hidden for Calendar?

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


Joined: 06 August 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote roant Quote  Post ReplyReply Direct Link To This Post Topic: ContextMenu Hidden for Calendar?
    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!
 
 
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post 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.
 
 
Back to Top
roant View Drop Down
Newbie
Newbie


Joined: 06 August 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote roant Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2008 at 3:20pm
thanks. dentor !
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.141 seconds.