PC SOFT

WINDEV的在线文档

  • Processes managed by default
  • Optional processes
  • Filtering the records (Browsing table only)
  • Before displaying the automatic tooltip of the scrollbar
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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 WinDev and WinDev Mobile manage the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
InitializationRun when opening the window. (*)

Special case: Browsing table automatically filled
When this code is run, the table is not filled yet. To force the table to be filled in this code, use:Run when opening the window. (*)

Special case: Browsing table automatically filled
When this code is run, the table is not filled yet. To force the table to be filled in this code, use:You also have the ability to filter the records with H过滤器.
End of initializationCode found for a browsing table automatically filled only:

Run once the table was filled. This code allows you to select an element in the table, to add or modify an element.
Entry in the tableRun when the control takes focus
Exit from the tableRun when changing control (TAB key, change of control with the mouse, ...)
Enter in input in a table rowRun when the user selects a row to perform an input in this row.
Exit from a table rowRun when changing row or when changing control (TAB key, change of control with the mouse, ...) from a row.

In this code, the current row corresponds to the row that was selected beforehand.

Displaying a rowRun when a new row must be displayed in the table: re-display the table, scroll or move in the table, ...

This process is also run when assigning a column. If several columns are assigned by programming, the display code will be run several times.
Tip: To modify several columns, use 表格修改行 rather than the direct assignment.

Selecting a rowRun when the user selects a row (without input).

16版本和更高版本
This process is also run when the user clicks a cell whose selection mode is set to "Cell Simple Selection" or "Cell: Multiple selection".
16新版本
This process is also run when the user clicks a cell whose selection mode is set to "Cell Simple Selection" or "Cell: Multiple selection".
This process is also run when the user clicks a cell whose selection mode is set to "Cell Simple Selection" or "Cell: Multiple selection".
This process is automatically added when the "Pull to refresh" feature was enabled ("Details" tab in the description window of the Table control).

This process is run when a refresh gesture is detected on the Table control.

At the end of this process, the refresh bar will be automatically hidden except if TableRefreshVisible was called.

See Pull to Refresh on the Table and Looper controls (Android/iOS) for more details.

WinDev Filtering the records (optional process)
Code only found for a browsing table that is automatically filled:
Run just before displaying a row. This process is used to filter the records displayed in the table. This process is presented in details at the end of this page.
WinDev Processes for management of Drag and Drop (optional processes)
Code only found for a memory table and for a table on source:
These processes are used to simplify the management of programmed Drag and Drop. The available processes are:
  • Start of source drag/drop
  • End of source drag/drop
  • Entry in target drag/drop
  • Rollover in target drag/drop
  • Drop in target drag/drop
  • Exit from target drag/drop
Note: If one of these processes contains some code, the Drag and Drop is not automatically managed for the table: the Drag and Drop in the table must be managed by programming.

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

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.

WinDev and WinDev Mobile (Windows Mobile projects)

WebDev

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, ...
Note: The optional processes differ according to the environment (WinDev, WebDev or WinDev Mobile) and to the development platform.

Filtering the records (Browsing table only)
WinDev The "Filtering the records" process is run just after the display of a table row. Therefore, it is run:
  • when initializing the table.
  • whenever a table row is displayed.
This process is used to filter the records displayed in the table.

To implement a filter, the "Filtering records" process must return a value:

  • to specify that the record corresponds to the filter and that it must be displayed.
  • to specify that the record does not correspond to the filter and that it must not be displayed.
  • Cancel to stop reading the data source of the table (very rare case).
Example:

// -- Filter the records
// Displays the customers who placed orders exceeding 3000 Euros
如果Orders.TotalIOT大于等于3000,那么
发送回
否则
发送回
结束

In this code, the data handled affects the record currently read by the table. This data comes from the file or from the query linked to the Table control.

WinDev If an automatic filter is implemented on the table (表格启用过滤器 or filter enabled by the user directly), the filter defined by the "Filtering the records" process is combined with the automatic filter.

Note: In WinDev and WInDev Mobile, the "Filtering the records" process is an optional process. In WebDev, this process is proposed by default.

Before displaying the automatic tooltip of the scrollbar
17版本和更高版本
WinDev In Windows, the tooltip for the scrollbar in a Table control is displayed when the user clicks the "box" of the vertical scrollbar.
This tooltip contains the following information by default:
  • Range of rows currently displayed in the Table control.
  • Total number of rows in the Table control.
  • Information about the element currently displayed in the first row of the Table control in the sorted column.
The "Before displaying the automatic tooltip for the scroll box" process is run just before displaying the tooltip. You can for example display a specific text in the table tooltip via ..工具提示.
17新版本
WinDev In Windows, the tooltip for the scrollbar in a Table control is displayed when the user clicks the "box" of the vertical scrollbar.
This tooltip contains the following information by default:
  • Range of rows currently displayed in the Table control.
  • Total number of rows in the Table control.
  • Information about the element currently displayed in the first row of the Table control in the sorted column.
The "Before displaying the automatic tooltip for the scroll box" process is run just before displaying the tooltip. You can for example display a specific text in the table tooltip via ..工具提示.
WinDev In Windows, the tooltip for the scrollbar in a Table control is displayed when the user clicks the "box" of the vertical scrollbar.
This tooltip contains the following information by default:
  • Range of rows currently displayed in the Table control.
  • Total number of rows in the Table control.
  • Information about the element currently displayed in the first row of the Table control in the sorted column.
The "Before displaying the automatic tooltip for the scroll box" process is run just before displaying the tooltip. You can for example display a specific text in the table tooltip via ..工具提示.