Skip to content

BeforeItemClick Event

Description

Occurs when a part of the Caption Bar is clicked. This event occurs before the item knows it has been clicked.

Syntax

Public Event BeforeItemClick( _
    ByVal [objectID](#) As [CalendarCaptionBarThemeObject](XtremeCalendarControl~Enumerations~CalendarCaptionBarThemeObject_EN.md), _
    ByRef [bCancelOperation](#) As Boolean _
)

Parameters

objectID

Value Description
xtpCalendarCaptionBar_Unknown Defines Unknown (NULL) value.
xtpCalendarCaptionBar_ButtonViewDay Defines SwitchViewBar DayViewButton.
xtpCalendarCaptionBar_ButtonViewWeek Defines SwitchViewBar WeekViewButton.
xtpCalendarCaptionBar_ButtonViewMonth Defines SwitchViewBar MonthViewButton.
xtpCalendarCaptionBar_ShowWorkWeek Defines SwitchViewBar ShowWorkWeek radio button.
xtpCalendarCaptionBar_ShowFullWeek Defines SwitchViewBar ShowFullWeek radio button.
xtpCalendarCaptionBar_ShowTimeline Defines SwitchViewBar ShowTimeLine radio button.
xtpCalendarCaptionBar_ScrollPrevDate Defines ScrollDateBar PrevDateButton.
xtpCalendarCaptionBar_ScrollNextDate Defines ScrollDateBar NextDateButton.
xtpCalendarCaptionBar_DateLabel Defines ScrollDateBar DateLabel.
xtpCalendarCaptionBar_ButtonExpand Defines ScrollDateBar Expand Button.

Object in the caption bar that was clicked.

bCancelOperation

Set to True to cancel the click.

Remarks

BeforeItemClick occurs when an item is clicked in the caption bar. The item will not know it has been clicked until this event has exited. This gives you the opportunity to cancel the click or perform some special operation in place of the built-in functionality.

See Also

CalendarCaptionBar Control


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.