PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of OrgElement variables
  • Functions that use the OrgElement variables
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
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 modified by several WLanguage properties.
Then, the corresponding element can be used by the WLanguage functions for managing the Organization Chart control.
Note: See Declaring a variable for more details.
Example
// Add elements into 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 the description of OrgElement variables

The following properties can be used to handle an element found in an Organization Chart control:
Name of the propertyType usedEffect
ToolTipCharacter stringTooltip displayed when the element is hovered. No tooltip is displayed by default.
BorderBorderType of border for the element.
ContentCharacter stringText displayed in the border of the element.
BrushColorInteger or Integer constantBackground color used to display the element.
This color corresponds to:If this property is not specified, a color will be automatically calculated.
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.
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.
BackgroundImageCharacter stringName and full (or relative) path of the image file displayed as background image of the element. 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.
Caution: This property is available from version 170078.
FontContentFontCharacteristics of the font used to display the content of the element.
FontTitleFontCharacteristics of the font used to display the title of the element.
TitleCharacter stringText corresponding to the title of the element.
Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that use the OrgElement variables

Versions 17 and later
OrgAdd
New in version 17
OrgAdd
OrgAdd
Adds a new root element into an Organization Chart control.
Versions 17 and later
OrgAddChild
New in version 17
OrgAddChild
OrgAddChild
Adds a child element into an Organization Chart control.
Versions 17 and later
OrgModify
New in version 17
OrgModify
OrgModify
Modifies an element in an Organization Chart control.
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment