ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Operating mode of the Calendar control
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
The CalendarButton property is used to determine and specify whether a Date Edit control has a button to display a popup calendar.
Example
// Displays a Calendar button if necessary
IF EDT_Date.CalendarButton = False THEN
EDT_Date.CalendarButton = True
END
Syntax

Finding out whether a Calendar button is displayed Hide the details

<Result> = <Edit control>.CalendarButton
<Result>: Boolean
  • True if a Calendar button is displayed,
  • False otherwise.
<Edit control>: Control name
Name of the Date edit control to use.

Displaying a Calendar button or not Hide the details

<Edit control>.CalendarButton = <Display>
<Edit control>: Control name
Name of the Date edit control to use.
<Display>: Boolean
  • True if a Calendar button must be displayed,
  • False otherwise.
Remarks
WINDEVReports and QueriesUser code (UMC)

Operating mode of the Calendar control

At runtime, the Date edit controls propose the "Calendar" option by default. This option allows you to display a calendar used to select a date.
If the CalendarButton property is used to display a Calendar button in the date Edit control, the "Calendar" option is no longer available in the context menu of the Date control.
Remark: To disable the display of the calendar for a project or for a control (via the button or the context menu), use AAFDisable.
Related Examples:
The Calendar control Unit examples (WINDEV): The Calendar control
[ + ] Four methods for using the Calendar control:
- Using the Calendar control found in the WINDEV toolbar
- Using CalendarOpen and CalendarPicker as well as CalendarSelect (multi-selection)
- Using ..CalendarButton
- Using BankHolidayAdd
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help