PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • Window control
  • Creating an Organization Chart control
  • Description of organization chart
  • The control options
  • Customizing the element area
  • Modes for filling an Organization Chart control
  • Printing an organization chart
  • Automatic Application Features (AAF) for an Organization Chart control
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
Overview

Window control

The Organization Chart control is used to represent elements in a hierarchical way.
For example:
  • the contributors of a company according to their position.
  • the different branches of a group with their inter-dependencies.
  • the different steps of a manufacturing process, ...
Creating an Organization Chart control
To create an Organization Chart control:
  1. In the window editor, click (or select "Insert .. Control .. Organization Chart control").On the "Creation" pane, in the "Graphic controls" group, click "Organization chart".
  2. Click the position where the control will be created in the window. The wizard for creating the Organization Chart control starts. Select the different control characteristics and validate. The control is automatically created.
Versions 20 and later
Note: The dimensions of created control are optimized in order to occupy the available space at the specified position. If the control size does not suit your, press [CTRL + Z]: the default control size will be restored.
New in version 20
Note: The dimensions of created control are optimized in order to occupy the available space at the specified position. If the control size does not suit your, press [CTRL + Z]: the default control size will be restored.
Note: The dimensions of created control are optimized in order to occupy the available space at the specified position. If the control size does not suit your, press [CTRL + Z]: the default control size will be restored.
To display the control characteristics, select "Description" from the popup menu of control.
Description of organization chart

The control options

The Organization Chart control can be configured in the editor via the description window ("General" tab).
The parameters of the organization chart are as follows:
  • Orientation: The organization chart can be displayed horizontally (from left to right or from right to left) or vertically (from top to bottom or from bottom to top).
  • Type of arrow: The arrow can point to the child elements, to the parent element or in both directions.
  • Internal windows for the elements: Internal window used to customize the appearance of the elements found in the organization chart (see below).
  • Minimum width and height of elements: minimum size of the elements found in the Organization Chart control.
  • Maximum number of elements on the last hierarchy level. If the number of elements is greater than the number specified, the elements will be displayed over several lines (or columns depending on the orientation of control).

Customizing the element area

In the Organization Chart control, each element is displayed in a specific area. You have the ability to translate and customize this area: title color, background color of the element, ...
To customize the display of elements:
  1. Display the description window of Organization Chart control.
  2. In the "General" tab, select the internal window used for the elements:
    • "None": the default display will be used.
    • "Preset window": a preset window is automatically added to the project. By default, this window is named IW_WinDevViewOrgElement.wdw.
    • an existing internal window of your project.
  3. The internal window is available in the project explorer. It can be modified in the window editor.
Note: If you are using an internal window of your project, this internal window must manage the display of the element characteristics in the different controls of this internal window. For more details, see the declaration code of the global variables found in the preset internal window.

Modes for filling an Organization Chart control

An Organization Chart control can be filled:
Printing an organization chart
To print an Organization Chart control:
  • the end user can select an option of the popup menu to save the organization chart in image format (Automatic Application Feature). Then, he will have the ability to print this image.
  • by programming, OrgSaveImage is used to create the image of organization chart in an image file. Then, the application can print the image via a report, send it it by email, ...
Automatic Application Features (AAF) for an Organization Chart control
The Organization Chart control includes several AAFs (Automatic Application Features).
The user can:
  • zoom by using the "Ctrl + mouse wheel" shortcut.
  • move in the organization chart with the mouse.
  • use the "range sliders" available on the sides of the control to zoom and move.
  • save the organization chart in an image (to print it for example) via the popup menu of the control.
Related Examples:
WD Flowchart Training (WINDEV): WD Flowchart
[ + ] This example is used to create organization charts.
An organization chart is used to indicate the repartition of the managers within a company and the relationships that exist between these managers.
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment