PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Adds a new root element into an Organization Chart control. If the Organization Chart control is linked to a data source, the element is also added into the data source.
Example
// Add a "Root" element into the Organization Chart control (Syntax 1)
Boss is int
Boss = OrgAdd(ORG_MyOrganizationChart, "Vince Boss", "Big boss", "Goldbar.gif")
// Modify the background color of this element
ORGA_MyOrganizationChart[Boss]..BrushColor = iLightYellow
// Add elements into the Organization Chart control (syntax 2)
// 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)
Syntax

Adding a "root" element while specifying its characteristics Hide the details

<Result> = OrgAdd(<Organization Chart Control> , <Title> [, <Content> [, <Image>]])
<Result>: Integer
  • Subscript of added element.
  • -1 if an error occurred. ErrorInfo is used to identify the error.
<Organization Chart Control>: Control name
Name of Organization Chart control into which the element will be added.
<Title>: Character string (with quotes)
Title of element.
<Content>: Optional character string (with quotes)
Content of element.
<Image>: Optional character string (with quotes)
Image associated with the element. This image is displayed on the left of element title. This parameter corresponds to the name and to the full (or relative) path of image. A UNC path can be used.

Adding a root element by using the OrgElement type Hide the details

<Result> = OrgAdd(<Organization Chart Control> , <Element>)
<Result>: Integer
  • Subscript of added element.
  • -1 if an error occurred. ErrorInfo is used to identify the error.
<Organization Chart Control>: Control name
Name of Organization Chart control into which the element will be added.
<Element>: OrgElement variable
OrgElement variable describing the characteristics of the element to add.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment