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 {...}{.raises: [], tags: [].}
Returns the currently entered date.
proc setValue(self: wDatePickerCtrl; time: wTime) {...}{.raises: [], tags: [].}
Changes the current value of the control.
proc getRange(self: wDatePickerCtrl): (wTime, wTime) {...}{.raises: [], tags: [].}
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) {...}{.
    raises: [], tags: [].}
Sets the valid range for the date selection.
proc setRange(self: wDatePickerCtrl; time: (wTime, wTime)) {...}{.raises: [], tags: [].}
Sets the valid range for the date selection.
proc init(self: wDatePickerCtrl; parent: wWindow; id = wDefaultID; date = wDefaultTime;
         pos = wDefaultPoint; size = wDefaultSize; style: wStyle = wDpDropDown) {...}{.raises: [
    wNilAccess, wWindowError, wCursorError, wBrushError, Exception, IndexDefect,
    wFontError], tags: [RootEffect].}
Initializes a date picker 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.
proc DatePickerCtrl(parent: wWindow; id = wDefaultID; date = wDefaultTime;
                   pos = wDefaultPoint; size = wDefaultSize;
                   style: wStyle = wDpDropDown): wDatePickerCtrl {...}{.inline,
    discardable, raises: [wNilAccess, wWindowError, wCursorError, wBrushError,
                        Exception, IndexDefect, wFontError], tags: [RootEffect].}
Constructor.

Methods

method getBestSize(self: wDatePickerCtrl): wSize {...}{.raises: [], tags: [].}
Returns the best acceptable minimal size for the window.
method getDefaultSize(self: wDatePickerCtrl): wSize {...}{.raises: [], tags: [].}
Returns the default size for the window.
method release(self: wDatePickerCtrl) {...}{.raises: [], tags: [].}
Release all the resources during destroying. Used internally.