PC SOFT

WINDEV的在线文档

  • Overview
  • Control in a window or in a page
  • Creating a Calendar control
  • Describing a calendar
  • Translating the calendar elements
  • Translating the "Today"/"Preset period" button
  • Translating the days and the months displayed in the calendar
  • Translating the popup menu of the calendar
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview

Control in a window or in a page

The Calendar control is used to permanently display a calendar in a window or in a page. This calendar can display today's date or it can interact with the window or with the page (by displaying the schedule corresponding to the selected day for example).

18版本和更高版本
WinDevLinux This type of control is now available for the WinDev applications in Linux.
18新版本
WinDevLinux This type of control is now available for the WinDev applications in Linux.
WinDevLinux This type of control is now available for the WinDev applications in Linux.

Creating a Calendar control

To create a Calendar control:
  1. In the window editor or in the page editor, click. You also have the ability to select:On the "创建" pane, in the "显示控件" group:
    • WinDev "Insert .. Control .. Calendar control". WinDev expand "Time" and select "Calendar".
  2. Click the position where the control must be created in the window or in the page. The control appears in creation mode.
To display the characteristics of the control, select "Description" from the popup menu of the control.

Describing a calendar
The Calendar control can be customized in the editor via the description window.

We will now present some features of the Calendar control. You can:

  • define a period of dates managed by the calendar ("Lower bound" and "Upper bound" in the "General" tab of the description window).
  • define a background image:
    • WinDev "General" tab of the description window.
  • define the characteristics of the calendar ("Details" tab of the description window):
    • first day of the week,
    • display format of the month,
    • multi-selection 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).
  • 16版本和更高版本
    modify the image of the "Next" and "Previous" buttons ("Style" tab, "Next/Previous buttons" element).
    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).

Translating the calendar elements

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

Translating the days and the months displayed in the calendar

To translate the days and the months displayed in the Calendar control, you must configure the language options of the project.
  1. Display the description of the project ("Project .. Project description").Display the project description: on the "项目" pane, in the "项目" group, click "描述".
  2. In the "Languages" tab, select the requested 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.

WinDev

Translating the popup menu of the calendar

When a calendar is used to select a period, a popup menu is displayed. The popup menu of the calendar is supplied in English and in French.

To translate the popup menu of the calendar into another language, the IW_WinDevAafMenu_Date window must be included in your project.

To include the popup menu of the calendar in your project:

  1. Select "File .. Import .. WinDev elements and their dependencies".On the "项目" pane, in the "项目" group, expand "导入" and select "WinDev elements and their dependencies".
  2. Select the sub-directory containing the elements to import. The window of the popup menu of the calendar is found in the "\Programs\Data\Preset windows\AAF" sub-directory of the setup directory of WinDev.
  3. WinDev lists the elements found in the directory. This directory contains the different elements corresponding to the custom AAF. To customize the calendar, select "IW_WinDevAafMenu_Date".
  4. Validate. The internal window is included in the project.
Notes:
  • The window must not be renamed.
  • If this window is included in your application, you may not benefit from the improvements made to this window during the different updates. Don't forget to check whether this window has evolved.
  • Caution: To modify this window, the corresponding file must not be read-only. Modify the characteristics of the file in Windows if necessary.
To customize the popup menu of the calendar:
  1. Display the "IW_WinDevAafMenu_Date" window.
  2. In the "GUI" tab, click the button found to the right of "Popup Menu". Select "Edit this popup menu".
  3. The popup menu appears in the editor. You have the ability to translate the different options into the requested language.
Linux You cannot select a period in Linux. The popup menu of the calendar is not available.