PC SOFT

WINDEV的在线文档

  • Processes managed by default
  • Optional processes
  • Filtering records (browsing TreeView Table control 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 associated with the TreeView Table controls

Processes managed by default
18版本和更高版本
WindowsLinux The TreeView Table control is now available for the WebDev sites.
18新版本
WindowsLinux The TreeView Table control is now available for the WebDev sites.
WindowsLinux The TreeView Table control is now available for the WebDev sites.

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 TreeView Table control automatically filled
When this code is run, the TreeView Table control is not filled yet. To force the control to be filled in this code, use:You also have the ability to filter the records with H过滤器.
End of initializationCode found for the browsing TreeView Table controls automatically filled:

Run once the control has been filled. This code is used to select an element in the TreeView Table control, to add or modify an element.
Entry in the treeview tableRun when the control takes focus.
Exit from the treeview tableRun when changing control (TAB key, change of control with the mouse, ...).
Entry in input in a row of the treeview tableRun when the user selects a row to perform an input in this row.
Exit from a row of the treeview tableRun when changing row or when changing control (TAB key, change of control with the mouse, ...) from a row.
Row displayRun when a new row must be displayed in the TreeView Table control: re-display the control, scroll or move in the control, ...
Row selectionRun when the user selects a row (without input).
Collapsing, expanding a nodeRun when the user expands or collapses a node.
Note: The syntax TableName[TableName] used in this process allows you to find out the number of the row that is collapsed/expanded.

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

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

Filtering records (browsing TreeView Table control only)
The "Filtering records" process is run just after the display of a row in the TreeView Table control. Therefore, it is run:
  • when initializing the control.
  • whenever a row is displayed in the TreeView Table control.
This process is used to filter the records that must be displayed in the TreeView Table control.

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 TreeView Table control (very rare case).
Example:

// -- Filter the records
// Displays the customers who placed orders exceeding 3000 Euros
IF Order.TotalIOT >= 3000 THEN
RESULT True
ELSE
RESULT False
END

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

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

Before displaying the automatic tooltip of the scrollbar
17版本和更高版本
WinDev The tooltip for the scrollbar of TreeView Table controls is displayed when the user clicks the "box" of the vertical scrollbar in the treeview table.

This tooltip contains the following information by default:

  • Range of rows currently displayed in the TreeView Table control.
  • Total number of rows in the TreeView Table control.
  • Information about the element currently displayed in the first row of the control in the sorted column.
The process optional "Before displaying the automatic tooltip of the scrollbar" is run just before displaying this tooltip. This allows you for example to display a specific text in the tooltip of the TreeView Table control with ..工具提示.
17新版本
WinDev The tooltip for the scrollbar of TreeView Table controls is displayed when the user clicks the "box" of the vertical scrollbar in the treeview table.

This tooltip contains the following information by default:

  • Range of rows currently displayed in the TreeView Table control.
  • Total number of rows in the TreeView Table control.
  • Information about the element currently displayed in the first row of the control in the sorted column.
The process optional "Before displaying the automatic tooltip of the scrollbar" is run just before displaying this tooltip. This allows you for example to display a specific text in the tooltip of the TreeView Table control with ..工具提示.
WinDev The tooltip for the scrollbar of TreeView Table controls is displayed when the user clicks the "box" of the vertical scrollbar in the treeview table.

This tooltip contains the following information by default:

  • Range of rows currently displayed in the TreeView Table control.
  • Total number of rows in the TreeView Table control.
  • Information about the element currently displayed in the first row of the control in the sorted column.
The process optional "Before displaying the automatic tooltip of the scrollbar" is run just before displaying this tooltip. This allows you for example to display a specific text in the tooltip of the TreeView Table control with ..工具提示.