ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Automatic Application Features (AAF) / AAF on Edit controls
  • Overview
  • An automatic calendar
  • Implementation
  • Translating the calendar
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
The Date edit control automatically propose a "Calendar" option in their context menu. This option is used to display a calendar and to select a date. The user has the ability to click a date in order for this date to be selected and to be displayed in the edit control.
An automatic calendar

Implementation

The "Calendar" option in the context menu of the Date edit controls is automatic.
You also have the ability to display a "Calendar" button on the right of the input area of the control. To do so, check "Display a calendar button" in the "General" tab of the edit control. The "Edit calendar..." button allows you to customize the style of the calendar.
Through programming:
  • the CalendarButton property is used to determine and indicate whether a Date edit control has a button to display a popup calendar.
  • AAFExecute associated with the aafCalendar constant is used to display the calendar below the specified edit control.
  • AAFDisable associated with the aafCalendar constant deletes the "Calendar" option in the context menu of the specified edit control.
  • AAFChangeCaption is used to:
    • modify the caption of the "Calendar" menu option (aafCalendar constant).
    • modify the caption of the "Today" button in the calendar window (aafToday constant).

Translating the calendar

The calendar is supplied in English and in French.
Some parameters can be translated. For more details, see Calendar control.
Minimum version required
  • Version 14
Comments
Click [Add] to post a comment

Last update: 01/15/2024

Send a report | Local help