Calendar Control Syntax

IN THIS PAGE

Syntax

[%P=POPUP.CALENDAR(DTOC( Default_Date [, Format ] );I=POPUP.CALENDAR%. Width Selected_Date ]

[%P=A5_GETDATEHTML( Title, Default_Date, CSS_Style )%. Width Selected_Date ]

Arguments

Default_Date

Character. The initial date to display in the control.

Format

Character. Optional. Default = "MM/DD/YYYY". Refer to Year, Month, Day, and Week Format Codes.

Width

Numeric. For Popup.Calender() it is The width of the control. For A5_GetDATEHTML() it is the width of the calculator in characters, by default based on Arial 8 point.

Selected_Date

Date. The selected date value.

CSS_Style

Character. The path and name of a CSS style to apply.

Description

Displays a popup calendar.

Disucssion 

The Calendar Control displays a popup calendar. One or more Calendar controls may appear inside the Format section of a UI_DLG_BOX() or UI_MODELESS_DLG_BOX() function.

If you have changed the Xdialog system font setting from its default value, you should use HTML style display. To enable HTML style display, select View > Settings > System > Preferences > Calendar Popup. Select Style and a cascading style sheet from the Value list. If you use the Xdialog style, you should have your Xdialog system font setting at its default value (Tahoma 8 point) or explicitly set it to Tahoma 8 point in your script (as illustrated below). To restore the default font setting select View > Settings > System > System Fonts > Restore Default.

Example 

date1 = date()
result=ui_dlg_box("Calendar Control",<<%dlg%
{font=Tahoma,8} 
{units=f}
{ysize=2}
{lf};
Date:| [%P=popup.calendar( dtoc(date1) );I=popup.calendar%.30date1];
{lf};
<*15&OK>;
%dlg%)

See Also