ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Collapsed property is used to:
  • AndroidiPhone/iPad get or define the state (collapsed or expanded) to be used when rows are added to a TreeView Table control.
    This property has no immediate effect but it is taken into account by TableAdd, TableAddLine, TableAddChild, TableInsert, TableInsertLine, TableInsertChild, ...
    The expanded status is the default status.
  • get or set the state (collapsed/expanded) for:
    • the breaks of Table controls.
    • the breaks of Looper controls.
Example
AndroidiPhone/iPad
// Define the collapsed status for the next addition in the TreeView Table control
TVT_Recipe.Collapsed = True
// Insert a leaf ("Pancakes") at position 2 below the "Desserts" node
TableInsertChild(TVT_Recipe, "Desserts", 2, "Pancakes")
// -- Click code of a Button control etc
// This code is used to collapse or expand the Table control break
// for the current row according to its status
 
TABLE_NestedBreaks.BreakHeader3.Collapsed = ...
NOT TABLE_NestedBreaks.BreakHeader3.Collapsed
// -- Click code of a Button control etc
// This code is used to collapse or expand the Looper control break
// for the row according to its status
 
LOOP_NestedBreaks.BRK_BreakHeader1.Collapsed = ...
NOT LOOP_NestedBreaks.BRK_BreakHeader1.Collapsed
Syntax

Identifying the Collapsed/Expanded state used when adding a new element in a control or the Collapsed/Expanded state of a control Hide the details

<Result> = <Control used>.Collapsed
<Result>: Boolean
TreeView Table control and breaks in Table controls
  • True if the Collapsed status is used for the next addition,
  • False otherwise.
Break in Looper control
  • True if the break is collapsed,
  • False otherwise.
<Control used>: Control name
Name of the control to be used.

Changing the Collapsed/Expanded state used when adding a new element or the Collapsed/Expanded state of a control Hide the details

<Control used>.Collapsed = <Collapsed/Expanded>
<Control used>: Control name
Name of the control to be used.
<Collapsed/Expanded>: Boolean
TreeView Table control and breaks in Table controls
  • True if the collapsed status must be used for the next addition,
  • False otherwise.
Break in Looper control
  • True to collapse the break,
  • False to expand it.
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/17/2023

Send a report | Local help