Gantt Chart - Work Breakdown Structure (WBS) Project Management Example

Tuesday, September 27, 2011

1. Introduction

2. Toolbar buttons

1. Introduction:

The WBS project example demonstrates how to use ActiveGantt in project management applications with a Work Breakdown Structure (WBS).

On the left hand side of the control the treeview object is visible. The nodes in the treeview can be collapsed or expanded to hide or show the complete Work Breakdown Structure (WBS) for the task.

Each node can have it's own independent image, check boxes and font. Nodes also provide a way to calculate totals and sub-totals. Summary tasks are updated whenever a child task is moved or sized. Also in this example once a percentage object is resized the parent summary tasks are updated as well, calculating the average percentage complete of all of their child nodes. Summary tasks cannot be moved.

Percentages can be resized by selecting them and dragging the right hand side.

Tooltips for this example are custom drawn, and include the image that is associated with the node object in question.

Predecessors can be added between tasks by pressing and holding the ALT key while over the selected task object. The selected task then becomes the predecessor task. By dragging the cursor over to another task and releasing the mouse button a predecessor object is created.

There are four types of predecessor objects: End-To-Start, Start-To-Start, End-To-End and Start-To-End. The nature of the predecessor type is determined by the position within the task where the mouse button is pressed and released. In the above example the mouse has been pressed near the end of the predecessor task and will surely be released near the start of the task. This will create an End-To-Start relationship. The predecessor object will be stored in the "Pathology: Haematology Day Care" task predecessors collection. The nature of the relationship can also be restricted programatically in the ObjectAdded event. For the purpose of this example predecessors are not restricted in any way.

Right clicking on any task object will bring up the predecessor information dialog.

Summary tasks are restricted in such a way that they cannot accept incoming or outgoing predecessor requests.

2. Toolbar buttons:

Button Function
  Pressing the print button will bring up the fPrintDialog form where you will be able to preview and print the chart. fPrintDialog, fPrintPreview and fSchedulePrintSettings include code that can be reused in your application to implement printing for the ActiveGantt component.
  The magnifier buttons enable you to zoom in and zoom out of the chart.
    The toggle percentages buttons allow you to show or hide the percentages of the task objects using layers. The blue is for regular task objects, green for green summaries, and red for red summaries.
  The tooltip button shows or hides tooltips.
  Pressing the help button will bring up this help topic.

All trademarks are property of their respective holders, and are only used to directly describe the products and services being provided. Their use in no way indicates any relationship or endorsement between The Source Code Store LLC and the holders of said trademarks.