This control allows the user to enter time.
Appearance: | |
Events: | wCommandEventwCommandEvent | Description |
wEvent_TimeChanged | The selected time changed. |
|
proc getTime(self: wTimePickerCtrl): tuple[hour, min, sec: int] {...}{.raises: [], tags: [].}
-
Returns the currently entered time as hours, minutes and seconds
proc setTime(self: wTimePickerCtrl; hour: int; min: int; sec: int) {...}{.raises: [], tags: [].}
-
Changes the current time of the control.
proc setTime(self: wTimePickerCtrl; time: tuple[hour, min, sec: int]) {...}{.raises: [],
tags: [].}
-
Changes the current time of the control.
proc init(self: wTimePickerCtrl; parent: wWindow; id = wDefaultID; time = wDefaultTime;
pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0) {...}{.raises: [
wNilAccess, wWindowError, wCursorError, wBrushError, Exception, IndexDefect,
wFontError], tags: [RootEffect].}
-
Initializes a time picker control.
Parameters | Description |
parent | Parent window. |
id | The identifier for the control. |
time | The initial value of the control, if an invalid date (such as the default value) is used, the control is set to current time. |
pos | Initial position. |
size | Initial size. If left at default value, the control chooses its own best size. |
style | The window style, should be left at 0 as there are no special styles for this control. |
proc TimePickerCtrl(parent: wWindow; id = wDefaultID; time = wDefaultTime;
pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0): wTimePickerCtrl {...}{.
inline, discardable, raises: [wNilAccess, wWindowError, wCursorError, wBrushError,
Exception, IndexDefect, wFontError],
tags: [RootEffect].}
-
Constructor.
method release(self: wTimePickerCtrl) {...}{.raises: [], tags: [].}
-
Release all the resources during destroying. Used internally.