ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Organization Chart functions
  • Properties specific to OrgElement variables
  • Functions that use OrgElement variables
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 OrgElement type is used to define the advanced characteristics of an element found in an Organization Chart control. The characteristics of this element can be defined and changed using different WLanguage properties.
Then, the corresponding element can be used by the WLanguage functions for managing the Organization Chart control.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Add elements to the Organization Chart control
// Root element
ElementCEO is OrgElement
ElementCEO.Title = "Big Boss"
OrgAdd(ORG_EXECUTIVE, ElementCEO)
 
// Child elements
Element2 is OrgElement
Element2.Title = "Production"
OrgAddChild(ORG_EXECUTIVE, 1, Element2)
 
Element3 is OrgElement
Element3.Title = "Sales"
OrgAddChild(ORG_EXECUTIVE, 1, Element3)
Remarks

Properties specific to OrgElement variables

The following properties can be used to handle an element found in an Organization Chart control:
Property nameType usedEffect
BackgroundColorInteger or Integer constantBackground color used to display the element.
This color can correspond to:If this property is not specified, a color will be automatically calculated.
Before version 24, this property was named "BackgroundColor".
BackgroundImageCharacter stringName and full (or relative) path of the image file displayed as background image of the element. A UNC path can be used.
BorderBorderType of border for the element.
ContentCharacter stringText displayed in the border of the element.
FiDrawingCharacter stringName of the internal window used to draw the element. By default, this property corresponds to an empty string (""): the internal window used is the one defined in the editor for the Organization Chart control.
FontContentFontCharacteristics of the font used to display the content of the element.
FontTitleFontCharacteristics of the font used to display the title of the element.
IDAll typesFree identifier, used to link the element to a data file for example.
ImageCharacter stringName and full (or relative) path of the image file displayed on the left of the element title. A UNC path can be used.
NoteCharacter stringUsed to store user information at runtime.
Orientation90BooleanUsed to manage the orientation of the element: therefore, a child can be displayed (or not) on the right of its parent:
  • True: The child element is displayed on the right of its parent.
  • False (default value): The child element is displayed below its parent.
TitleCharacter stringText corresponding to the title of the element.
ToolTipCharacter stringTooltip displayed when the element is hovered. No tooltip is displayed by default.

Functions that use OrgElement variables

OrgAddAdds a new root element into an Organization Chart control.
OrgAddChildAdds a child element into an Organization Chart control.
OrgModifyModifies an element in an Organization Chart control.
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help