Difference between revisions of "CalendarView.ConstructContextualMenu"

From Jeremie Leroy - XOJO Controls Wiki
Jump to: navigation, search
m (1 revision)
Line 7: Line 7:
 
| platform=all
 
| platform=all
 
| newinversion=1.1.1
 
| newinversion=1.1.1
| version=1.2.0
+
| version=1.2.2
 
}}
 
}}
  
Line 16: Line 16:
 
If you return True, the contextual menu is displayed. The parameters ''x'' and ''y'' are the mouse locations.
 
If you return True, the contextual menu is displayed. The parameters ''x'' and ''y'' are the mouse locations.
 
If the event was fired because of a non-mouse event, then x and y are both set to -1.
 
If the event was fired because of a non-mouse event, then x and y are both set to -1.
If the mouse is over a CalendarEvent when this event is fired, ''cEvent'' hovered CalendarEvent.
+
If the mouse is over a [[CalendarEvent]] when this event is fired, ''cEvent'' hovered CalendarEvent.

Revision as of 23:49, 5 September 2012

Event
CalendarView.ConstructContextualMenu ( base As MenuItem, x As Integer, y As Integer, cEvent As CalendarEvent ) As Boolean


This event is called when it is appropriate to display a contextual menu for the control.

If you return True, the contextual menu is displayed. The parameters x and y are the mouse locations. If the event was fired because of a non-mouse event, then x and y are both set to -1. If the mouse is over a CalendarEvent when this event is fired, cEvent hovered CalendarEvent.