proc getDate(self: wCalendarCtrl): wTime {...}{.raises: [], tags: [].}
-
Gets the currently selected date.
proc getDates(self: wCalendarCtrl): (wTime, wTime) {...}{.raises: [], tags: [].}
-
Gets the currently selected date range.
proc setDate(self: wCalendarCtrl; time: wTime) {...}{.raises: [], tags: [].}
-
Sets the current date.
proc setDates(self: wCalendarCtrl; time1: wTime; time2: wTime) {...}{.raises: [], tags: [].}
-
Sets the selected date range.
proc setDates(self: wCalendarCtrl; time: (wTime, wTime)) {...}{.raises: [], tags: [].}
-
Sets the selected date range.
proc getToday(self: wCalendarCtrl): wTime {...}{.raises: [], tags: [].}
-
Retrieves the date information for the date specified as "today"
proc setToday(self: wCalendarCtrl; time: wTime) {...}{.raises: [], tags: [].}
-
Sets the "today" value.
proc getDateRange(self: wCalendarCtrl): (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 setDateRange(self: wCalendarCtrl; time1 = wDefaultTime; time2 = wDefaultTime) {...}{.
raises: [], tags: [].}
-
Sets the valid range for the date selection.
proc setDateRange(self: wCalendarCtrl; time: (wTime, wTime)) {...}{.raises: [], tags: [].}
-
Sets the valid range for the date selection.
proc enableMonthChange(self: wCalendarCtrl; flag = true) {...}{.raises: [],
tags: [TimeEffect].}
-
Enable or Disable the month changing.
proc setMaxSelectCount(self: wCalendarCtrl; max: int) {...}{.raises: [], tags: [].}
-
Sets the maximum number of days that can be selected.
proc getMaxSelectCount(self: wCalendarCtrl): int {...}{.raises: [], tags: [].}
-
Retrieves the maximum date range that can be selected
proc init(self: wCalendarCtrl; parent: wWindow; id = wDefaultID; date = wDefaultTime;
pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0) {...}{.raises: [
wNilAccess, wWindowError, wCursorError, wBrushError, Exception, IndexDefect,
wFontError], tags: [RootEffect, TimeEffect].}
-
Initializes a calendar 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 CalendarCtrl(parent: wWindow; id = wDefaultID; date = wDefaultTime;
pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0): wCalendarCtrl {...}{.
inline, discardable, raises: [wNilAccess, wWindowError, wCursorError, wBrushError,
Exception, IndexDefect, wFontError],
tags: [RootEffect, TimeEffect].}
-
Constructor.