ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Calendar control behavior
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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
// Affiche un bouton Calendrier si nécessaire
IF SAI_Date.BoutonCalendrier = False THEN 
	SAI_Date.BoutonCalendrier = True
END
Syntax

Determining 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 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)

Calendar control behavior

At runtime, Date Edit controls include the "Calendar" option by default. This option displays a calendar 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: You can disable the calendar display for a project or field (via the button or context menu) by pressing 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: 09/21/2024

Send a report | Local help