XTPCalendarGetItemTextEx Enumeration
See Also
- AskItemTextFlags Property
- GetItemText Event
- CalendarGetItemTextParams Object
- Item Property
- Text Property
- ViewDay Property
- ViewEvent Property
- WeekDay Property
- CalendarFlagsSet Object
- SetFlag Method
- IsFlagSet Method
- XTPCalendarGetItemText Enumeration

Description
Defines a set of flags which allow the calendar to determine which text strings are about to be drawn. These are used for the Office 2007 theme only.
Members
| Member | Description |
|---|---|
xtpCalendarItemText_EventBody |
Event body text. |
xtpCalendarItemText_EventMarkupTemplate |
Event Markup Template text before draw it. |
xtpCalendarItemText_DayViewDayHeaderLeft |
Day view day header text on the left. |
xtpCalendarItemText_DayViewDayHeaderCenter |
Day view day header text in the center. |
xtpCalendarItemText_DayViewDayHeaderRight |
Day view day header text on the right. |
xtpCalendarItemText_WeekViewDayHeaderLeft |
Week view day header text on the left. |
xtpCalendarItemText_WeekViewDayHeaderCenter |
Week view day header text in the center. |
xtpCalendarItemText_WeekViewDayHeaderRight |
Week view day header text on the right. |
xtpCalendarItemText_MonthViewDayHeaderLeft |
Month view day header text on the left. |
xtpCalendarItemText_MonthViewDayHeaderCenter |
Month view day header text in the center. |
xtpCalendarItemText_MonthViewDayHeaderRight |
Month view day header text on the right. |
Remarks
The XTPCalendarGetItemTextEx flags are only used for the Office 2007 theme.
The SetFlag method uses any combination of flags from the XTPCalendarGetItemText and XTPCalendarGetItemTextEx enumerations to specify for which calendar text strings the GetItemText event will get fired. The GetItemText event occurs when each calendar text string is about to be drawn if some Flags from the XTPCalendarGetItemText and XTPCalendarGetItemTextEx enumerations have been set using the SetFlag method. The SetFlag method can be used to set any combination of the XTPCalendarGetItemText and XTPCalendarGetItemTextEx (only use with Office 2007 theme) flags. GetItemText will only get fired for the text strings that are specified using the SetFlag method.
If you would like to set all the flags in the XTPCalendarGetItemText and XTPCalendarGetItemTextEx enumerations, then you can simply set AskItemTextFlags to -1. This will cause the GetItemText event to fire before each text string is drawn in the calendar.
This allows all of the strings in the calendar to easily be customized. For example, the day header text and time scale text can be customized. The Text property of the Params parameter contains the text that is about to be drawn. The Text property can be set to any customized text.
The ViewDay, ViewEvent, and WeekDay properties of the Params parameter contain the current view, event, and day of the week the text to be drawn belongs to. Note that some of these properties might be NULL.
Example
Using the GetItemText Event to Customize Text
See Also
- AskItemTextFlags Property
- GetItemText Event
- CalendarGetItemTextParams Object
- Item Property
- Text Property
- ViewDay Property
- ViewEvent Property
- WeekDay Property
- CalendarFlagsSet Object
- SetFlag Method
- IsFlagSet Method
- XTPCalendarGetItemText Enumeration
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.