PC SOFT

WINDEV的在线文档

  • Processes managed by default
  • 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 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 eventRun:
  • when "New event" is selected from the popup menu of the TimeLine control.
  • during the direct input of a new event via the keyboard.
Enter in edit in an eventRun:
  • when "New event" is selected from the popup menu of the TimeLine control.
  • during the direct input of a new event via the keyboard.
This process is run just after the "Before creating the event" process.
Exit from input for the eventRun during the exit from event input (exit when adding an event or when modifying an event via the popup menu for example).
Selecting an eventRun when selecting an event found in the TimeLine control.
Moving an eventRun when moving an event in the TimeLine 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 eventRun when resizing an event in the TimeLine 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 eventRun:
  • when "Delete the event" is selected from the popup menu of the TimeLine control.
  • when an event is deleted via the DEL key of the keyboard.
Selecting a periodRun when selecting a time period in the TimeLine 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.
Reassigning an eventRun when moving an event triggers the modification of the track associated with the event.
Whenever the period changesRun when modifying the period displayed in the TimeLine control.
Whenever changing the display modeRun when changing the display mode of the TimeLine control (时间轴改变模式).

(*) 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. 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 events found in a TimeLine control, procedures are proposed in each process. These procedures take in parameter the 事件时间轴型 variable to use. All the details of the event handled by the popup menu are automatically assigned to this variable.

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

过程ExitFromInputevtModified事件时间轴型

// Store the data
EVT.TitleevtModified..标题
EVT.EvtStartevtModified..开始
EVT.EvtDateevtModified..结束
...
H添加EVT

Advanced use of processes with procedure

You can also allow the user to define more precisely the characteristics of his event during an addition or a modification. 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 event in input" process. To lock the direct input via the popup menu of the TimeLine control, the process must return .

This principle can be applied to all the processes called via the popup menu of the TimeLine control.

Example:

过程EditevtEdited事件时间轴型

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

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

Optional processes
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.