PC SOFT

WINDEV的在线文档

  • Processes managed by default
  • Processes supported by WinDev
  • Processes with procedures
  • 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 managed by default
WinDev

Processes supported by 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 "New appointment" is selected from the popup menu of the Scheduler control.
  • during the direct input of a new appointment via the keyboard.
Enter an appointment in inputRun:
  • when "New appointment" is selected from the popup menu of the Scheduler control.
  • during the direct input of a new appointment via the keyboard.
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 an existing appointment is selected in the Scheduler control.
Moving an appointmentRun when an appointment is moved in the Scheduler control. During a move performed with the mouse, this process is run at the end of the move (on the "drop" of the mouse).
Resizing an appointmentRun when resizing an appointment in the Scheduler control (resize operation performed with the mouse for example). This process is run at the end of the resize operation (on the "drop" of the mouse).
Deleting an appointmentRun:
  • when "Delete the appointment" is selected from the popup menu of the Scheduler control.
  • when an appointment is deleted via the DEL key of the keyboard.
Selecting a periodRun when selecting a time period in the Scheduler control (click performed on a time range for example). When several time ranges are selected with the mouse, the process is run for each new selected range.
Whenever the period changesRun when modifying the period displayed in the Scheduler control (via the arrow buttons found at the top left of the Scheduler control or period changed by programming with 计划表显示上一个时间段 and 计划表显示下一个时间段).
Reassigning an appointmentRun when moving an appointment triggers the modification of the resource associated with the appointment.
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 Scheduler 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
To simplify the operations performed on the appointments found in an schedule, procedures are proposed in each process. These procedures take in parameter the appointment variable (预约型 type variable) to use. All the details of the appointment handled by the popup menu are automatically assigned to this variable.

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

过程ExitFromInputaptEdited预约型

// Store the data
APT.TitleaptEdited..标题
APT.StartDateaptEdited..开始日期
APT.EndDateaptEdited..结束日期
...
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. To do so, you must create a window or a page with the information to fill.

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

WinDev This principle can be applied to all the processes called by the popup menu of the Scheduler 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 Scheduler 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 Optional processes for more details.