PtCalendarSelectCallback

PtCalendarSelectCallback — calendar selection callback information.

Synopsis

class PtCalendarSelectCallback
{
    date;    // PtCalendarDate
    time;    // long
    type;    // integer
}
		

Description

This class holds information from the Pt_CB_CALENDAR_SELECT callback, which is generated when a calendar date, weekday, month increment/decrement button or year increment/decrement button is selected in a PtCalendar.

Also see Pt_CB_CALENDAR_SELECT in the PtCalendar section of the Photon documentation.

Instance Variables

date

A PtCalendarDate that contains the day, month, and year.

time

The system time associated with the date.

type

The type of selection made, which can be exactly one of the following:

ConstantDescription
Pt_CALENDAR_DATE_SELECTEDA date was selected. Numerical value = 1.
Pt_CALENDAR_WDAY_SELECTEDA day of the week was selected. Numerical value = 2.
Pt_CALENDAR_MONTH_SELECTEDOne of the month increment/decrement buttons was selected. Numerical value = 3.
Pt_CALENDAR_YEAR_SELECTEDOne of the year increment/decrement buttons was selected. Numerical value = 4.

Associated Classes

PtCalendar, PtCallbackInfo