PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Overview
  • Control in a window or page
  • Creating a Calendar control
  • Describing the Calendar control
  • Translation of the elements of an Calendar control
  • Translating the "Today"/"Preset period" button
  • Translation of days and months posted in Calendar control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview

Control in a window or page

The Calendar control is used to permanently display a calendar in a window or page. This calendar can display the current date, or interact with the window or page (e.g., by displaying the schedule corresponding to the selected day).
Versions 15 and later
Java This type of control is now available for Java applications.
New in version 15
Java This type of control is now available for Java applications.
Java This type of control is now available for Java applications.
Versions 18 and later
iPhone/iPad This type control is now available for iPhone/iPad applications.
Android This type of control is now available for Android applications.
Android Use conditions: To use a Calendar control in Android, the "Android Support Library V4" extension is required on the development computer, when generating the Android application. The setup procedure of this extension is available at the following address:
http://developer.android.com/tools/extras/support-library.html#Downloading
New in version 18
iPhone/iPad This type control is now available for iPhone/iPad applications.
Android This type of control is now available for Android applications.
Android Use conditions: To use a Calendar control in Android, the "Android Support Library V4" extension is required on the development computer, when generating the Android application. The setup procedure of this extension is available at the following address:
http://developer.android.com/tools/extras/support-library.html#Downloading
iPhone/iPad This type control is now available for iPhone/iPad applications.
Android This type of control is now available for Android applications.
Android Use conditions: To use a Calendar control in Android, the "Android Support Library V4" extension is required on the development computer, when generating the Android application. The setup procedure of this extension is available at the following address:
http://developer.android.com/tools/extras/support-library.html#Downloading
Versions 21 and later
Universal Windows 10 App This type of control is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of control is now available in Universal Windows 10 App mode.
Universal Windows 10 App This type of control is now available in Universal Windows 10 App mode.

Creating a Calendar control

To create a Calendar control:
  1. On the "Creation" pane, in the "Graphic controls" group:
    • WINDEV Mobile click "Calendar".
  2. Click where the control will be created in the window or page. The control appears in the editor.
To view the control characteristics, select "Description" in the popup menu of the control.
Describing the Calendar control
The Calendar control can be customized in the editor via the description window.
Here are some features of the Calendar control. You can:
  • define a date range ("Lower bound" and "Upper bound" in the "General" tab of the description window).
  • define a background image:
    • define the characteristics of the calendar ("Details" tab of the description window):
      • first day of the week,
      • display format of month,
      • multiselection calendar (not available in WEBDEV, PHP, iPhone, iPad),
      • presence of a "Today" button.
    • define the style of all the elements displayed in the calendar ("Style" tab). To define the style of an element, all you have to do is click its caption ("Sunday" for example).
    • Versions 16 and later
      modify the image of the "Next" and "Previous" buttons ("Style" tab, "Next/Previous buttons" element).
      New in version 16
      modify the image of the "Next" and "Previous" buttons ("Style" tab, "Next/Previous buttons" element).
      modify the image of the "Next" and "Previous" buttons ("Style" tab, "Next/Previous buttons" element).
    Translation of the elements of an Calendar control

    Translating the "Today"/"Preset period" button

    The translation of the "Today"/"Preset period" button is performed in the description window of the calendar ("Details" tab).

    Translation of days and months posted in Calendar control

    To translate the days and months displayed in Calendar control, it is necessary to set the project language options.
    1. Open the project description: on the "Project" pane, in the "Project" group, click "Description".
    2. In the "Languages" tab, select the desired language.
    3. In the linguistic options of the selected language, select "Date" then "Use the following parameters".
    4. Click the "Days and Months" button and enter the translations if necessary. Validate.
    5. Validate the project description.
    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
    Video Calendar
    https://youtu.be/YAqDnSyzxx8

    https://windevdesenvolvimento.blogspot.com/2019/04/dicas-2067-windev-mobile-calendario-5.html
    amarildo
    06 Apr. 2019