Returns or sets the first and last date allowed by the calendar. Today sets a new current date, and Value returns the current selection.
MonthView.MaxDate [= date ]
MonthView.MinDate [= date ]
MonthView.Value [= date ]
date = MonthView.ToDay
MinDate and MaxDate return or set the minimum and maximum for the Value property for the specified control. The Value property returns or sets the current date of the control. The Value property is the default property of the control.
Today retrieves the date for the date specified as "today".
OpenW Fixed 1, 10, 10, 225 + (Screen.cxFixedFrame * 2), 159 + (Screen.cyCaption + (Screen.cyFixedFrame * 2))
Ocx MonthView mvw
mvw.MinDate = #01.07.1998#
mvw.MaxDate = #01.07.1999#
mvw.Value = #17.04.1999#
OpenW Fixed 2, 260, 10, 225 + (Screen.cxFixedFrame * 2), 159 + (Screen.cyCaption + (Screen.cyFixedFrame * 2))
Ocx MonthView mvw2
Debug.Show
~SetWindowPos(Debug.hWnd, 0, 510, 5, 400, 300, 0)
Trace mvw2.MinDate
Trace mvw2.MaxDate
Trace mvw2.Value
Trace mvw2.Today
Do : Sleep : Until (Win_1 Is Nothing) Or (Win_2 Is Nothing)
CloseW 1 : CloseW 2 : Debug.Hide
Sub mvw2_MouseUp(Button&, Shift&, x!, y!)
Debug.Print
Trace mvw2.Value
EndSub
If the Today selection is set to any date other than the default, the following conditions apply:
- The control will not automatically update the "today" selection when the time passes midnight for the current day.
- The control will not automatically update its display based on locale changes.
{Created by Sjouke Hamstra; Last updated: 15/10/2014 by James Gaite}