The Calendar control has a calendar-like user interface. This provides the user with a very intuitive and recognizable method of entering or selecting a date. A user can select a day from the current month and year by simply clicking on a day number. A user can scroll the months of the year by clicking the arrow buttons in the top left or top right of the control. To select a non-adjacent month the user can click the name of a displayed month, a pop-up menu appears that lists all months within the year. The user can select a month on the list. If the user clicks the year displayed next to a month name, a Spinner control appears in place of the year. The user can change the year with this control. Note: You can change the control’s font by providing a font string in the Font attribute. However, you cannot change the text or background color of this control. The Calendar control will return the user’s selection in the variable you supply as the Variable attribute in the control’s definition. The date will be returned in the standard WIL YYYY:MM:DD:HH:MM:SS date time format.
|
|
For example, the line in the script generated by the WIL Dialog Editor may look like:
MyDialog003=`086,046,092,073,CALENDAR,"Calendar_1",MyVariable1,DEFAULT,DEFAULT,3,DEFAULT,DEFAULT`