PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Refreshes the display of a TreeView control from a given position.
Note: TreeDisplay can be used on:
  • a browsing or memory TreeView control. For a browsing TreeView control, the modifications performed on the linked data file are applied to the TreeView control.
  • a single-selection or multiselection TreeView control.
Example
// Add an element into an HFSQL data file
HAdd(FILE_Element)
// Reinitialize the TreeView control
TreeDisplay(TREE_MyTreeview)
Syntax
TreeDisplay(<TreeView control> [, <Position>])
<TreeView control>: Control name
Name of TreeView control to refresh.
If this parameter corresponds to an empty string (""), the TreeView control to which the current process belongs is refreshed.
<Position>: Integer, character or constant (optional)
Indicates the start position for the refresh. If this parameter is not specified:
  • For a browsing TreeView control, the function behaves like if the taInit constant was passed in parameter.
  • For a memory TreeView control, no effect.
This parameter can correspond to:
  • An integer. The refresh is performed from this position. The selected line is not modified.
    For a browsing TreeView control, the display process of <Position> line is run. The current element in the TreeView control is the same as the current record in the data file.
    For a memory TreeView control, the <Position> line is re-displayed.
  • A character or a constant:
    Browsing TreeView control loaded in memoryMemory TreeView control
    taCurrentSelection
    • Re-displays the TreeView control.
    • The selected line is unchanged.
    • Re-displays the TreeView control.
    • The selected line is unchanged.
    taCurrentRecord
    • Re-runs the linked query if necessary.
    • Takes into account the records added, modified or deleted by other computers.
    • Selects the current record.
    • The scrollbar position is stored as long as the selection remains visible.
    • Runs the beginning of initialization and the end of initialization, then the selection process of selected line (even if it is not modified).
    No effect.
    taStart
    • Refreshes the TreeView control by positioning at the beginning of control.
    • The first line is selected. This row corresponds to the first record.
    No effect.
    taInit
    • Runs the initialization code of TreeView control (initialization code and end of initialization code).
    • Fills the TreeView control.
    • The first line of TreeView control is selected. This line corresponds to the current record at the end of initialization code of TreeView control.
    No effect.
    taReExecuteQuery
    • Re-runs the query linked to the TreeView control.
    • Refreshes the TreeView control by positioning at the beginning of control.
    • The first line of TreeView control is selected. This row corresponds to the first record.
    Caution: Only the query linked to the TreeView control is run. If specific options have been specified by HExecuteQuery (hModifyFile for example), these options are ignored.
    No effect.
Component : wd240obj.dll
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment