wDatePickerCtrl

This control allows the user to select a date.

Appearance:
Superclass:wControl
Styles:
StylesDescription
wDpDropDownShow drop-down part from which the user can select a date (Default).
wDpSpinShow spin-control-like arrows to change individual date components.
wDpAllowNoneThe control allows the user to not enter any valid date at all.
wDpShowCenturyForces display of the century in the default date format.
Events:wCommandEvent
wCommandEventDescription
wEvent_DateChangedThe selected date changed.

Consts

wDpDropDown: wStyle = 0
wDpSpin: wStyle = 0x00000001
wDpAllowNone: wStyle = 0x00000002
wDpShowCentury: wStyle = 0x0000000C

Procs

proc getValue(self: wDatePickerCtrl): wTime {...}{.validate, property, raises: [], tags: [].}
Returns the currently entered date.
proc setValue(self: wDatePickerCtrl; time: wTime) {...}{.validate, property, raises: [],
    tags: [].}
Changes the current value of the control. If the control had been previously limited to a range of dates, returns the lower and upper bounds of this range.
proc setRange(self: wDatePickerCtrl; time1 = wDefaultTime; time2 = wDefaultTime) {...}{.
    validate, property, raises: [], tags: [].}
Sets the valid range for the date selection. Sets the valid range for the date selection.
proc final(self: wDatePickerCtrl) {...}{.raises: [], tags: [].}
Default finalizer for wDatePickerCtrl.
proc init(self: wDatePickerCtrl; parent: wWindow; id = wDefaultID; date = wDefaultTime;
         pos = wDefaultPoint; size = wDefaultSize; style: wStyle = wDpDropDown) {...}{.
    validate, raises: [], tags: [].}
Initializer.
proc DatePickerCtrl(parent: wWindow; id = wDefaultID; date = wDefaultTime;
                   pos = wDefaultPoint; size = wDefaultSize;
                   style: wStyle = wDpDropDown): wDatePickerCtrl {...}{.inline,
    discardable, raises: [], tags: [].}
Creates the control.
ParametersDescription
parentParent window.
idThe identifier for the control.
dateThe initial value of the control, if an invalid date (such as the default value) is used, the control is set to today.
posInitial position.
sizeInitial size. If left at default value, the control chooses its own best size.
styleThe window style.

Methods

method getBestSize(self: wDatePickerCtrl): wSize {...}{.property, raises: [], tags: [].}
Returns the best acceptable minimal size for the window.
method getDefaultSize(self: wDatePickerCtrl): wSize {...}{.property, raises: [], tags: [].}
Returns the default size for the window.