Selects an event for use only with other CalendarContext functions. The selection state set by this function is used only by other CalendarContext functions; other calendar event functions use the selection state set by CalendarOpenEvent, CalendarNewEvent, CalendarNewGuildEvent, or CalendarNewGuildAnnouncement (if they use a selection state at all).

Used in the default UI to implement the calendar's context menu (on right-click).


See also Calendar functions.

Signature:

CalendarContextSelectEvent([monthOffset,] day, index)

Arguments:

  • monthOffset - Month containing an event relative to the calendar's currently displayed month (number)

    • -1 - Month preceding the calendar's current month
    • 0 - The calendar's current month (i.e. same month as CalendarGetMonth())
    • 1 - Month after the calendar's current month
    • nil - Use the event selected by CalendarContextSelectEvent and ignore further arguments

  • day - Day of the month containing an event (number)

  • index - Index of an event on the given day (from 1 to CalendarGetNumDayEvents()) (number)