wTimePickerCtrl

This control allows the user to enter time.

Appearance:
Superclass:wControl
Events:wCommandEvent
wCommandEventDescription
wEvent_TimeChangedThe selected time changed.

Procs

proc getTime(self: wTimePickerCtrl): tuple[hour, min, sec: int] {...}{.validate, property,
    raises: [], tags: [].}
Returns the currently entered time as hours, minutes and seconds
proc setTime(self: wTimePickerCtrl; hour: int; min: int; sec: int) {...}{.validate, property,
    raises: [], tags: [].}
Changes the current time of the control.
proc setTime(self: wTimePickerCtrl; time: tuple[hour, min, sec: int]) {...}{.validate,
    property, raises: [], tags: [].}
Changes the current time of the control.
proc final(self: wTimePickerCtrl) {...}{.raises: [], tags: [].}
Default finalizer for wTimePickerCtrl.
proc init(self: wTimePickerCtrl; parent: wWindow; id = wDefaultID; time = wDefaultTime;
         pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0) {...}{.validate,
    raises: [], tags: [].}
Initializer.
proc TimePickerCtrl(parent: wWindow; id = wDefaultID; time = wDefaultTime;
                   pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0): wTimePickerCtrl {...}{.
    discardable, raises: [], tags: [].}
Creates the control.
ParametersDescription
parentParent window.
idThe identifier for the control.
timeThe initial value of the control, if an invalid date (such as the default value) is used, the control is set to current time.
posInitial position.
sizeInitial size. If left at default value, the control chooses its own best size.
styleThe window style, should be left at 0 as there are no special styles for this control in this version.