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] {...}{.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.
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.
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.

Methods

method release(self: wTimePickerCtrl) {...}{.raises: [], tags: [].}
Release all the resources during destroying. Used internally.