Inheritance diagram for Calendar:
Properties | |
VARIANT_BOOL RW | MultiSelect [] |
Specifies that the user can select a date range. | |
IDispatch *R | SelEnd [] |
Gets the end of the user's selection (MultiSelect = TRUE). | |
IDispatch *R | SelStart [] |
Gets the start of the user's selection (MultiSelect = TRUE). | |
IDispatch *R | Today [] |
Specifies today date. | |
ULONG RW | MonthDelta [] |
Gets or sets the scroll rate for the control. | |
ULONG RW | MaxSelCount [] |
Specifies the maximum length of the selection. | |
VARIANT_BOOL RW | TodayText [] |
Specifies whether the control will display the "today" date at the bottom. | |
VARIANT_BOOL RW | TodayCircle [] |
Specifies whether the control will display the circle around the "today" date. | |
VARIANT_BOOL RW | WeekNumbers [] |
Specifies whether the control will display the week numbers. |
When the control's value changes, the OnChange event occur.
See also the method CreateCalendar of the Frame.
Example:
o = new ActiveXObject("Scripting.WindowSystemObject") o.EnableVisualStyles = true f = o.CreateForm(0,0,0,0) f.Text = "WSO" f.ClientWidth = 300 f.ClientHeight = 220 f.CenterControl() Calendar = f.CreateCalendar(10,10,200,200) Current = Calendar.Value f.Text = Current.Value f.TextOut(10,40,Current.Year+":"+Current.Month+":"+Current.Day+" "+Current.Hour+":"+Current.Minute+":"+Current.Second) f.Show() o.Run()
ULONG RW MaxSelCount |
Specifies the maximum length of the selection.
ULONG RW MonthDelta |
Gets or sets the scroll rate for the control.
Specifies the number of months that the control moves its display when the user clicks a scroll button.
VARIANT_BOOL RW MultiSelect |
Specifies that the user can select a date range.
IDispatch* R SelEnd |
Gets the end of the user's selection (MultiSelect = TRUE).
IDispatch* R SelStart |
Gets the start of the user's selection (MultiSelect = TRUE).
IDispatch* R Today |
Specifies today date.
Totay date shows in a circle if TodayCircle = TRUE.
VARIANT_BOOL RW TodayCircle |
Specifies whether the control will display the circle around the "today" date.
VARIANT_BOOL RW TodayText |
Specifies whether the control will display the "today" date at the bottom.
VARIANT_BOOL RW WeekNumbers |
Specifies whether the control will display the week numbers.