User Tools

Site Tools


<< Back





Creates a date picker control


ContextMenuSpecifies context menu to attach to control. Create the ContextMenu first
CursorCursor shape to display when mouse is over this control
DateDate in short-date format specified in Windows' Regional and Language Options
EnabledFalse generates <color blue>GUICtrlSetState(-1, $GUI_DISABLE)</color>
FontDouble-click to the right to open the Font dialog. Click on + to show the Color, Name, Size and Style properties
FormatCustom format consisting of elements and literals (e.g. - and /). The elements are:
d - one- or two-digit day
dd - two-digit day. Single-digit day values are preceded by a zero
ddd - three-character weekday abbreviation
dddd - full weekday name
h - one- or two-digit hour in 12-hour format.
hh - two-digit hour in 12-hour format. Single-digit values are preceded by a zero
H - one- or two-digit hour in 24-hour format
HH - two-digit hour in 24-hour format. Single-digit values are preceded by a zero
m - one- or two-digit minute
mm - two-digit minute. Single-digit values are preceded by a zero.
M - one- or two-digit month number
MM - two-digit month number. Single-digit values are preceded by a zero
MMM - three-character month abbreviation
MMMM - full month name
s - one- or two-digit second
ss - two-digit second. Single-digit values are preceded by a zero
t - one-letter AM/PM abbreviation (A or P)
tt - AM or PM
yy - last two digits of the year
yyyy - full year (4 digits)
Left,TopPosition of control relative to its parent
Width,HeightSize of control in pixels
HintText that appears when cursor hovers over control. Generates call to <color blue>GUICtrlSetTip</color>
NameName of control and of the variable that is assigned its control ID in generated code. If not specified, no variable is generated
OnChangeGenerates (in Message Loop mode) a <color blue>Case</color> or (in OnEvent mode) a call to <color blue>GUISetOnEvent</color> and a skeleton event function. Double-click to right to open Events Editor
ResizingClick on + to expand resize modes:
DocAuto - resize and reposition according to new window size
DocRight - Do not move right side
DocLeft - Do not move left side
DocTop - Do not move top
DocBottom - Do not move bottom
DocHCenter - Horizontal center remains fixed
DocVCenter - Vertical center remains fixed
DocWidth - Width does not change
DocHeight - Height does not change
TabOrderSequence in which controls are selected with the Tab and Shift+Tab keys. For a Form and for each Group, TabOrder starts with 0. You may prefer to use the TabOrder Visual Editor: press Ctrl+T to open it.
TimeTime in format per Windows' Regional and Language Options
VisibleIf False, generates <color blue>GUICtrlSetState(-1, $GUI_HIDE)</color>


DTS_SHORTDATEFORMATDisplays the date in short format, with 2-digit year
DTS_LONGDATEFORMATDisplays the date in long format
DTS_UPDOWNControl acts as a spinner rather than as a combo box with month-calendar drop-down
DTS_SHOWNONEDisplays a check box that can be checked once a date is entered
DTS_TIMEFORMATDisplays the time
DTS_RIGHTALIGNRight-aligns drop-down calendar
WS_TABSTOPControl can be selected with Tab and Shift+Tab
WS_HSCROLLControl has horizontal scroll bar
WS_VSCROLLControl has vertical scroll bar
WS_VISIBLEControl is visible
WS_BORDERControl has a thin-line border
WS_CLIPSIBLINGSIf this control overlaps with another, this control shows partially

#remarks_header[Extra Styles:]#

WS_EX_CLIENTEDGEControl has border with sunken edge
WS_EX_STATICEDGEControl has a three-dimensional border




MonthCal control

koda/en/documentation/control_date.txt · Last modified: 2014/07/10 10:47 (external edit)