This control allows the user to select a date.
Appearance: | |
Styles: | Styles | Description |
wDpDropDown | Show drop-down part from which the user can select a date (Default). |
wDpSpin | Show spin-control-like arrows to change individual date components. |
wDpAllowNone | The control allows the user to not enter any valid date at all. |
wDpShowCentury | Forces display of the century in the default date format. |
|
Events: | wCommandEventwCommandEvent | Description |
wEvent_DateChanged | The selected date changed. |
|
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.
Parameters | Description |
parent | Parent window. |
id | The identifier for the control. |
date | The initial value of the control, if an invalid date (such as the default value) is used, the control is set to today. |
pos | Initial position. |
size | Initial size. If left at default value, the control chooses its own best size. |
style | The 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.