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 MaxLeafPerRow property is used to get and change the maximum number of elements in a row in an Organization Chart control. When this maximum number is reached for the last level of the hierarchy, the elements are presented on several rows (vertical organization chart) or on several columns (horizontal organization chart).
Remark: The maximum number of leaves per row for an Organization Chart control is defined in the "General" tab of the control description window ("Move over several rows from").
Example
IF CBOX_InColumn = True THEN
ORG_Main.MaxLeafPerRow = 1
ELSE
ORG_Main.MaxLeafPerRow = 0 // no limit
END
Syntax

Finding the maximum number of leaves Hide the details

<Result> = <Organization Chart control>.MaxLeafPerRow
<Result>: Integer
Maximum number of leaves per row. This value is set to 3 by default.
There is no limit if this value corresponds to 0.
If this value corresponds to 1, all the leaves are displayed below each other instead of being displayed side by side (vertical organization chart).
<Organization Chart control>: Control name
Name of Organization Chart control to use.

Modifying the maximum number of leaves Hide the details

<Organization Chart control>.MaxLeafPerRow = <New value>
<Organization Chart control>: Control name
Name of Organization Chart control to use.
<New value>: Integer
Maximum number of leaves per row. This value is set to 3 by default.
There is no limit if this value corresponds to 0.
If this value corresponds to 1, all the leaves are displayed below each other instead of being displayed side by side (vertical organization chart).
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help