Selects an element in an Organization Chart control. If the element to select is not found in the visible area of the Organization Chart control, a scroll is automatically performed.
// Gets the subscript of selected element in an Organization Chart control
ElementNum is int
ElementNum = OrgInfoXY(ORG_MyOrganizationChart, MouseXPos(), MouseYPos())
IF ElementNum <> -1 THEN
OrgSelectPlus(ORG_MyOrganizationChart, ElementNum)
END
Syntax
OrgSelectPlus(<Organization Chart control> , <Subscript>)
<Organization Chart control>: Control name
Name of Organization Chart control to use.
<Subscript>: Integer
Subscript of the element to select. This index is returned by OrgInfoXY for example.