ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Organization Chart functions
  • Properties specific to OrgElement variables
  • Functions that use OrgElement variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The OrgElement type is used to define the advanced characteristics of an element found in an Organization Chart control. You can define and change the characteristics of this element using different WLanguage properties.
Then, the corresponding element can be used by the WLanguage functions for managing the Organization Chart control.
Note: 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)
Properties

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.
New in version 2025
Extra
VariantAllows you to store advanced information without affecting the execution of the application. You can store values of any type (array, etc.). It is also possible to add members to the Extra property.
Example:
MyVariable.Extra.Info1 = Value
MyVariable.Extra[Info2] = Value2
MyVariable.Extra.Date = DateSys()
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 under 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 element orientation: a son may or may not be to the right of its father:
  • True: The son element is to the right of its father.
  • False (default): The child element is 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.
Remarks

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: 09/30/2024

Send a report | Local help