PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Events managed by default
  • Optional events
  • Filtering records (browsing TreeView Table control only)
  • Before displaying the automatic tooltip of scrollbar
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Events associated with TreeView Table controls
Events managed by default
WINDEV Mobile WINDEV and WINDEV Mobile manage the following events by default (order of appearance in the code editor):
EventRuntime 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 HFilter.
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 moving from one control to another (TAB key, selecting another control with the mouse, etc.).
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 moving from one row or control to another (TAB key, selecting another control with the mouse, etc.).
Row displayRun when a new row must be displayed in the TreeView Table control, for example when one of the following actions is performed: re-display the control, scroll or move in the control, ...
Selecting a rowRun when the user selects a row (without input).
Collapsing/Expanding a nodeRun when the user expands or collapses a node.
Remark: The syntax TableName[TableName] used in this event allows you to know the number of the row that is collapsed/expanded.
(*) By default, the event "Initializing" of each control is run according to the order in which the controls were created in the window. To modify this runtime order:
  1. Select "Windows .. Edit the initialization order".On the "Window" pane, in the "Order" group, click "Initialization".
  2. In the window that is displayed, use the arrows on the right to modify the initialization order of controls.
Optional events
Several optional events can be managed.
To manage an optional event, simply select it in the icon bar of the code window (bottom right).
You can manage, for example:
  • the control rollover with the mouse,
  • the left mouse button down, up, with a double click,
  • the right mouse button down, up, with double click,
  • the mouse wheel, etc.
Filtering records (browsing TreeView Table control only)
The event "Filtering the records" is run right after a row of the TreeView Table control is displayed. Therefore, it is run:
  • when initializing the control.
  • whenever a row is displayed in the TreeView Table control.
This event is used to filter the records displayed in the TreeView Table control.
To implement a filter, the event "Filtering the records" must return a value:
  • True to specify that the record matches to the filter and that it must be displayed.
  • False to specify that the record does not match 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 applied on the TreeView Table control (TableEnableFilter or filter enabled directly by the user), the filter defined by the event "Filtering records" is added to the automatic filter.
Before displaying the automatic tooltip of scrollbar
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment