PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Window control
  • Creating an Organization Chart control
  • Description of an 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
Products
WINDEVWEBDEV - Server codeWEBDEV - Browser codeWINDEV MobileReports and Queries
Platforms
WindowsLinuxWindows MobileUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadApple Watch
Languages
JavaPHPAjaxUser code (UMC)External language
Databases
HFSQLHFSQL Client/ServerStored proceduresOLE DBODBCNative Accesses
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 characteristics of the control and validate. The control is automatically created.
Versions 20 and later
Note: The dimensions of the 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 size of control will be restored.
New in version 20
Note: The dimensions of the 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 size of control will be restored.
Note: The dimensions of the 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 size of control will be restored.
To display the characteristics of the control, select "Description" from the popup menu of the control.
Description of an 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 the elements: minimum size of the elements found in the Organization Chart control.
  • Maximum number of elements on the last level of the hierarchy. 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 the 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 the elements:
  1. Display the description window of the 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 the 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 version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment