wxDatePickerCtrl

wxDatePickerCtrl
This control allows the user to select a date. Unlike wxCalendarCtrl, which is a relatively big control, wxDatePickerCtrl is implemented as a small window showing the currently selected date. The control can be edited using the keyboard, and can also display a popup window for more user-friendly date selection, depending on the styles used and the platform, except PalmOS where date is selected using native dialog.

Creation Parameters

You can use the wxEVT_DATE_CHANGED event along with get_dateevent_date.

Functions/Procedures
Supertopics
Subtopics

wxDatePickerCtrl

[func]
get_picker_date
( atom picker )

Category: wxDatePickerCtrl

Returns the currently selected date. If there is no selection or the selection is outside of the current range, an invalid object is returned.


wxDatePickerCtrl

[func]
get_picker_range
( atom picker )

Category: wxDatePickerCtrl

If the control had been previously limited to a range of dates using set_picker_range , returns the lower and upper bounds of this range. If no range is set (or only one of the bounds is set), returns 0.


wxDatePickerCtrl

[proc]
set_picker_date
( atom picker, object dt )

Category: wxDatePickerCtrl

Changes the current value of the control. The date should be valid and included in the currently selected range, if any.

Calling this method does not result in a date change event.


wxDatePickerCtrl

[proc]
set_picker_range
( atom picker, object dt1, object dt2 )

Category: wxDatePickerCtrl

Sets the valid range for the date selection. If dt1 is valid, it becomes the earliest date (inclusive) accepted by the control. If dt2 is valid, it becomes the latest possible date.

Remarks

If the current value of the control is outside of the newly set range bounds, the behaviour is undefined.