PC SOFT

WINDEV的在线文档

  • Processes managed by default
  • Processes with procedures for a quick use
  • Advanced use of processes with procedure
  • Optional processes
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Processes associated with an Organizer control

Processes managed by default

WinDev WinDev manages the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
InitializationRun when opening the window. *
Before creating the appointmentRun when selecting "New appointment" in the popup menu of the Organizer control.
Enter an appointment in inputRun when selecting "New appointment" in the popup menu of the Organizer control. This process is run just after the "Before creating the appointment" process.
Exit from input for the appointmentRun during the exit from appointment input (exit when adding an appointment or when modifying an appointment via the popup menu for example).
Selecting an appointmentRun when selecting an existing appointment in the Organizer control. This process is run when opening the popup menu.
Moving an appointmentRun when moving an appointment in the Organizer control (move performed with the mouse for example).
Resizing an appointmentRun when resizing an appointment in the Organizer control (resize operation performed with the mouse for example).
Deleting an appointmentRun when selecting "Delete the appointment" from the popup menu of the Organizer control.
Selecting a periodRun when selecting a time range in the Organizer control.
Whenever changing periodRun when modifying the period displayed in the Organizer control.
17版本和更高版本
Whenever changing the display mode
17新版本
Whenever changing the display mode
Whenever changing the display mode
Run when the user changes the display mode of the Organizer control. The new mode can be known in this process via 日程表排列模式.

(*) By default, the "Initialization" process of each control is run according to the creation order of the controls in the window. To modify this runtime order:
  1. Select "Windows .. Edit the initialization order".On the "窗口" pane, in the "顺序" group, click "初始化".
  2. In the window that is displayed, use the arrows on the right to modify the initialization order of controls.

Processes with procedures for a quick use

Most of the processes associated with the Organizer control are run:
  • WinDev when using the popup menu of the Organizer control.
  • when using the mouse.
To simplify the operations performed on the appointments found in an Organizer control, procedures are proposed in each process. These procedures take in parameter the appointment variable (预约型 variable) to use. All the characteristics of the appointment handled by the popup menu or by the mouse are automatically assigned to this variable.

WinDev Example: To store in an APT data file an appointment added by the user via the popup menu, all you have to do is enter in the "Enter the appointment in input" process:

PROCEDURE Edit(aptEdited is 日程表预约型)

// Store the data
APT.Title = aptEdited..Title
APT.StartDate = aptEdited..StartDate
APT.EndDate = aptEdited..EndDate
...
H添加(APT)

Advanced use of processes with procedure

You can also allow the user to define more precisely the characteristics of his appointment during an addition or a modification.

WinDev To do so, create a window with the information to specify.

In the code, all you have to do is open the window in the "Enter the appointment in input" process. To lock the direct input via the popup menu of the Organizer control, the process must return .

This principle can be applied to all the processes called by the popup menu of the Organizer control.

Example:

过程EditaptEdited预约型

// Opens the window for entering an appointment
// with the selected appointment (in Creation or Modification mode)
打开WIN_InputAPT_HFSQLaptEdited

// Returns False to lock the direct input in the Organizer control
发送回

Optional processes
WinDev Several optional processes can be managed.

To manage an optional process, all you have to do is select it in the icon bar of the code window.

You have the ability to manage:
  • the rollover of the control by the mouse,
  • the left mouse button down, up, with a double click,
  • the right mouse button down, up, with double click,
  • the mouse wheel, ...
See the Optional processes for more details.