UserGuide XGantt 5.0 ActiveX PDF
UserGuide XGantt 5.0 ActiveX PDF
XGantt
User's Guide
Microsoft Windows, Microsoft Explorer, Microsoft Visual Basic and Microsoft Visual
Studio are trademarks of MICROSOFT Corp., USA.
Table of Contents
1 Introduction 11
1.1 VARCHART XGantt at a Glance 11
1.2 Technical Requirements 13
1.3 Installation 14
1.4 Licensing 15
1.5 Delivery 16
1.6 VARCHART ActiveX in Visual Studio 6.0 or 7.0 with Visual
C++/MFC 17
1.7 VARCHART ActiveX in HTML Pages 19
1.8 Support and Advice 25
2 Tutorial 27
2.1 Overview 27
2.2 Placing the Control on a Form 29
2.3 Supplying Data 30
2.4 Calculating End Dates 35
2.5 Marking non Working Intervals in Activities 38
2.6 Interactions in the Table and Diagram Area 40
2.7 Interactions with Activities 42
2.8 Using Layers 44
2.9 Using Filters 47
2.10 Creating Histograms 51
2.11 Printing the Diagram 65
2.12 Exporting a Diagram 66
2.13 Saving the Configuration 67
3 Important Concepts 69
3.1 Boxes 69
3.2 Data Tables 73
8 Index 1291
1 Introduction
1.3 Installation
Start the Setup program and follow the instructions.
During the installation procedure, a reference of the VARCHART ActiveX
component is registered in the Windows registry. You can run the registration
yourself using the Windows system file regsvr32.exe:
c:\windows\system32\regsvr32 "c:\program files\varchart\xgantt\-
vcgantt.ocx"
The specified paths certainly depend on the settings of your computer.
The installation procedure is logged to the file install.log allowing for tracing
where files were copied.
The same file will be used for uninstalling. You can start the uninstalling
procedure by selecting Start -> Settings -> Control Panel and then
Add/Remove Programs.
You can remove the registration entry yourself by using the command
c:\windows\system32\regsvr32 -u "c:\program files\varchart\xgantt\-
vcgantt.ocx"
Alternatively, you can make an unattended installation of VARCHART
XGantt. For this, please enter:
start/wait (NameOfTheSetupFile).exe /L1033 /s /V"/qn ADDLOCAL=ALL"
By this call, the installation will run without user interaction and without
status information displayed on the screen. Please note:
1. The invoking procedure, such as a DOS box, needs to be run with
administrator privileges; otherwise a UAC message may appear that
requests a user entry.
2. Language parameters: /L1033: installation in English; /L1031:
installation in German; L2052: installation in Chinese
3. Progress information: /qb: progress information will be displayed; /qn: no
progress information will appear; you won't see anything on the screen.
4. Start/wait you should use in case the installation is run by a batch file; if
you don't use 'wait', the batch file will run parallel to the installation.
1.4 Licensing
For licensing the VARCHART XGantt control please click on the icon
and draw the control onto the form.
Open the Property Pages by a right mouse click on the control.
On the General tab, please open the licensing dialog by clicking on the
Licensing... button.
By clicking on the button Request license information from NETRONIC...
a dialog to fill in the user data will open.
Four items are needed for the licensing:
the hardware identification
the license number
the name of the staff member
the name of the company
Please fill in the information needed. You will find the license number
"BXnnnn" on the delivery note of your order.
If you click on Send email to NETRONIC..., an email will be generated that
only needs to be dispatched. Alternatively, you can write an email manually
that contains the required information. Please send all enquiries concerning
the licensing to [email protected]
After sending the mail, you will immediately receive a license file. To finish
the licensing procedure, please copy the file to the installation directory
(directory that contains the file vcgantt.ocx).
1.5 Delivery
When delivering your application, please check if the below files are present
in your customer´s Windows directory. If they are not present, you need to
include them in your shipment:
VARCHART XGantt files:
vcgantt.ocx (version 5.0)
vcpane32u.dll (version 5.5)
vcprct32u.dll (version 5.5)
vcwin32u.dll (version 5.5)
vxcsv32u.dll (version 1.320)
opsaps.dll (version 7.3)
Microsoft libraries:
gdiplus.dll
mfc100u.dll
msvcp100.dll
msvcr100.dll
The file vcgantt.ocx needs to be registered by using the command line
regsvr32 vcgantt.ocx.
In order to install the libraries mfc100u.dll, msvcp100.dll, mfcm100u.dll and
msvcr100.dll you can either copy them directly to the Windows system
directory or you can use the setup file vcredist_vs2010_x86.exe. These files
are located in the installation folder of XGantt in the subfolder redist.
If you use several VARCHART ActiveX controls in one class, you have to
place the namespace in front of each subobject that appears in at least two
controls (e.g. CVcNode or CVcTitle) in addition. The following example
demonstrates the declaration of a variable for a title object:
Example Code
XGantt::CVcTitle title = VcGantt1.GetTitle();
1.7.1 Restrictions
Compared to other applications, there are some restrictions:
The client used needs to be run by the Windows operating system, since it
is the only system that runs ActiveX controls. This is not required of the
server.
If you embed the ActiveX control directly, Javascript/JScript
(ECMAScript) is not suitable as a script language because it does not
offer by-reference parameters, which makes it impossible to return values
other than the return value itself, for example the methods
IdentifyObjectAt and most of the events, e.g. OnNodeCreate. VBScript
however, offered only by the Microsoft Internet Explorer, is suitable.
Mozilla browsers (including Firefox and Netscape) and Opera are only
appropriate for direct embedding, if an ActiveX plug-in is used. There is
the solution of Mozilla ActiveX Project and the plug-in MeadCo
Neptune, which works independently of browsers. By the way, Mozilla
Active X Projext does not offer a "silent" installation by a CAB file,
which is the default with the Internet Explorer.
Please consider that direct embedding and the cosecutive management of the
VARCHART ActiveX control by a script cannot replace a real application.
Scripts are only suitable for small applications. If you plan a larger
application, you should develop your own ActiveX control, e.g. by using
Visual Basic 6.0, containing one or several VARCHART ActiveX controls.
For example a script cannot access the mass storage of the target computer,
whereas an ActiveX control is able to do this (even if it is not supposed to).
The command specifies the size and the Class ID of the VARCHART
ActiveX control. Each VARCHART ActiveX control has got a unique Class
ID by which it is identified if it was recorded in the registry before. If an
ActiveX control is to be displayed without an explicite installation, the code
base parameter will be used. It specifies where the associated installation file
is located on the server. The CAB file to be specified there is delivered by
NETRONIC Software GmbH. In addition, the version number has to be
specified to make sure that the control is loaded and installed whenever there
is no or just an old version on the target computer.
The CAB file was signed by NETRONIC Software GmbH, so that the user in
the Internet Explorer will receive a message on the certification when the
browser starts to install the control. The VARCHART ActiveX control on
purpose was not signed as safe ("Safe for Scripting") for the use in script
languages, since writing to the file system of the computer is possible by the
export of charts and the SaveAs method. If you develop your own ActiveX
contol, you should sign it as safe for the installation and for the use in script
languages (for example by the Package and Deployment Wizard of Visual
Basic 6.0), to ensure a use free of problems on the Internet.
After embedding the VARCHART ActiveX control in the HTML page, you
now need to provide your own configuration file to make the VARCHART
ActiveX contol show the desired appearance. For this, you need a script in
which the property ConfigurationName of the VARCHART ActiveX
control points to a URL (needs to start by http://), which preferably describes
a file located in the same directory on the server as the other files.
Example Code
VcGantt1.ConfigurationName =
"http://www.netronic_test.com/xgantt_sample.ini"
Please note that not only the INI file of the VARCHART ActiveX control but
also an IFD file with the same name are read. Both have to be located on the
server. The files can be generated in the following way: Drag the
1.7.4 Trouble-Shooting
If problems occur when executing ActiveX controls in the Internet Explorer,
the free tool Code Download Log Viewer of Microsoft has proved to be
helpful. It allows to trace the parts that did not work during the download.
Also the Script debuggers can be recommended, such as the free Microsoft
Script Debugger.
When downloading INI and IFD files from an IIS web server, please note
that these file types have to be made known to the web server by invoking the
dialog file types properties of the web sites in the tree view of the Internet
Information Service on the tab HTTP Header and by allocating INI and IFD
file types to the MIME type text/plain.
It should not be ignored, that often scripts on the server need to be debugged,
which is possible by using development environments of web applications
(for example using Microsoft FrontPage for ASP). Scripts on the server side
imply the problem not to allow for simple things such as message boxes and
log files to mark bugs in the script.
MeadCo Neptune
www.meadroid.com/neptune
Microsoft IExpress
www.microsoft.com/technet/prodtechnol/ie/ieak/techinfo/deploy/60/en/iexpr
ess.mspx?mfr=true
Code signing
http://msdn.microsoft.com/library/default.asp?url=/workshop/security/authco
de/intro_authenticode.asp
Certification authorities
VeriSign: www.verisign.com/developer
Thawte: www.thawte.com
GeoTrust: www.geotrust.com
GlobalSign: www.globalsign.net
Signcode tool
http://msdn.microsoft.com/library/default.asp?url=/workshop/security/authco
de/signing.asp
Signtool tool
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/seccrypto/security/signtool.asp
...by the way: you may order our support and maintenance service which
goes beyond the 30 days of free support during the initial testing phase. The
service includes:
A support hotline
Detailed expert advice to questions of application
Quick fixing of possible bugs in the software
Upgrades to new VARCHART XGantt releases for development and
runtime versions.
We also offer training classes and workshops (at your or at our place).
2 Tutorial
2.1 Overview
In this chapter, we will get you aquainted with the basic features of
VARCHART XGantt which are essential for integrating the bar chart into
your own application.
Step by step, we will explain to you the important aspects of VARCHART
XGantt for the application development and go into the particulars of the
wide range of designing options. We recommend to read this tutorial chapter
by chapter, while the other parts of the user guide rather serve for consulting
on specific situations.
Property pages and dialogs
In the quoted chapter you will find comprehensive information on the
property pages and dialogs which allow to configure VARCHART
XGantt at design time without having to write code.
Elements of the user interface
In the chapter quoted above the interactions which are available in the
diagram are described. Details of the user interface can be fitted or
changed individually.
API Reference
In the above chapter you will find detailed information on all objects,
properties, methods and events of VARCHART XGantt.
We use Visual Basic 6.0 as developing environment for the samples.
Our first progam sample will show the below result:
With this application, you will get to know better the inbuilt interactions of
VARCHART XGantt.
If you wish the bottom and right-hand side of the VARCHART Windows
Forms control to be adjusted to the full size of the window during runtime,
the Load and Resize event of the form must contain the following code:
Example Code
Private Sub Form_Load()
VcGantt1.Width = ScaleWidth - VcGantt1.Left
VcGantt1.Height = ScaleHeight - VcGantt1.Top
End Sub
Set dataTable =
VcGantt1.DataTableCollection.DataTableByName("Relations")
Set dataRecCltn = dataTable.DataRecordCollection
dataRecCltn.Add "1;1;2"
dataRecCltn.Add "2;2;3"
VcGantt1.EndLoading
The values in a record are separated by semicolons. The order of the fields
has to correspond to the order of the fields in the data definition. New records
have to have an unambiguous identification which is not empty. The date in
the record has to correspond to the DateFormat definition in the data
definition table. The interpretation of the duration depends on the Time unit
and is pre-set to days on the General property page.
The Date output format is defined consistently for the table and every
dialog on the General property page.
Every record has its own line. The contents of the lines correspond to the
delivery parameters of the method Add(...) of the object type
VcDataRecordCollection.
The records of the Maindata are listed first, afterwards the records of the
Relations. Use **** Table name **** in order to mark the beginning of each
record group.
If you have saved such a file under intro.csv e.g., you may import the data as
follows:
Example Code
VcGantt1.Open("c:\intro.csv")
Below the code lines are listed that needed for our starter sample.
Example Code
Private Sub Form_Load()
VcGantt1.Width = ScaleWidth - VcGantt1.Left
VcGantt1.Height = ScaleHeight - VcGantt1.Top
Set dataTable =
VcGantt1.DataTableCollection.DataTableByName("Relations")
Set dataRecCltn = dataTable.DataRecordCollection
dataRecCltn.Add "1;1;2"
dataRecCltn.Add "2;2;3"
VcGantt1.EndLoading
VcGantt1.OptimizeTimeScaleStartEnd (3)
End Sub
If you run the program now, the result should correspond to the illustration.
Start and end dates of activities that were created or modified by mouse
interactions are automatically placed in active times.
In contrast, dates that were set by the API or by editing dialogs can be placed
in non-working times.
Alterations of data caused by the user can be caught via the event
OnNodeModifyComplete. The method call carries out the calculation of the
end date.
Example Code
Private Sub VcGantt1_OnNodeModifyComplete _
(ByVal node As VcGanttLib.VcNode, _
ByVal isLastNodeInSeries As Boolean)
SetNodeEndDate node
End Sub
ShowNonWorkInterval = false
ShowNonWorkInterval = true
After having selected the menu item the mouse pointer will take on the shape
of small crosshairs. Now an activity can be drawn with the left mouse button
pressed in the desired place of the diagram area. After finishing it is useful to
return to the Pointer mode of the context menu.
In the Create Node mode the program may intervene by the event OnNode-
CreateCompleteEx(). This is useful if you wish to pre-set data values.
Example Code
Private Sub VcGantt1_OnNodeCreateCompleteEx _
(ByVal node As VcGanttLib.VcNode,_
ByVal creationType As VcGanttLib.CreationTypeEnum,_
ByVal isLastNodeInSeries As Boolean)
The code displayed above will modify the contents of the data field Name; it
will attach the contents of the field ID to the term Node.
! Moving an activity
Return to Pointer mode if necessary and move the mouse pointer onto the
center region of the activity. The pointer will take on the shape of a small
square and four arrows. You can now move the activity to the desired
position by dragging the mouse. If you want to move more than one activity
simultaneously please activate the option Move all selected nodes on the
property page Nodes in the list box on the right.
! Deleting an activity
Marked activities can be deleted by pressing the Del key or by selecting
Delete nodes in the context menu of the activity. You can mark an activity
by clicking on it or on the corresponding table row. By pressing the Ctrl key
you can mark more than one activity.
2. Copy the definition of the layer Task by clicking on the Copy layer
button .
3. Change the name of NewLayer to Start-End and open the Edit Layer
dialog by clicking on .
4. Modify the Background color to yellow and the Shape to arrowhead
downward.
3. Select the filter "Milestone" and open the dialog Edit Filter by clicking
on .
4. Select "Duration" as Fieldname, as Operator "equal" and as
Comparison value 0.
11. If you run the program now and if the duration of the first activity is set to
0, the below result will be produced:
VcGantt1.OptimizeTimeScaleStartEnd (3)
Marked nodes shall display a cross hatch pattern. Therefore, on the propert
page Nodes in the section Mark type for nodes set the field in diagram: to
No Mark.
One more data field will be needed later on in our sample, which we are
going to create now. In the dialog box Edit data table… please create a field
of the type Integer and name it Selected. The field will make the display of
the activity depend on ist marking state.
The value of the field Selected needs to be updated each time the event
OnNodesMarkComplete is triggered.
Example Code
Private Sub VcGantt1_OnNodesMarkComplete()
Dim node As VcNode
For Each node In VcGantt1.NodeCollection
If node.MarkNode = True Then
node.DataField(5) = 1
Else
node.DataField(5) = 0
End If
node.UpdateNode
Next
End Sub
To the filter NotSelected, please set the condition Selected not equal 1.
Now, the appearance of the activities shall to be linked to the filters. Please
go to the dialog Specify Bar Appearance by clicking on the button Layers
on the property page Objects. Rename the layer Start-End into Unmarked
Nodes and assign the filter NotSelected to it. Copy the layer by clicking on
and name the copy Marked Nodes. Assign the filter Selected to the
layer.
Both layers still look alike. Modify the design of the layer SelectedNodes in
the dialog Edit Layer by selecting the pattern cross hatch and the
background color yellow.
Note: On the property page Nodes the option Show non-work interval
should be ticked to ensure that in non-work intervals (e.g. on weekends) a
line instead of a bar will be displayed.
Next, we will define the curves in the histogram. You can get to the dialog
Administer histograms on the property page Layout by clicking on the
button Administer histograms
Several histograms may be present in a Gantt chart at the same time. Each of
the histograms has a numeric scale of ist own and contains ist own curves.
We are now going to define a start and an end value to the numeric scale of
the histogram. For this, in Histogram 1 please set the end value to 6.
Curves can be stacked on one another. Stacking serves to add up the values
of curves. A curve to be added needs a curve to which it is added, a
reference curve. You can select the reference curve by the field Stack
reference.
Curves in a histogram can form an area that may have a color and a pattern,
for example a solid gray area or a green one hatched by red lines. If you wish
to form an area and fill it with a color or a pattern, you need to set a fill
reference to a curve.
Two different types of fill areas exist:
1. Areas that form above and below a curve
2. Areas that only form above a curve and therefore indicate a transgression
In the former case, the fill reference curve is to be specified by the field Fill
reference; in the latter case, please use the field Fill Reference2. If you wish
the x axis to limit the area, please select Flatline.
Finally, the programming code in the Load event needs to be modified to
provide the values of the activities and of the capacity curve.
Example Code
Private Sub Form_Load()
VcGantt1.Width = ScaleWidth - VcGantt1.Left
VcGantt1.Height = ScaleHeight - VcGantt1.Top
VcGantt1.OptimizeTimeScaleStartEnd (3)
Run the program and click on an activity. In the histogram, you can
recognize immediately by the hatching pattern on a yellow background, what
section the acitivity occupies in the total resource occupation.
When moving activities, the degree of utilization will change and you will
recognize capacity overloads and shortfalls deriving from your interaction.
As a calendar grid for the histogram VARCHART XGantt takes the first
invisible calendar grid in the first section of the time scale, if there is no other
one present. This is the same calendar grid that is used groupwise in the
Gantt graph:
Thus the calendar grid will display the same appearance in the Gantt graph as
in the histogram. In the example below it is a calendar grid that shows a
different pattern for each group (groupwise calendar grid):
If you set another calendar grid to the time scale section, VARCHART
XGantt will use this one for its histograms:
By using the second calendar grid, you can assign a different appearance
compared to the calendar grid in the Gantt Graph. In our case, it shows a
different color:
3 Important Concepts
3.1 Boxes
In a diagram area, boxes that contain texts or graphics can be displayed. On
the property page Objects, please click on the Boxes... button to open the
dialog Administer Boxes.... You can add, copy, delete or edit boxes.
By the properties Origin, Reference point, X Offset and Y Offset you can
position a box in the diagram area. Relative positions of boxes do not depend
on diagram size.
To a box you can set the below features:
its name
whether it can be moved in the diagram at run time
whether and how ist size can be modified interactively
whether anchoring interactions by mouse or over context menu are
possible
whether the reference points of the node and of the box (origin, reference
point) shall be linked by a line when using the anchoring tool
a node ID to identify the node to which the respective box shall be tied
ist origin (the point to which the reference point refers in x and y
direction)
ist reference point (the point to which the origin refers in x and y
direction)
ist x or y Offset (distance between origin and reference point in x or y
direction)
type, thickness and color of the box frame line
ist priority in relation to other diagram objects (nodes, grids, etc.)
whether the box should be visible
the box format
! Editing boxes
The Edit Box dialog lets you specify the contents of the fields. At desing
time, you can make it appear by clicking on the Edit box button in the
Administer Boxes dialog box. At run time you can make it pop up by
double-clicking on a box. You also can edit the texts of boxes directly at run
time after having selected Allow in-place editing on the property page
General.
The Field column contains the numbers of the box fields. The number of
fields depends on the selected box format (see further below).
The Field type column displays the field types (text or graphics).
You can type the contents of the field or a graphics file name into the
Contents column. If a text field contains more than one line, you can use "\n"
to set line breaks (Example: "Line1\nLine2"). If you do not set line breaks,
the lines will automatically be divided where blanks are.
For a box, a format can selected which can be configured. In the Administer
Box Formats dialog box you can add, copy, delete or edit box formats. The
dialog box will appear after clicking on the Edit button of the Box format
field in the Administer Boxes dialog box.
In the Edit Box Format dialog box you can specify the box format. This
dialog box will appear if you click the Edit box button in the Administrate
Box Formats dialog box.
You can tick whether the box fields are to be separated by lines.
Beside, the below features can be set to a box:
field type (text or graphics)
width and height
how many lines of text can be displayed in the current field
alignment
background color and fill pattern
font attributes
The column Index is essential when using the API, since the contents of the
data fields can only be addressed via the index. If you modify the sequence of
fields in this dialog, i.e. the index, after having produced programming code,
you need to adapt the programming code that accesses the corresponding
field.
If you modify the data type, you may accordingly have to adapt formats and
layers already defined to ensure that the appropriate data type is used when
the fields are accessed.
The primary key feature is to be set to a field if you want a data record to be
identified uniquely. For a data table referred to by a relation, setting a
primary key is compulsory. The primary key may also consist of more fields
- but only up to three. For a detailed description of the use of composite
primary keys see chapter The Administrate Data Tables Dialog Box.
Relating tables is useful if the content shows a 1:n relation and if a subordi-
nated data record should directly refer to a data field of the main data record.
Between two tables A and B at the moment only a single 1:n relationship can
be established; a second field of B is not allowed to refer to the primary key
of A. Nevertheless, a field of a third table C is allowed to refer to the primary
key of table A.
Note: If a data table with a composite primary key is used in a relationship,
the relationship has to match the primary key. Otherwise a unique connection
is not possible. If the relationship is not defined correctly - which is checked
neither at the API nor in the Administrate Data Tables dialog, the data
record will not be connected. This leads to the event OnDataRecord-
NotFound.
In the sample below a relation is created between the tables Operation and
Task by setting Task:ID in the column Relationship.
Table Task:
ID Description Quantity Release date Due date
1 Task 1 10 12.05.07 20.05.07
2 Task 2 20 01.06.07 15.06.07
Table Operation:
ID TaskID Description Start End
1 1 Operation 1 12.05.07 14.05.07
2 1 Operation 2 15.05.07 19.05.07
Example Code
Dim dataTableCltn As VcDataTableCollection
Dim dataTable As VcDataTable
VcGantt1.EndLoading
Depending on the data table selected on the property page Node in the Data
table section, the graphical display of the nodes may originate from different
bases. When creating nodes interactively, the base is the table to which new
data records are added automatically. The corresponding rows displayed by
the visualization are influenced by the active node filter, by grouping and by
display options.
This is the result in the table of the Gantt chart if the table Operation was
selected as base. The entries for Description, Quantity and Due date originate
from the main table Task.
Description Quantity Due date Operation
Task1 10 20.05.07 Operation1
Task1 10 20.05.07 Operation2
Task2 20 15.06.07 Operation3
Task2 20 15.06.07 Operation4
Task2 20 15.06.07 Operation5
If the table Task instead of Operation is used, the visible table in XGantt
will consist of two entries only.
ID Description Quantity Due date Operation
1 Task 1 10 20.05.07
2 Task 2 20 15.06.07
In version 4.0 of VARCHART XGantt new object types are available that
will replace the former ones. For reasons of compatibility, the former object
types have been preserved in the present version. In new applications and in
updates of existing applications the new objects should be used only.
ReDim dataRecVal(dataTable.DataTableFieldCollection.Count)
dataRecVal(0) = 1
dataRecVal(1) = "Node 1"
dataRecVal(2) = DateSerial(2007, 1, 8)
dataRecVal(4) = 8
As a second way you can use a string consisting of data values which are
separated by semicolons.
Example Code
Set dataRec2 = dataRecCltn.Add("2;Node 2;15.01.07;;9")
If the data value itself contains a semicolon, the string has to be enclosed in
double inverted commas.
Example Code
Set dataRec2 = dataRecCltn.Add("2; ""Node 2;"";15.01.07;;9")
The reference to a data base object can quickly be found by the method
DataRecordByID () and the primary key.
Example Code
Set dataRec1 = dataRecCltn.DataRecordByID(1)
Set dataRec2 = dataRecCltn.DataRecordByID(2)
The contents of the single data fields of a data record can easily be modified
by using the indexed property DataField(). For replacing the contents of all
data fields of a record the property AllData is very useful.
Example Code
dataRec1.DataField(Main_ID) = 1
dataRec1.DataField(Main_Name) = "Activity X"
dataRec1.DataField(Main_Start) = DateSerial(2007, 1, 4)
dataRec1.DataField(Main_Duration) = 12
dataRec1.UpdateDataRecord
Note: In order to improve the legibility when accessing data fields you can
define global constants the names of which are more descriptive than index
numbers.
Below please find the coherent code partition.
Example Code
Const Main_ID = 0
Const Main_Name = 1
Const Main_Start = 2
Const Main_Duration = 4
'...
VcGantt1.TimeScaleEnd = DateSerial(2008, 1, 1)
VcGantt1.TimeScaleStart = DateSerial(2007, 1, 1)
VcGantt1.ExtendedDataTablesEnabled = True
Set dataTable = VcGantt1.DataTableCollection.DataTableByName("Maindata")
Set dataRecCltn = dataTable.DataRecordCollection
ReDim dataRecVal(dataTable.DataTableFieldCollection.Count)
dataRecVal(Main_ID) = 1
dataRecVal(Main_Name) = "Node 1"
dataRecVal(Main_Start) = DateSerial(2007, 1, 8)
dataRecVal(Main_Duration) = 8
Set dataRec1 = dataRecCltn.Add(dataRecVal)
dataRecCltn.Add("2;Node 2;15.01.07;;9")
VcGantt1.EndLoading
'...
dataRec1.DataField(Main_ID) = 1
dataRec1.DataField(Main_Name) = "Activity X"
dataRec1.DataField(Main_Start) = DateSerial(2007, 1, 4)
dataRec1.DataField(Main_Duration) = 12
dataRec1.UpdateDataRecord
'...
When switching, a VARCHART component uses the start date and the end
date including hour, month and day of daylight saving time that usually are
communicated by the system. This implies that the DST times of the years
before and after the current year are extrapolated and true deviations probably
existing of those years are ignored, since they are also unknown to the
system. For example, a couple of years ago daylight saving time was
prolonged for some weeks at the beginning and end. Since the system only
knows the current rules, consequently dates in those periods will be
interpreted in the wrong way.
At present, VARCHART components can only take into account a DST time
offset of exactly one hour. Besides, the switch can only take place at full
hour. Since a VARCHART component always receives and displays the date
values of local time, at the beginning of the DST period there is an hour
missing and at the end there are two hours of the same number. At present,
the identical numbers are not discriminated when passed, returned or
displayed.
The switching becomes visible in the time scale if its resolution is hours.
3.5 Events
Events are the elements that pass information on the user's interactions with
the VARCHART ActiveX control to the application. Each time a user
interacts with the VARCHART ActiveX control, for example by modifying
data or clicking on somewhere in the control, a corresponding event is
invoked. You can react to these events by the programming code of your
application.
In all programming environments, functions which already contain the
parameters provided by the control are supplied for events. Each event is
described in detail by the API Reference Manual.
Note: By the returnStatus parameter of the events you can deactivate all
context menus offered in the VARCHART ActiveX control (and replace
them with your own, if you want) plus you can control all interactions and
revoke them where required.
! Return Status
The below table contains the return status values of VARCHART ActiveX
events:
Constant value description
vcRetStatDefault 2 default value
vcRetStatFalse 0 revoking the action
vcRetStatNoPopup 4 revoking the popup menu
3.6 Filters
A filter consists of conditions that are to be fulfilled by layers, histogram
curves, links or table formats. Filters let you select layers, curves, links or
table formats that fulfill the criteria defined, e.g. in order to highlight them in
the diagram.
When you apply a filter, the data of the record is compared to the criteria of
the filter. Layers, curves, links or table formats that fulfill the filter criteria
will be selected.
For example, you can create a filter that specifies "All activities starting after
January 2010".
Filters can only be generated and configured in design mode.
There are several ways to get to the Administrate Filters dialog box:
on the Objects property page
for layers: in the Specify Bar Appearance dialog box
for table formats: in the Edit Table dialog box
for links: in the Filter button of the Link property page
for histogram curves: in the Filter combo box of the Edit Histogram
dialog
for nodes: by the Filter button of the Nodes property page.
Use the Administer Filters dialog box to rename, create, copy, delete or edit
filters.
To edit a filter press the Edit filter button of the Administrate Filters dialog
box. Then the Edit Filter dialog box will open.
programs that display and use WMF files, except for the Windows API itself,
which up to now is unable to generate or process the header, although it is
mentioned and explained in the Microsoft documentation.
When Microsoft released Windows NT and 95, the WMF format became
dispensable and its successor called EMF entered the market. Still, WMF is
quite popular up to now, especially with ClipArt graphics that do not require
the extended options of the successor format. The innovations of Windows
95 and NT have not been not transferred to the format, it has remained
unchanged since.
In WMF, a comment data set is available which can be used to place EMF
commands. If a display program discovers those kinds of comments, i.e. if it
can display EMF files, it automatically will discard the WMF command data
sets and will display the EMF command data sets instead. Thus a single file
can contain a WMF graphics as well as an EMF graphics. Presumably, this
was implemented for reasons of compatibility, but it inflates the file size
considerably.
For the description of the format please see:
http://msdn.microsoft.com/en-us/library/cc215212.aspx
On the limitations of the format see:
http://support.microsoft.com/kb/81497/en-us
EMF also offers a comment data set that can be used to place EMF+
commands. If a display program discovers those kinds of comments, i.e. if it
can display EMF+ files, it automatically will discard the EMF command data
sets and will display the EMF+ command data sets instead. Thus a single file
can contain a EMF graphics as well as an EMF+ graphics. Presumably, this
was implemented for reasons of compatibility, but it inflates the file size
considerably.
By the way, if required, printing jobs in Windows internally are cached as
EMF data streams and passed to the printer driver.
For the format description please see:
http://msdn.microsoft.com/ en-us/library/cc204166.aspx
storage of lines, so using this format does not make much sense. This format
is only supported by the VARCHART products for reasons of compatibility.
3.8 Grouping
It often is necessary to split activities into groups and then visually emphasize
the groups in your diagram. For example, activities are frequently grouped by
project phases (e.g. planning, construction, manufacturing, etc.) or by
departments (Construction Dept., Accounts Dept., etc.).
A grouped diagram could look something like this:
Groups are formed by a value, that all members of a group have in common.
Nodes that show the same entry in their grouping data field belong to the
same group. The grouping field and all other grouping criteria can be set in
the corresponding dialog which you can open by clicking the Grouping
button on the Objects property page.
Activities that have the same value in the Group by data field will be
allocated to the same group.
In the diagram, an extra row above the group contains the group title. The
appearance of the group title can be defined individually in the Edit Table
Format dialog box, depending on whether the groups are expanded or
collapsed (table formats Subtitle and Collapsed), e.g. by using different
colors or data fields.
The small plus or minus symbol next to the group headings indicates whether
the associated group is collapsed or expanded. By clicking on the sign, you
can switch from the collapsed status to the expanded status and vice versa. To
enable the feature, the Modifications allowed check box in the Grouping
dialog has to be ticked.
You can use the Sort groups by and the Sort order options to set the order
of the groups.
More options can be selected for groups:
whether table formats are to be generated
a pattern for the title row of the group (only in the diagram)
display and style of calendar and line grids
! Empty Groups
If you delete all nodes of a group, the title of the group will remain in the
table. Only if you switch the grouping off and on again or end and re-start the
program, the titles of all empty groups will not be displayed any more.
level, an arrow will indicate whether you can insert the summary bar above
or below it. When releasing the mouse button, the group and its subordinated
nodes will be inserted in the selected place.
End Sub
In a similar way you can display the nodes of groups in separate rows for
each group (group.AllNodesInOneRow = False), expand them
(group.Collapsed = False) or collapse them (group.Collapsed = True).
! Summary bar
In group lines, summary bars can be displayed. You can specify whether and
for what grouping levels summary bars are to be displayed.
To display summary bars at grouping levels defined by Grouping level, in
the Grouping dialog, the check box Summary Bar needs to be ticked for the
corresponding level.
The VcGantt property SummaryBarsVisible at run time lets you set or
retrieve, whether summary bars are visible. If grouping is a true grouping
(not a hierarchy), you can switch on or off the summary bars by levels, using
the parameter GroupingLevel.
On the Layer property page you can specify the appearance of summary bars
by creating layers that display any desired shape. You may define one layer
for all or for some levels, as well as a different layer for each level, e. g. the
layer "Summary bar 1" for the first level, "Summary bar 2" for the second
level etc.
To display the desired shapes of summary bars, filters need to be assigned to
them to select for defined features at each level. Filters can be created in the
Administer Filters dialog, e.g. the filter "Summary bar 1" for the first level.
To select a level to which the filter conditions apply, please invoke the Edit
Filter dialog. In the column Field name select summary bar-level, select an
Operator (equal, greater or equal, greater than, etc.) and enter the desired
level number in the Comparison field.
When you start the program, the specified summary bars will be displayed.
3.10 Histograms
Histograms are used to add up activities to curves above the time axis, with
the activities fulfilling certain criteria.
On the Layout property page you can set whether just a Gantt chart, just a
histogram or both, a Gantt chart and a histogram should be displayed.
! Numeric scales
In the above dialog you can define different numeric scales and select one to
apply to the histogram. You can define the grading of a numeric scale in y
direction (Width per unit). Beside, you can decide whether a line grid is to
be displayed and define ist features.
In the Ribbons area you can assign one or more ribbons to the numeric scale
being edited. To each ribbon you can set a Type, a Minimum width, a
number to define after how many units a Major or a Minor tick should
occur, you can assign a background Color, Font features and a Double
format. Furthermore you can tick the option Object draw events if you
want to design the contents of the ribbon by yourself and you can specify a
Unit label to designate the units used in the ribbon. For the unit label, please
ensure that sufficient space is provided by the minimum width of the ribbon;
otherwise the label cannot be displayed and will remain invisible.
! Histogram curves
A histogram may contain several capacity curves, for which you can
individually define a name, the line type and a pattern to be displayed below
or above the curve line. A curve requires a source to be specified to supply
the curve data. To set the source of a curve, please click on the Source field
and then on the Edit button ( ). The below dialog will appear:
For curves generated by layers, you can select the data field from which for
each activity the valency for the capacity sum is to be taken (Valency field).
For curves generated by the API, in the Select curve data source dialog you
can set whether the curve points are to be created at equal distances (Curve
points equidistant). Alternatively, curve points can be created only in points
where y values change.
Curve points equidistant: Specify the start value (startDate) and the y values
of the histogram curve. The coordinates of the histogram curve are calculated
from the start value, combined with the Time Unit and Smallest time
interval (Property page General).
Set Values X, Y1, Y2, Y3, ...
Curves generated in this way cannot be edited interactively.
Curve points not equidistant: Pairs of x and y values need to be specified:
Set Values X1, Y1
Set Values X2, Y2
Set Values X3, Y3...
The Time Unit and Smallest time interval do not play any part in this type
of curve. This curve can be edited interactively.
! Reference curve
A curve defined by the API can be used as a reference curve to display the
availability, for example.
! Stacking Curves
Stacking curves is useful, for instance, to visualize the total occupation of
resources. Stacking curves implies all y values of an x value to be added up.
To stack curves, filters need to be defined to select for activities that occupy
certain resources.
To stack curves, for each curve, in the Stack Reference field specify the
curve on which the edited curve is to be stacked. If you do not want to stack a
curve, select the entry No.
If you set No to all curves, they may overlap each other. In order to make
them differ, assign different line attributes to them.
Two curves can form the delimiters of a fill area, to which you can assign a
color and a pattern. The Fill Reference field allows to set a reference curve
to the curve being edited to form a fill area. The reference curve may be a
curve or the x axis (Flatline).
A fill area may hide other curves, so therefore appropriate drawing priorities
need to be assigned to curves.
You can add or delete single curve points interactively. To do so, please press
the right mouse button in the histogram area. The below context menu will
appear:
Defining a Calendar
A calendar can be defined at design time by the property pages or at runtime
by the application programming interface (API). In this chapter we explain
the basic handling of calendars from a developer’s point of view and give
some programming samples in C#. Defining a calendar by property pages is
described in detail by the chapter Property Pages and Dialog Fields.
In the VcGantt control, an object VcCalendarCollection exists which takes
care of the administration of all calendars. It has similar administrative
functions as other collections have in VARCHART XGantt. The pre-defined
BaseCalendar and any other calendar created at design time automatically
form a part of the collection.
A new calendar can be created by the method Add of the Calendar-
Collection object. The method requires a unique name for a calendar to be
identified. Initially, a new calendar merely consists of working time.
Please note: A calendar must contain at least a single time interval, since a
calendar containing but non-working time cannot exist.
To make the results of our programming samples verifiable in the pictures of
the Gantt diagrams, a constant time period is defined from 1.1.2011 to
31.12.2011 for the time scale in the programming samples. A calendar can
only become visible in the background of a Gantt diagram if it was activated
in the collection:
Example Code
'To Create and to activate a new calendar
Dim calendar As VcCalendar
VcGantt1.TimeScaleEnd = "01.01.2012"
VcGantt1.TimeScaleStart = "01.01.2011"
If you now wish to re-activate the default base calendar, you can do this by
the below settings:
Example Code
'To re-activate the default calendar
Dim calendar As VcCalendar
Set calendar =
VcGantt1.CalendarCollection.CalendarByName("BaseCalendar")
VcGantt1.CalendarCollection.Active = calendar
In the below example we will show how to define a working time profile by
intervals. An irregular pattern of non-working days is to be defined: January
1st of 2011 and the period from January 6th to January 20th 2011, except for
the two days of the 10th and 11th:
Example Code
'Defining non-working times
VcGantt1.TimeScaleEnd = "01.01.2012"
VcGantt1.TimeScaleStart = "01.01.2011"
interval.EndDateTime = "21.01.2011"
Visually, non-working times can be identified by the light gray shade. Since
working times by default do not have a color, the white background of the
diagram remains visible in them. In the next step, we want working times to
appear in a light yellow color and non-working times in light blue. The colors
are produced by graphical attributes that can be defined at the intervals.
Example Code
'Assigning colors to intervals
VcGantt1.TimeScaleEnd = "01.01.2012"
VcGantt1.TimeScaleStart = "01.01.2011"
VcGantt1.TimeScaleCollection.FirstTimeScale.Section(0).CalendarGridEx(0)
.UseGraphicalAttributesOfIntervals = True
interval.CalendarProfileName = "<WORK>"
interval.StartDateTime = "11.01.2011"
interval.EndDateTime = "13.01.2011"
interval.BackColorAsARGB = &HFFFFFFE0
interval.UseGraphicalAttributes = True
VcGantt1.CalendarCollection.Update
The below sample shows how to define a week where Monday to Friday are
a working time while the weekend is free of work. The options introduced so
far do not suffice for this; an object of the type VcCalendarProfile is
required.
Please note: In VARCHART XGantt, VcCalendarProfile objects can be
defined on a global or on a local level. Local calendar profile objects can only
be used in the calendar in which they were defined, while global objects
simultaneously can be used in different calendars. In our programming
samples, merely local calendar profile objects are used. In terms of functions,
local calendars do not differ from global ones. If a local and a global profile
of identical names were created, within the corresponding calendar only the
local profile is addressed; the global profile cannot be accessed.
A calendar profile of the type vcWeekProfile allows to describe working
and non-working times of the days of a week. A week profile becomes
effective only after it was added to the interval collection of the calendar.
Setting StartDateTime and EndDateTime can be omitted, since we want
our settings to be valid for the complete period of the calendar without any
restriction. The calendar profiles of the pre-set names <WORK> and
<NONWORK> have a defined meaning: they are used to allocate working
and nonworking times.
Example Code
'Defining a week profile
Dim calendar As VcCalendar
Dim interval As VcInterval
Dim calendarProfile As VcCalendarProfile
VcGantt1.TimeScaleCollection.FirstTimeScale.Section(0).CalendarGridEx(0)
.UseGraphicalAttributesOfIntervals = True
Set calendarProfile =
calendar.CalendarProfileCollection.Add("DayProfile")
calendarProfile.Type = vcDayProfile
The clock time is set by the object DateTime. The date fraction is ignored
since it is meaningless in this context. The date only needs to be set in the
constructor, to set a value to all parameters required by the constructor. In
Interval_3 it is important to specify 0 h instead or 24 h, since the latter is not
accepted in the DateTime object.
Recurring days of a year, such as New Year’s Eve on the 1st of January or
Christmas and Boxing Day on the 25th and 26th of December are defined
by a calendar profile which covers a whole year.
Example Code
'Setting a profile of fixed annual holidays
Dim calendarProfile As VcCalendarProfile
Dim interval As VcInterval
Set calendarProfile =
calendar.CalendarProfileCollection.Add("YearProfile")
calendarProfile.Type = vcYearProfile
Please note: The color properties become effective only in those intervals,
the CalendarProfileName of which was set either to <WORK> or to
<NONWORK>. In addition, the interval property UseGraphicalAttribute
needs to be set to true. The same is valid for the calenderGrid property Use-
GraphicalAttributesOfIntervals.
Floating holidays such as Easter, and other holidays that depend on them
have to be calculated for each year and need to be assigned to the calendar as
fixed dates. The below method is very useful for this:
Example Code
'Method to find floating holidays
Const AshWednesday = 0
Const GoodFriday = 1
Const EasterSunday = 2
Const EasterMonday = 3
Const FeastOfCorpusChristi = 4
Const AscensionOfChrist = 5
Const WhitSunday = 6
Const WhitMonday = 7
Const CentralEuropeanSummerTimeStart = 8
Const CentralEuropeanSummerTimeEnd = 9
g = year Mod 19
c = year Mod 100
h = (c - c / 4 - (8 * c + 13) / 25 + 19 * g + 15) Mod 30
i = h - (h / 28) * (1 - (29 / (h + 1)) * ((21 - g) / 11))
j = (year + year / 4 + i + 2 - c + c / 4) Mod 7
month = 3 + (i - j + 40) / 44
day = i - j + 28 - 31 * (month / 4)
dayOffset = 0
month = 3
day = 31 - Weekday("31.3" + yearConvert + 1)
Case CentralEuropeanSummerTimeEnd
month = 10
day = 31 - Weekday("31.10" + yearConvert + 1)
End Select
Dim tmpDate As Date
tmpDate = day & "." & month & "." & year
calculateAnniversaryForYear = tmpDate + dayOffset
End Function
In the next step, the week profile and the holiday profile are assigned to the
calendar as intervals. Then the floating holidays are calculated and assigned
to the calendar in the same way:
Example Code
'Assembling the week profile, the holiday profile and the floating
holidays into an interval
Set interval = calendar.IntervalCollection.Add("Weekly_Pattern")
interval.CalendarProfileName = "WeekProfile"
startYear = year(VcGantt1.TimeScaleStart)
endYear = year(VcGantt1.TimeScaleEnd)
Dim i As Integer
For i = startYear To endYear Step i + 1
Set interval = calendar.IntervalCollection.Add("GoodFriday_" & i)
interval.CalendarProfileName = "<NONWORK>"
interval.StartDateTime = calculateAnniversaryForYear(i, GoodFriday)
interval.EndDateTime = calculateAnniversaryForYear(i, EasterMonday)
'interval.StartDateTime
Call SetAppearanceForHolidays(interval)
Set interval =
calendar.IntervalCollection.Add("FeastOfCorpusChristi_" & i)
interval.CalendarProfileName = "<NONWORK>"
interval.StartDateTime = calculateAnniversaryForYear(i,
FeastOfCorpusChristi)
interval.EndDateTime = interval.StartDateTime
Call SetAppearanceForHolidays(interval)
Call SetAppearanceForHolidays(interval)
VcGantt1.CalendarCollection.Update
These are the steps in summary that are required to put assemble a calendar.
Depending on the requirements single steps may be omitted:
1. Creating day profiles of different working days
2. Assembling a week profile by using the day profiles
3. Defining a holiday profile
4. Assigning the week profile and the holiday profile to the interval
collection of the calendar
5. Assigning additional dates (e.g. floating holidays) to the interval
collection
The interval object allows to define periods that can be interpreted as
working time or as non-working time. The periods are distinguished to be
<WORK> or <NONWORK> by the CalendarProfileName property. By
this property, a calendar can also refer to other existing profiles and adopt
their settings. When setting this property please take into account that only
certain profile types can be assigned, depending on the interval type. The
interval type implicitly is selected by the chosen profile type. The pre-set
default value of the calendar profile, which is vcDayProfile, can be modi-
fied by a corresponding setting initially, that is, before defining intervals.
The profile type suggests the allowed interval type. For example, a day
profile always requires intervals of the type vcDayProfileInterval.
Calendar profiles can show the types day profile, week profile, year profile
and variable profile. In a day profile, intervals can only be defined by clock
times that range within the limits of a day. A week profile holds day profiles
to apply on certain days. A year profile assigns selected day profiles that
apply to a single recurring day or to a couple of recurring days. A variable
profile contains a sequence of different working times. Depending on the
interval types vcCalendarInterval, vcDayProfileInterval, vcWeekProfile-
Interval, vcYearProfileInterval and vcVariableProfileInterval only some
properties of the object are of relevance. The below table maps profile types
and relevant properties.
the last Sunday in the month of October. On the start of DST the clocks are
put forward from 2:00 h to 3:00 h and at its end they are put back from 3:00 h
to 2:00 h.
Start of daylight saving time:
On the start day of daylight saving time, the method calcDuration retrieves a
time span of 23 hours while on its final day, 25 hours are returned, if
TimeUnit is set to hours. If set to days, the time span in both cases will be
exactly 1 day.
tmpStartDate = startDate
Do While tmpStartDate < endDate
nextStartDate = calendar.GetNextIntervalBorder(tmpStartDate)
If calendar.IsWorktime(tmpStartDate) Then
If listWorkIntervals Then
Print #1, "WorkInterval" & " " & tmpStartDate & " " &
nextStartDate
End If
Else
If listNonWorkIntervals Then
Print #1, "NonWorkInterval" & " " & tmpStartDate & " " &
nextStartDate
End If
End If
tmpStartDate = nextStartDate
Loop
3.12 Layers
A layer represents a specific point in time (symbol or bitmap layers) or a
timespan (rectangle, wedge-shaped or line layers).
Activities are graphically displayed by one or more layers. If an activity
comprises several layers, the layers are drawn on top of each other, starting
by the layer of lowest priority and finishing by the layer of highest priority.
For each layer a filter is used. By using filters, you can assign a layer to only
those activities that fulfill the filter conditions.
The layers can have different patterns, background pattern colors and/or
annotations. In addition, they can be of varying heights and offsets, vertically
or horizontally, so all layers that belong to a node have a chance to be visible.
In the Specify Bar Appearance dialog box, you can define layers. All layers
existing are displayed here, in the order of their drawing priority.
By the buttons in the top right corner of the dialog you can add ( ), copy
( ), delete ( ) or edit a layer ( ).
To edit a layer, please select it from the list, click on the Edit layer button
( ) or double-click on the desired layer graphics in the column Layer
design. The Edit Layer dialog box will open where you can edit the
graphical attributes of the layer.
! Layer shapes
You can choose between rectangle layers, wedge-shaped layers, line layers,
symbol layers, bitmap layers and invisible symbol layers.
Select the layer shape from the Shape select box in the Edit Layer dialog
box.
Symbol layers represent specific points in time. Some symbol layers were
predefined, but you can also define your own symbol layers (for example
company logos). You can select a bitmap file by the Graphics file field.
Timespans can be visualized by rectangle layers, wedge-shaped layers or line
layers. Wedge-shaped layers are useful for visualising increasing and
decreasing activities, e.g. during periods of starting or phasing out.
The layer type invisible symbol is invisible, except for its annotation; beside,
it is not displayed in the legend. So you can use it for additional annotations
in activities.
By combining layer shapes, patterns, colors and filters, a large number of
different layers can be defined. The below picture displays some examples:
! Degree of completion
VARCHART ActiveX allows to recognize the degree of completion of an
activity at a glance. To display the degree of completion, please proceed as
described below:
Create a layer Completed and edit it by the Edit Layer dialog box. For
wedge-shaped and rectangle layers you can select a data field that contains
the degree of completion (indicated as %) of the selected layer. For example,
select for the layer Completed the data field % completed. Now specify the
graphical attributes (color, pattern etc.) so that the Completed layer can
easily be recognized.
Degree of completion: 90 %
At runtime, you can switch on and off the legend view in the default context
menu by the menu item Show legend view.
Moreover, you can switch on or off the legend view in the legend's context
menu.
The context menu offers two more items: Actualize legend and Legend
attributes. By selecting the latter you call the corresponding dialog.
The refreshing of the legend is needed after modifications in the chart, such
as adding or deleting nodes, because they are not displayed automatically.
The refreshing can also be carried out by switching off and on the legend
view. This concerns the loading of nodes as well. If on the property page
Additional views the attribute Initially visible was selected for the legend
view and no nodes have been loaded when running the program, the legend
stays empty until it was refreshed.
On the Additional Views property page you can set the properties of the
Legend View. For details please see The Additional Views Property Page
in the chapter Property Pages and Dialog Boxes .
The properties of the Legend View can also be set by the API property
VcGantt.VcLegendView.
3.15 Links
A link is defined by a record of the data table which contains the link data.
Link data is automatically and simultaneously generated on the generation of
nodes. Link data can be loaded from a file by API calls or can be generated
interactively by the user.
! Generating Links
At run time, you can use the mouse to draw links between two activities after
Mode: Create Link was activated in the context menu.
The link is drawn from the first layer of the predecessor activity to the first
layer of the successor activity. If a link is created interactively, the
application is notified by the OnLinkCreate event. Alternatively, you can
create links by the API method InsertLinkRecord.
! Deleting Links
You can delete a link by clicking on it using the right mouse button to pop up
the context menu and by selecting the menu item Delete. Beside, you can
delete links by the VARCHART ActiveX method DeleteLinkRecord or by
the method VcLink.DeleteLink.
! Events
You can react to the below events:
OnLinkCreate
OnLinkCreateComplete
OnLinkDelete
OnLinkDeleteComplete
OnLinkLClickCltn
OnLinkLDblClickCltn
OnLinkRClickCltn
! Specifying Links
On the Link property page you can choose whether the links are to be
displayed and you can define or modify links.
You can specify the data fields in which the identifications of the predecessor
/ successor nodes and the relation types are to be stored. If the identification
of a predecessor or successor node consists of more than one field, the
corresponding link has to match this identification. That means that
according to the ID of the respective node, a second or third field has to be
selected if necessary. The first field is displayed by default. For setting a
second or third field, click on the corresponding button and select the desired
field from the drop-down list.
! Types of Links
On the Link property page you can select a data field in the combo box
Relation type field from which the link type is to be loaded.
Link types:
FF: Finish-Finish
FS: Finish-Start
SF: Start-Finish
SS: Start-Start
The above data field allows to display the link type by the corresponding line
routing.
! Automated Layout
For the link routing a layouter is available to automatically display links in
their optimum position. It can nest elbows so that line cross-overs are
reduced to a minimum. The link routing is always unambiguous and allows
the user to clearly distinguish where a link comes from and where it leads to.
The row heights in Gantt charts automatically adapt in order to create the
required space to display all parallel horizontal link sections in a row.
Little slants are drawn in each elbow to indicate the direction into which the
link is going.
Structural changes can currently only occur while shifting nodes or groups,
since only these can be summed up and arranged in structures.
Structural changes are carried out timer-driven (see also below: Timer-
driven Live Update). OldNode and. PreviewNode are not planned.
After a structural change, the cursor is automatically scrolled under the cursor
again ( node tracking).
! Shifting of Groups
In VARCHART XGantt groups can be moved interactively within their
levels. This is done by either shifting the summary bar or the group node
vertically in the diagram or by vertically moving the respective table format
in the table. This structure modification equals a manual sorting, having no
equivalent in terms of data, hence no data are modified. After the
modification will be done, the shifted summary bar/group node or the shifted
table format respectively will be scrolled back under the cursor again
automatically, this scroll behavior being called group tracking here.
In the diagram area, a VARCHART node phantom with real presentation of
the summary bar/group node is used and in the table area a VARCHART
node phantom with real representation of the table box. The real
representation will remain unchanged since there will be no data modification
during the dragging interaction.
The user can, however, create individual update behaviors that can be
customized at will in the two dialogs shown below.
<gxgdn_diaEditUpdateBehavMyUpdateE.gif
Note: Please note that individual update behaviors for data driven objects
(nodes, links and groups) can only be assigned by API.
! At runtime
The settings are made in the following objects:
VcBox
VcCurve
VcDateLine
VcGantt
VcGroup
VcLinks
VcNode
VcNumericScale
VcTable
VcTimeScale
VcUpdateBehavior
VcUpdateBehaviorCollection
VcUpdateBehaviorContext
VcWorldView
Then capture the OnSupplyTextEntry event and specify the text that you
want to appear.
Example Code
Private Sub VcGantt1_OnSupplyTextEntry(ByVal controlIndex As _
VcGanttLib.TextEntryIndexEnum, _
TextEntry As String, _
returnStatus As Variant)
Select Case controlIndex
Case vcTXERibCW
TextEntry = "Semaine"
Case vcTXERibDay0
TextEntry = "Lundi"
Case vcTXERibMon8
TextEntry = "Septembre"
Case vcTXERibQuar2
TextEntry = "2. Quart."
End Select
End Sub
3.18 Maps
Maps are used to set certain properties in dependence on data, thus avoiding
to define large numbers of filters.
By using maps you can for example assign background colors, patterns,
pattern colors and more properties to layers in dependence on their data.
Maps consist of a list of mappings. Each mapping consists of a key and a
value. Depending of the map type, the value can be a graphics file name, a
pattern etc. The key is a possible entry in a data field. At runtime, the keys
are compared to the actual contents of the adressed data field and if they
match, the value for the adressed graphic property is applied.
If there are more than two columns, more than one value is assigned to one
key.
Example: In the map, the key "A" is assigned to the value "green". If the
map is applied and some node field contains the value "A", the color green is
assigned to this node (as background color of its layer, for instance). As a
second value, a legend text could be assigned saying "finishes in time".
So, as a basic principle, the field values are compared to the keys of the map.
If they match, the map value(s) are used.
By using filters instead of keys you can specify more complex mappings.
Basically, the concrete keys are interpreted first and only if they do not
apply, the filters are interpreted.
! Configure Mapping
The Configure Mapping dialog lets you assign a data field of a node to a
map, so that the value in the data field can be compared to the keys of the
map. Thus the desired property, in our example the background color of the
layer, is specified data- dependent. If the attribute shall not be dependent on
only one single value but on a range of values or even more complex criteria,
you can create a filter which can be selected in the Edit Map dialog instead
of a single value. This filter will then be displayed in the Configure
Mapping dialog in the list of the data field entries.
To configure a mapping, please select a node Data field at the top of the
dialog, the values of which shall be compared to the key values of the map.
From the field below, select an appropriate Map. (Only those maps are
available which match the attribute selected in the Edit Layer dialog.
Because in our example you have selected the background color, only maps
of the type "Color map" are displayed). After having selected the map, ist
contents becomes visible in the preview of the dialog. If there isn't a map to
select, please create one as described the chapter below.
! Administration of Maps
In the Administrate Maps dialog which can be invoked by clicking the
Maps button or by clicking the Maps button of the Objects property page,
you can modify the name and the type of a map by directly entering the
corresponding data fields. By clicking the corresponding buttons on the right
at the top of the window, you can also create, copy, edit or delete maps.
You can choose between different types of maps, according to whether
colors, patterns, graphic files, fonts, lengths or numbers are to be allocated to
data field contents.
! Editing Maps
To edit a map, mark it in the table and click on the button above the table.
The Edit Map dialog box will open.
Of each key (=data field entry), the table shows its corresponding values,
which, depending on the map type, in our example are the color and the
legend text assigned.
By the buttons right-hand at the top you can create, copy or delete keys (map
entries) or modify their position in the table.
If you have ticked the check box consider filter entries not only the single
values from the list of data field entries are considered as keys but also the
filters which can be selected from the drop down list. Thus you can not only
specify a single value as key but also more complex criteria.
In a map you can create 150 map entries at maximum. If you need more map
entries, please create a new map, e. g. as a copy of the one being edited.
! Example
The below example shows a layer where activities that have a map entry =
"A" are displayed in red, activities of map entry = "B" are displayed in pink,
etc. The default background color is gray. It is used for activities with no data
field entry or with a data field entry that is not defined in the map.
For further details please read the chapters "Property Pages and Dialog
Boxes".
were put consecutively in the map (pointing to the same graphics file),
always true will be stored to the data field, but never t or True.
MultiState fields only change their state if editing is allowed (see the
corresponding VcGantt properties <InPlaceEditingOnGroupsInDia-
gramEnabled, InPlaceEditingOnGroupsInTableEnabled, InPlace-
EditingOnNodesInDiagramEnabled, InPlaceEditingOnNodesIn-
TableEnabled).
To avoid the pictures to be displayed in different sizes, the height of a
graphics field should be set to a value unequal to 0 mm (see dialog Edit
table format in the VARCHART XGantt property pages).
For more information on graphics files and maps please read the chapters
The "Edit Table Format" Dialog Box and Maps in the User's Guide and
the documentation of the VcGantt property FilePath in the Reference
Manual.
! Creating Nodes
On the Nodes property page you can specify whether the user should be able
to
create new nodes by dragging the mouse (in the Mode: Create Node)
(Allow new nodes)
create new nodes by double-clicking (New nodes via double-click),
directly edit new nodes via the Edit Data dialog box (Edit new node).
If a new node is created by dragging the mouse at run time, the Create
Activity box will appear that indicates the start and end dates and the
duration of the new node.
As soon as the mouse button is released, the Edit Data dialog box will
appear, if the check box Edit new node on the Node property page was
ticked before. The box displays the data of the new node, which can be
edited. When a node is created interactively, the application is notified by the
events OnNodeCreate and OnNodeCreateCompleteEx.
Nodes can alternatively be created by the API method InsertNodeRecord.
! Deleting Nodes
To delete a node in run mode, position the cursor on the node to be deleted
and press the right mouse button. The below context menu will appear:
! Events
You can react to the following events:
OnNodeCreate
OnNodeCreateCompleteEx
OnNodeDelete
OnNodeLClick
OnNodeLDblClick
OnNodeModify
OnNodeModifyComplete
OnNodeRClick
OnNodesMarkEx
! Events
If you do not wish to have the drag&drop operation performed automatically
by the VARCHART ActiveX components, this is how you can interact with
it:
After starting the OLE Drag & Drop operation the event OLEStartDrag is
released by the source control. By this event you can add data formats to the
passed DataObject and define the permitted drop effects (i.e. copy and/or
move). After moving the object, in the target control an OLEDragOver
event will be triggered, that allows to set the drop effect to copy, shift or
prohibited.
Each OLEDragOver event in the target control will trigger an
OLEGiveFeedback event in the source control, that allows to set the mouse
cursor. If in the target control the OLEDropMode was set to Automatic, the
OLEDragDrop event will be invoked when the user drops the object. If in
the target control the OLEDropMode was set to Manual and the source and
target component are not identical, it is your job to produce a result that
corresponds to the drop effect. After the operation in the source control the
OLECompleteDrag event is triggered. In case you changed the mouse
cursor in the OLEGiveFeedback event manually you should reset it now.
Note: The source and the target control may be the same control. It is also
possible that they are controls other than VARCHART ActiveX or do not
even belong to your application at all. If you want to make sure that the
source and target controls belong to your application, you can set a format by
the DataObject method SetData. The format needs to be registered by the
Windows API call RegisterClipboardFormat before it can be used. You
can verify the existence of the format by the DataObject method GetFormat
on the OLEDragOver and OLEDragDrop event of the target control.
If you want to provide the data in several data formats and if you want to
want to avoid the effort of specifying all formats for the DataObjectnow,
you can use the key word Empty for SetData:
dataObject.SetData Empty, myClipFormat
On a request for the existence of a format using dataObject.GetFormat the
target application will answer True. A DataObject.GetData call to the
source control will trigger the OLESetData event which then allows to pass
the desired formats.
When you want to drag & drop file names, the DataObjectFiles object
becomes interesting. To drag a file name, you first have to define the file
format vbCFFiles (resp. CF_HDROP) in the OLEStartDrag event using
dataObject.SetData Empty, vbCFFiles. Now you can add files using the
DataObject.Files.Add method. To drop a file name (e.g. from the Windows
Explorer), first check the existence of the the vbCFFiles format using
DataObject.GetFormat, then read the file names e.g. DataObject.Files(i).
Operations Table
OperationDataTableName Name of the operation table
OperationMaximumInterruptionTimeFieldIndex Maximum time for which the
operation is allowed to be
interrupted while occupying a
resource
OperationLoadPerItemFieldIndex Load of resource per item
OperationOverlapQuantityFieldIndex Overlapping time with other
resources
OperationPostLoadFieldIndex Post load of the operation
OperationPreparationLoadFieldIndex Preparation load of the
operation
OperationResultPostEndDateFieldIndex Scheduled finish of the post
time
OperationResultProcessingTimeFieldIndex Scheduled processing time of
the operation
OperationResultPreparationStartDateFieldIndex Scheduled start date of the
i i
Operations Table
preparation time
OperationResultSelectedTimingResourceIDFieldIndex Determined ID of the timing
resource
OperationResultStatusFieldIndex Error or warning state
OperationRouteFieldIndex Route to which the operation
belongs
OperationSequenceNumberFieldIndex Sequence of the operation
within the route
OperationStartLockDateFieldIndex Fixed start date
OperationTaskIDFieldIndex Task, to which the operation
belongs
OperationWorkInProcessFieldIndex Degree of completion of the
operation
Resourcen Table
ResourceCalendarNameFieldIndex Name of the resource calendar
ResourceCapacityType Finite or infinite capacities for all resources
ResourceCapacityTypeFieldIndex Finite or infinite capacities for single
resources
ResourceConstraintTypeFieldIndex Condition for work and material resources
ResourceDataTableName Name of the resource table
ResourceEfficiencyFieldIndex Efficiency in %
ResourceGroupDataTableName Name of the table of group resources
ResourceGroupIDFieldIndex Group identity of the resource
ResourceNameFieldIndex Name of the resource
ResourceResultLoadCurveNamePrefix Curve to which the scheduled work load of
work and timing resources is to be stored
ResourceResultStockCurveNamePrefix Curve to which the scheduled stock of
material resources is to be stored
ResourceSelectionStrategy Selection strategy of resources
ResourceSoftConstraintStartDateFieldIndex Date of status change of a resource from
"hard" to "soft"
ResourceType Type of resource
ResultProcessingStepCount Number of scheduled tasks
Assignment Table
AssignmentDataTableName Name of the assignment table
Assignment Table
AssignmentIsResultFieldIndex Was the data record generated by
the scheduling procedure?
AssignmentIsVisibleFieldIndex Should the assignment be visible in
the chart?
AssignmentLoadOrConsumptionFieldIndex Value per item
AssignmentMaximumLoadFieldIndex Maximum work load limit
AssignmentMinimumLoadFieldIndex Minimum work load limit
AssignmentOperationIDFieldIndex Operation assigned
AssignmentResourceSelectionStrategyrFieldIndex ASAP or JIT for a single resource
AssignmentResourceIDFieldIndex Resource assigned
Link Table
LinkDataTableName Name of the link table
LinkDurationFieldIndex Minimum time offset
LinkPredecessorTaskIDFieldIndex Predecessor task of the link
LinkSuccessorTaskIDFieldIndex Successor task of the link
General Properties
BaseTimeUnit Separate time unit for resource scheduling
BaseTimeUnitsPerStep Coarse or small steps for scheduling?
DataRecordEventsEnabled Should DataRecord events be enabled?
DefaultOperationMaximumInterruptionTime Maximum duration of a unique interruption
for operations
DefaultResourceCalendarName Default calendar for scheduling
FullUsageOfPlanningUnitsEnabled Using up remaining capacities of resources
PlanningEndDate End of the scheduling time span
PlanningStartDate Beginning of the scheduling time span
PlanningStrategy Planning strategy: ASAP or JIT for all tasks
Process starting the scheduling procedure
ToleranceTimeOnASAPDueDates Allowance to the due date
ToleranceTimeOnJITReleaseDates Allowance to the release date
ToleranceTimeOnStartLockDates Allowance to a locked start date
WorkInProcessType Unit of the degree of completion
WritingDebugFilesEnabled Should debug files be written?
After having set the properties of the table, the scheduling procedure can be
started by invoking the method Process.
3.23 Schedule
The VARCHART XGantt Scheduler allows to perform simple date
calculations. The desired project start and end dates are to be passed as
parameters.
By the Schedule property page you can adapt the date calculation settings of
VARCHART XGantt to your interface by specifying the data fields that you
wish to use for input (Schedule Input) and for output (Schedule Result) of
the scheduler.
The scheduler uses data fields of the respective nodes and links tables .
The key data for calculating the dates are the durations of activities, their
logical dependencies and the project start. This data is used to calculate the
early and late start and end dates as well as the total float and the free float.
The Predecessor and Successor fields cannot be edited in the Schedule
Input table. They merely display the settings of the Links property page.
The results are stored to data fields of the interface. Available results are:
Early Start, Early Finish, Late Start, Late Finish, Total Float and Free
Float. To each of them you can assign a field from the list of fields specified
in the data definition. All of the below examples were calculated for the
project start on May 4, 2007, which you can set by the below API code:
Example Code
VcGantt1.ScheduleProject "04.05.07, 0"
In the above example, the early pair of dates and the late pair of dates are
displayed as a layer each.
There are more ways to influence the date calculations of the VARCHART
XGantt Scheduler.
1. You can set actual start/end dates. This way, the activities cannot be
moved.
2. You can specify reference dates for the Start not before and End not
later than conditions by allocating a field from the data definition to each
value in the left-hand table on the Schedule property page.
The below diagram shows the settings that were made for the example
following:
Setting the actual start of an activity will also fix the early and late dates. In
the below picture, the actual start date set is marked by a green triangle.
Using the expressions Start not before and End not later than may or may
not have an effect. In the below example, the date limits are marked by red
and green triangles. Some do not have an effect on the date calculation. The
end date restriction of the second activity entails a negative float for the two
initial activities.
3.24 Sorting
Usually, applications require activities to be sorted according to certain
criteria. Only those nodes can be sorted, that do not form part of a hierarchy,
i.e. that are base nodes or belong to a group. So you will find setting options
in places where you can set properties of group nodes and of base nodes.
When sorting nodes, it makes a difference whether nodes are arranged in
separate rows or whether several nodes are displayed in a single row.
In the center window, please tick the box Nodes in separate rows.
Alternatively, you can set this feature by the API property VcGroupLevel-
Layout.AllNodesInOneRow.
In the window below which is called Nodes you can specify three data fields
by which the activities are to be sorted when the diagram pops up. In
addition, you can select an ascending or a descending sorting order for each
of the data fields.
If the activities are grouped, sorting will apply to the nodes of each group.
Beside, the below options for defining the appearance of the node line are
available :
Selection of a Pattern
display, position and style of the Separation Line
specify after how many activities a separating line should be drawn by
entering a value in the field Separation line step size. If the activities are
grouped, the counting will be done separately for each group.
You can select a data field to which the row numbers of the activities are
stored. The row number field will not be updated until saving the data
by the Save As method.
By ticking Moving a node vertically via diagram allowed and/or
Moving a node vertically via table allowed you can enable the user to
modify the order of activities by dragging them to a different row . If an
activity is moved to a different group, its grouping code and color will
adjust to the new group. If an activity is comprises more than one layer,
the Shift key has to be pressed in addition.
Note: Please note that the settings in the Grouping dialog and on the Nodes
property page are only used to sort the data when the application is started. If
you want to sort the activities later again, please use the method SortNodes.
So an update of the sorting has to be invoked separately by this call.
You can deactivate this check box which will entail the nodes of a row being
displayed as overlapping. You can alternatively set this feature by the API
property VcGroup.NodesArrangedOptimized.
The drawing priority of the nodes you can set by the field Sort overlapping
nodes by:
In analogy to overlapping nodes, you can sort optimized nodes by the field
Sort optimized nodes by.
If you do not set a sorting priority, the nodes by default will be displayed in
the order of their date and duration, the latest and shortest ones being drawn
on top of the earlier and longer ones. The drawing priority can also be set by
the API properties VcLevelLayout.OverlaidNodesSortDataFieldIndex and
VcLevelLayout.OptimizedNodesSortDataFieldIndex.
You do not need to update the sorted nodes by a separate call, they will
update automatically. Besides, by the adjacent field Overlapping nodes sort
order you can assign an ascending or descending sort order. The sorting
direction can alternatively be set by the API properties OverlappingNodes-
SortOrder and OptimizedNodesSortOrder, respectively.
Below, some results of the setting are shown:
3.25 Table
The properties of the table can be set by three different dialogs, that can be
reached by the property page Objects and the button Table. The dialogs of
the actual table features are named Specify Table, Edit Table and Edit
Table Format. You can create several tables in the Specify Table dialog.
The table consists of six columns (default) that are only visible if they are
assigned a width greater than 0. The rows in the table are defined by table
formats. For each table format you can specify the font style, font color,
background color, alignment and margins. Each format is applied in certain
conditions:
StandardListCaption for the table header
StandardList for activities/rows.
In addition to the default table formats you can create table formats for which
you can specify names and filters individually.
Table formats for a hierarchical arrangement:
The hierarchical arrangement can be set on the property page Objects by
clicking on the button Grouping.
Hierarchy: Format for hierarchical levels when expanded; the second
field (usually the activity name) will be indented to display a lower level.
A "-" indicates that the level can be collapsed.
HierarchyCollapsed: Format for collapsed hierarchy levels. A "+"
indicates that the level can be expanded.
Picture above: The format Subtitle is displayed in the rows GroupC and
GroupB indicating a collapsed group level; the format Subtitle Collapsed is
displayed in the rows A and E, indicating an expanded group level
There is a whole range of options for designing the time scale, the sections
and the grids. For each individual object, you can specify the scales,
notations, font attributes, text alignment, colors, line thicknesses, line types,
and so on. To keep your planning well-structured, for each section you can
define grids, e.g. a day or week grid.
In the Specify Time Scale dialog you can select (Selected) a time scale for
your diagram from a set of preset timescales. The time scales offered differ
by their width of time units and by their ribbons.
! Sections
You can split the time scale into sections to highlight certain planning periods
and specify different ribbons for each section. In the Specify Time Scale
dialog you can set the Unit and the Width per unit individually for each
section. Also, you can define a separate color, a font, a 3D effect, a line grid
and a calendar grid; and you can specify whether workfree periods should be
suppressed.
When setting a line grid to a section, vertical grid lines which can be
configured are displayed.
When using a calendar grid, workfree periods are marked by colored vertical
areas.
From the Specify Time Scale dialog you can get to the Edit Time Scale
Section dialog box where you can edit the ribbons and grids of a section.
! Unit width
A unit is the basic value by which a time scale can be divided. Possible units
are: second, minute, hour and day. You can select the unit width in the
Specify Time Scale.
You can specify the width of a unit by 100ths of millimetres or you can
modify the existing value by that size. The minimum width that can be
assigned to a time unit is 0.01 mm.
! Ribbons
Ribbons serve to annotate the timescale. A section may consist of more than
one ribbon (e.g. one with a monthly and another one with a daily scale). To a
ribbon you can assign a Position, i. e. whether it is to be displayed at the top
or at the bottom of the Gantt graph and whether it is to be displayed at all.
Beside, you can specify a type, a minimum height, major and minor ticks, a
color, a pattern, a font, a date format, a unit separation, a tick position, a tick
color, an alignment, a serial annotation, a reference date, a calendar.
To compose the date you can use the following tokens:
D: first letter of the day of the week (not adjustable)
TD: Day of the Week (adjustable by using the event
)
OnSupplyTextEntry)
DD: two-digit figure for the day of the month: 01-31
DDD: first three letters of the day of the week (not adjustable)
M: first letter of the name of the month (not adjustable)
TM: name of the month (adjustable by using the event
OnSupplyTextEntry)
MM: two-digit figure for the month: 01-12
MMM: first three letters of the name of the month (not adjustable)
YY: two-digit figure for the year
YYYY: four-digit figure for the year
WW: two-digit figure for the number of the calendar week: 01-53
TW: text for "calendar week" (adjustable by using the event
OnSupplyTextEntry)
Q: one-digit figure for the quarter: 1-4
TQ: name of quarter (adjustable by using the event
OnSupplyTextEntry)
hh: two-digit figure for the hour in 24 hours format: 00-23
HH: two-digit figure for the hour in 12 hours format: 01-12
Th: Text of "o' clock" (adjustable by using the event
OnSupplyTextEntry)
TH: "am" or "pm" (adjustable by using the event OnSupplyTextEntry)
mm two-digit figure for the minute: 00-59
ss: two-digit figure for the second: 00-59
TS: short date format, as defined in the regional settings of the windows
control panel
TL: long date format, as defined in the regional settings of the windows
control panel
TT: time format, as defined in the regional settings of the windows
control panel
xC/XC: You can set a maximum ten-place, simple upward counting from a
reference date onward, for example "15:05:07:16:00", which equals
15 months, 5 days, 7 hours, 16 minutes, 0 seconds. The notation is:
xC44:C33:C22:C11:C00. In written language: Show at least 2
digits for the counters 4...0 and a preceding "-" symbol if the value
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in '\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
You can replace the predefined texts by our own texts by setting the property
TextEntrySupplyingEventEnabled to "True". Then you can react to the
following values of the ControlIndex:
vcTXERibDay0 to vcTXERibDay6 (2212 to 2218)
vcTXERibCW (2223)
vcTXERibMon0 to vcTXERibMon11 (2200 to 2211)
vcTXERibQuar0 to vcTXERibQuar2 (2219 to 2222)
Example Code
Private Sub VcGantt1_OnSupplyTextEntry(ByVal controlIndex As _
VcGanttLib.TextEntryIndexEnum, _
TextEntry As String, returnStatus As Variant)
Select Case controlIndex
Case vcTXERibCW
TextEntry = "Semaine"
Case vcTXERibDay0
TextEntry = "Lundi"
....
Case vcTXERibMon8
TextEntry = "Septembre"
Case vcTXERibQuar2
TextEntry = "3. Trimestre"
End Select
End Sub
3.28 Unicode
To display Unicode characters on the property pages at design time, an
appropriate font has to be set by following the menu of the operating system
through Start / Settings / Control Panel / Display / Appearance to the
Window field.
Besides, only those characters can be displayed that belong to the language
set by the menu items Start / Settings / Control Panel / Regional and
Language options .
All objects in a VARCHART component which contain texts can display
Unicode characters if an appropriate font was set in the corresponding
property Font.
A Unicode font can be assigned to context menus, tooltips and run time
dialogs by the property DialogFont of the DummyObject object.
You will find an overview of all available fonts, which contain at least part of
all unicode characters in "Wazu Japa's Gallery of Unicode Fonts" (http://
www.wazu.jp/index.html). Detailed information on the Unicode standard is
also offered on the homepage of the Unicode Consortium (http://
www.unicode.org) and on Microsoft's GlobalDev Homepage (http://
www.microsoft.com / globaldev / getwr / steps / wrg_unicode.mspx). In
Windows 2000 and XP you can find out about the characters contained in
the built-in fonts under Start / Programs / Accessories / System Tools /
Character Map.
When importing CSV files, the method VcGantt.Load automatically
recognizes whether there is a Unicode or an ANSI file.
Note: The development environments of Visual Studio 6 are not able to use
Unicode characters in source code files. Internally however, the strings of
VB6 are displayed in Unicode. If you use Visual C++ combined with MFC
you have to set the Defines_UNICODE and UNICODE to use strings in
Unicode. The version Visual Studio .NET 2002 and later versions allow to
edit source code files in Unicode coding. When saving a file, you need to
select the coding type "Unicode".
At runtime, you can switch on and off the world view in the default context
menu by the menu item Show world view.
On the Additional Views property page you can specify the properties of the
World View. For details please see The Additional Views Poperty Page in
the chapter Property Pages and Dialog Boxes.
The properties of the World View can also be specified by the API property
VcGantt.VcWorldView.
More information about the functions of property pages and dialog boxes you
can obtain by either clicking on the Help button or by pressing the F1 key of
your keyboard. This will open the corresponding online help file.
On this property page you can enter general settings of VARCHART XGantt.
Project start
In this field you can set the default start to the time scale. At runtime, you can
adapt the start value to the current data by the property TimeScaleStart and
both, the start and end value by the method OptimizeTimeScaleStartEnd.
The date format is "DD.MM.YYYY;hh:mm:ss;".
Project end
In this field you can set the default end to the time scale. At runtime, you can
adapt the end value to the current data by the property TimeScaleStart and
both, the start and end value by the method OptimizeTimeScaleStart-
End.The date format is "DD.MM.YYYY;hh:mm:ss;". The date format is
"DD.MM.YYYY;hh:mm:ss;".
Note: The specified day of the end date is not included. If you set
TimeScaleEnd = "31.12.2011" for example, the last day displayed will be
the 30.12.2011.
Time unit
The value entered here will be used to calculate the duration (see Chapter
"Important Terms: Layer") and for interactive modification and moving of
nodes in the diagram.
Example: If you select the time unit "Days", nodes can only be moved by as
many days as specified in the field Smallest time interval.
This feature can also be set by the property VcGantt.timeUnit.
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in ''\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
Configuration file
In this field the configuration file is displayed. By the Browse button you can
browse for a different file.
The configuration file serves to export the current configuration or to import
a stored configuration.
Export: The entry in the field configuration file specifies the name of a file
to which the current settings are stored. Enter a file name that does not yet
exist and click on the Apply button. The INI file will be generated and linked
to the VARCHART ActiveX instance. All modifications in the property
pages will be stored to the file.
Import: The entry in the field configuration file specifies the name of a file
from which the current settings are loaded. If you enter an existing file name
and click on the Apply button, the file will be loaded and linked to the
VARCHART ActiveX instance. The current modifications in the property
pages will be lost.
The settings of the configuration file are loaded only for once. The
VARCHART ActiveX control will not read them for a second time from the
same file. Instead, the settings will be loaded from internal storings, that are
the same as the ones in the configuration file.
So modifying the data of the configuration file from outside will not be
effective. If you do want the VARCHART ActiveX control to accept a
modified configuration file, you need to rename it and import the renamed
file.
When clicking on a node not only the table row and the corresponding node
in the diagram will be marked but you can also directly enter data into a table
field.
Please take notice of the following:
When clicking in the diagram, the first field of the corresponding table line
will be marked and will be ready for editing, no matter which field was
marked before. By clicking on a different node, the marking will move
accordingly and the first field of the corresponding line will be marked.
When clicking in the table area, the field hit will be edited.
For both procedures the following is valid:
You can move the marking by the arrow keys up/down or by the ENTER key
and thus mark the previous/next line. If in the table area a field different to
the first one should have been marked before, a corresponding selection will
appear in the newly marked line. In an already marked table line, the arrow
keys right/left will move the marking to the next/previous field, respectively.
Note: By pressing the ESC key, all markings will be undone.
Modify field contents
To modify the contents of a table field you can either click on the field once
more or press the F2 key.
There are some data types however which do not require this any more. You
can modify date and time fields by clicking on the arrow button. For more
information about the usage of the date dialog box please see chapter 4.40
The "Specify Date Lines" Dialog.
The value of numeric data fields may be increased or decreased by clicking
on the corresponding arrow buttons.
Note: By pressing the ESC key you can leave the edited fields without saving
the modifications.
Insert new table lines
By the INS key you can insert a new row above the current one. If now row
was marked, the new line is inserted at the end of the table.
OnToolTipText events
Tick this option if the event OnToolTipText is to be activated. The event lets
you set the text strings to be displayed as tooltip texts with objects.
This feature can also be set by the property VcGantt.ShowToolTip.
Scroll events
By ticking this box, you can enable or disable the scroll events. This feature
can also be set by the VcGantt.ScrollEventsEnabled property.
Note: The scroll events are disabled by default.
OnSupplyTextEntry events
By ticking this box you can trigger the OnSupplyTextEntry event. The
event lets you modify the texts of context menus, dialog boxes and error
messages that appear during run time, for example to translate them into
different languages.
This feature can also be set by the property VcGantt.EnableSupplyText-
EntryEvent.
of straight lines. This feature can also be set at run time by the VcGantt
property RoundedLinkSlantsEnabled .
Licensing
By this button you can get to the Licensing dialog box. For more information
see chapter The "Licensing" Dialog
Possible positions
There are three areas above and six areas below the diagram which you can
utilise for texts, graphics or a legend. These areas are displayed only in the
print preview and in the print output. Click on one of the buttons
above/below the diagram to reach the Specification of texts, graphics and
legend dialog box.
Data table
Select the data table to be used for the visualisation of the nodes.
This feature can also be set by the property VcGantt.NodesDataTable-
Name.
Duration field
Please select a data field to store the duration of an interactively created
nodes. Only numeric data fields are available.
This feature can also be set by the property VcGantt.NodeDurationData-
FieldIndex.
Filters
This button lets you open the Administer Filters dialog box. The filter
which serves for preselecting the nodes can only be set at runtime by the
property ActiveNodeFilter of the object VcGantt.
Drag mode
By this property you can set or retrieve, whether dragging a node beyond the
limits of the VARCHART XGantt control should be allowed.
If you select Manual you need to invoke the method OLEDrag to trigger
dragging the node.
If you select Automatic, dragging a node beyond the control limits will
be started automatically.
On the start of dragging, the source component will fill the DataObject with
the data that it contains and will set the effects parameter before initiating the
OLEStartDrag event, as well as other source-level OLE Drag & Drop events.
This gives you control over the drag/drop operation and allows you to
intercede by adding other data formats.
VARCHART XGantt by default uses the clipboard format CF_TEXT
(corresponding to the vbCFText format in Visual Basic), that can be retrieved
easily.
During dragging, the user can decide whether to shift or to copy the object by
using the Ctrl key.
OLE drag & drop operations in VARCHART XGantt are compatible to the
ones in Visual Basic. Methods, properties and events have identical names
and meanings as the default objects of Visual Basic.
This feature can also be set by the property VcGantt.OLEDragMode.
Drop mode
By this property you can set or retrieve, whether a node from a different
VARCHART XGantt control can be dropped to the present control.
Dropping will not be allowed if you select None.
If you select Manual, you will receive the event OLEDragDrop that
enables you to process the data received by the object dropped, e.g. to
generate a node or to read a file. If the source and the target component
are identical, you will receive either the event OnNodeModifyEx or
OnNodeCreate as with OLE Drag&Drop switched off.
If you select Automatic, the dropping will automatically be processed by
the control, generating a node in the place of the dropping, if possible.
This feature can also be set by the property VcGantt.OLEDropMode.
Show phantom
This property lets you disable the display of an OLE drag phantom. Disabling
the phantom is useful if generating a new object is omitted but merely the
attributes of the object in the target control are modified.
On this property page you can set the properties of the "world view" and the
legend view.
Both views are additional small windows.
The world view displays the diagram completely. Two frames in it indicate
the sections actually displayed in the main window. One of them shows the
section in the Gantt Graph, the other one shows the histogram section.
The legend view lets you display a legend.
At run time, you can switch on or off both views in the default context menu
by clicking Show world view or Show legend view respectively. You can
alternatively use the Close button of the title bar to switch off either view.
The description of the possible settings which you find below, is valid for
both views, if not stated otherwise.
Initially visible
Activate this check box if the view is to be visible when the program is
started.
This property can also be set by the API calls VcWorldView.Visible and
VcLegendView.Visible
Mode
Select the view mode. The below options are available:
Left fixed: The view is displayed on the left side of the VARCHART
ActiveX control window. Only the width can be set, whereas the position
and the height are fixed.
Right fixed: The view is displayed on the right side of the VARCHART
ActiveX control window. Only the width can be set, whereas the position
and the height are fixed.
Top fixed: The view is displayed on the top of the VARCHART ActiveX
control window. Only the height can be set, whereas the position and the
width are fixed.
Bottom fixed: The view is displayed on the bottom of the VARCHART
ActiveX control window. Only the height can be set, whereas the position
and the width are fixed.
Position not fixed: The view is a child window of the current parent
window of the VARCHART ActiveX. It can be positioned at any position
Border frame
Not active if the mode Popup window was selected. Activate this check box if
the view should have a frame of black color.
This property can also be set by the API calls VcWorldView.Border and
VcLegendView.Border
Left
Only active if the mode Position not fixed or Popup window was selected.
Select the left position of the view. There are two options:
1. Specify a Pixel coordinate value. Note that this is a system coordinate.
2. Select the Initially automatic calculation option.
This property can also be set by the API calls VcWorldView.Left and
VcLegendView.Left
Top
Only active if the mode Position not fixed or Popup window has been
selected. Select the top position of the view. There are two possibilities:
1. Specify a Pixel coordinate value. Note that this is a system coordinate.
2. Select the Initially automatic calculation option.
This property can also be set by the API calls VcWorldView.Top and
VcLegendView.Top
Width
Not active if the mode Top fixed/Bottom fixed was selected. Select the
horizontal extension of the view. Note that the pixel coordinate is a system
(device) coordinate.
This property can also be set by the API calls VcWorldView.Width and
VcLegendView.Width
Height
Not active if the mode Left fixed/Right fixed was selected. Select the vertical
extension of the view. Note that the pixel coordinate is a system (device)
coordinate.
This property can also be set by the API calls VcWorldView.Height and
VcLegendView.Height
On this property page you can establish and modify the layout of the chart.
Initial number
Specify the minimum number of node rows to be displayed in the diagram
area on the start of the program.
This feature can also be set by the property VcGantt.NoOfInitialRows.
Minimum height
Set the minimum height of the node rows (unit: 1/100 mm). The values
permitted range between 2 and 1000.
The minimum row height only becomes effective if there is no activity in the
row or if existing activities do not exceed the minimum row height. In all
other cases the row height automatically adapts to the space required by the
activities.
This feature can also be set by the property VcGantt.MinimumRowHeight.
Margins
Set the minimum vertical spacing between the node and the upper/lower node
row border (unit: 1/100 mm). This property can also be set at run time by the
Sub margins
This property lets you set or retrieve the vertical width between the sub rows.
The sub rows only exist if groups are optimized and nodes of this group are
arranged in several sub rows to prevent them from overlapping.
This feature can also be set by the property VcGantt.SubRowMargins.
Chart areas
Specify the section of the diagram (chart area) to be displayed:
Gantt graph only
Gantt graph and histogram
Histogram only.
Administer histograms
The Administer Histograms dialog will appear.
Scroll bars
By these options you can set the horizontal and vertical scroll bars. For the
horizontal scroll bar, you can choose between the below options:
1. Gantt graph (on), histogram (off) - the horizontal scroll bar is located
between the Gantt graph and the histogram
2. Gantt graph (off), histogram (on) - the horizontal scroll bar is located
below the histogram
3. None - there is no horizontal scroll bar.
For the vertical scroll bar, you can choose between the below options:
1. Automatically (but 'on' with histogram) - a vertical scroll bar will be
switched on right of Gantt graph if required; another one is always on
right of the histogram.
2. on - both, the vertical scroll bar right of the Gantt graph and the one right
of the histogram are switched on
3. off - both vertical scroll bars are switched off.
Data tables
Opens the dialog Administrate Data Tables.
Filters
This button lets you open the Administrate Filters dialog box.
Maps
This button will open the dialog Administrate Maps.
Calendars
Opens the dialog Specify Calendars.
Calendar profiles
Opens the dialog Administrate Calendar Profiles.
Grouping
Opens the dialog Grouping.
Update behaviors
Opens the dialog Administrate update behaviors.
Layers
Opens the Specify Bar Appearance dialog box.
Tables
Opens the Specify Table dialog box.
Time scales
Opens the Specify Time Scale dialog box.
Boxes
Opens the dialog Administrate Boxes.
Box formats
Opens the dialog Administrate Box Formats.
Date lines
Opens the Specify Date Lines dialog box.
Line formats
This button lets you open the dialog Administrate Line Formats.
Link appearances
Opens the dialog Link appearances.
This property page lets you display links between nodes and establish and
modify the appearance of the links.
Show Links
This check box lets you specify whether links and phantom lines representing
the links while dragging are to be displayed. This feature can be also set by
the API property VcLinkAppearance.Visible - but only for the links, not
for the lines.
Data table
Select a data table which contains the fields of the links. This feature can also
be set by the property VcGantt.LinksDataTableName.
Predecessor field
This field lets you select a data field from the Relations table that the
identification of the predecessor node of the link is stored to. This feature can
also be set by the property VcGantt.LinkPredecessorDataFieldIndex. This
property is an indexed property, which in C# is addressed by the methods
set_LinkPredecessorDataFieldIndex (identifierIndex, pvn) and get_Link-
PredecessorDataFieldIndex (identifierIndex).
Successor field
This field lets you set the data field or fields from the afore selected data
table that the identification of the successor node of the link is/are stored to.
This feature can also be set by the property VcGantt.LinkSuccessorData-
FieldIndex. The property is an indexed property, which in C# is addressed
by the methods set_LinkSuccessorDataFieldIndex (identifierIndex, pvn) and
get_LinkSuccessorDataFieldIndex (identifierIndex).
By using this property page you can adapt the date calculation settings of
VARCHART XGantt to your interface by specifying the data fields that you
wish to use for the input (Schedule Input) and the output (Schedule Result)
of the scheduler. (See "Important Terms: Scheduling".)
Autoschedule
If this option is activated, the duration of the depending dates will be
recalculated automatically when a link is created or deleted or an when
activity is modified.
Schedule Input
Please select for each entry of the column the field from which its contents is
to be loaded. The scheduler uses data fields of the respective nodes and links
tables. The calculations of the scheduler are based on the project start, the
duration of the activities and their logic dependence. The fields Predecessor
and Successor cannot be edited by the Schedule Input table. They merely
display the settings on the Links property page.
Schedule Result
Specify for each result to which field it should be stored. The scheduler only
outputs to data fields from the Maindata table. The early/late start and end
dates plus the total float and free float are calculated from the duration of the
activities, the logical dependencies and the project start.
Click on the corresponding button on the Objects property page to open this
dialog. Here you can create, copy, delete and shift individual update
behaviors.
This dialog can be reached from the <!Administrate Update Behaviors dialog
and allows to switch update modes or to modify
Delay time
Here you can set the delay time after which the modified objects of the live
update visually are to appear while the mouse cursor is moving.
Setting this property is only possible if the Update Mode was set to
OnPauseWhileMouseMoving
Update mode
Here you can select a cursor action on which the live update is to take place.
This is only possible if you are editing an individually created update
behavior created.
Name
Lists the names of all tables and relating functions that are affected by the
live update. The names can not be edited.
You can get to this dialog via the property page Objects. This dialog lets you
create and edit data tables and their data fields.
Data tables
Name: Lists the names of all existing data tables. The names can be
edited.
Status: In the Status column each data table that has been added ( )
and/or modified ( ) since the dialog box was opened is marked by a
symbol.
Multiple primary keys allowed: Here you can define whether the
primary key for your table consists of one or more (maximum 3 fields.
As soon as you have checked the box Multiple primary keys allowed
you can select up to three data fields for the primary key in the Data
table fields section. The box Multiple primary keys allowed can only
be unchecked if no more than one field is selected as primary key in the
Data table fields section.
Description: Here you can describe the data table.
Layer
In the list below, you can define a layer per line.
Preview
Layers marked by a small arrowhead in the Preview column are displayed in
the preview window in the lower half of the dialog.
A green arrowhead marks the layer on which the cursor is currently
positioned. It is displayed in the preview window.
If you click on a layer in the Preview column, a red arrowhead will occur and
indicate that the layer and its current settings are displayed in the preview
window.
Name
This column lists the names of the layers that were defined. The names can
be edited.
Status
In this column layers that were added ( ) or modified ( ) after the dialog
box was opened, are marked by a symbol.
Layer design
This column displays graphical representations of the layers. To modify the
design of a layer, click on the Edit layer button in the top right corner of the
dialog, or double-click on the desired Layer design field to get to the Edit
Layer dialog box where you can define the graphical attributes and edit the
annotation of the layer.
Overlap layer
In the mode All nodes in one row, with the option optimized switched off,
layers may overlap and therefore may hide each other. You can indicate the
hidden section by a small overlap layer, that appears below the hidden
section and increases or decreases with its size. Only one layer in the list can
be an overlap layer. No filter can be applied to it.
Filter
A filter linked to a layer selects the activities that are represented by the layer.
To assign a filter to a layer, click on the Filter field. Two buttons will appear:
This button lets you open the list of available filters to be selected.
Alternatively, you can click on the Edit button to get to the Administer
Filters dialog box where you can edit, copy, define or delete a filter.
Existing examples of filters: "Standard", "Critical", "Milestone". The chosen
filter stipulates the criterium that an activity must fulfil in order to make the
layer appear. For example, if you choose the filter Critical for a layer named
Early, the Early layer will only be displayed for critical activities.
Offset (vertical)
The vertical offset (displacement of the horizontal center line) is specified in
millimeters. Positive values will entail an upward offset, negative values will
cause the offset to extend downward.
When clicking in the Offset (vertical) field of a layer, two buttons will
appear with an arrow pointing upwards and downwards to increase or
decrease the vertical offset of the selected layer.
Beside, this button will appear which can take you to the Configure
Mapping dialog box. Here you can set data-dependent vertical offsets.
After finishing the mapping, the arrow on the button will appear bold.
Offset (horizontal)
(For symbol layers only) When clicking on the Offset (horizontal) field of a
symbol layer, two buttons will appear with an arrow pointing upwards and
downwards. You can use the buttons to increase or decrease the horizontal
offset (displacement of the layer date) by steps of 1%, the total range
extending from -50 to +50 %.
Visible
Untick this box if you want the layer to be invisible. You can use this feature
to hide a layer without deleting it.
Visible in legend
Check this box if you want the layer to be displayed in the legend.
ObjectDraw events
Tick this box to enable the events OnObjectDraw and
OnObjectDrawComplete for nodes in which this layer is used.
Legend text
In this field you can enter a legend text for the layer.
Add layer
This button creates a new layer.
Copy layer
This button copies the marked layer.
Delete layer
This button deletes the selected layer.
Edit layer
This button opens the Edit Layer dialog box.
Promote/Demote layer
If a node comprises more than one layer, the layers are stacked on top of each
other. The top layer in the list will be drawn first. So, the lower the position
of a layer in the list, the more layers it superimposes, i.e. the order of the
layers in the list is the order by which they are drawn in the diagram.
The selected layer will be moved upward by one position in the list,
which is equivalent to one position towards the background of the diagram.
The layer at the top of the list is superimposed by all other layers.
The selected layer will be moved by one position downward in the list,
which ist equivalent to one position towards the foreground of the diagram.
The layer at the bottom of the list superimposes all other layers.
Preview window
The preview window displays the layers that are marked in the preview
column, including their overlaps caused by the drawing priority and by
offsets.
You can get to this dialog box by clicking on the corresponding button in the
Specify Bar Appearance dialog. The name of the layer edited is displayed in
the head line.
Shape
Select from the list a shape for the layer. You can choose between:
Bitmap layer: you can browse for a bitmap file in the Graphics file
field.)
Invisible symbol: only the layer annotation will be visible. The layer also
will not be displayed in the legend.
Rectangle layer
Wedge-shaped layer: wedge ascending or descending
Line layer
Various types of symbol layers.
Rectangle, wedge-shaped and line layers are used to show timespans. Wedge-
shaped layers are useful for visualising increasing and decreasing activities,
e. g. during the project start or end. Symbol layers are used to show specific
points in time.
Duration
The unit of the duration will be interpreted in dependency on the time unit
specified on the General property page. From the list, select the data field
that contains the duration of the selected layer.
Percent complete
(not activated for symbol and bitmap layers) If you want the current layer to
display the percentage degree of completion of an activity, select the data
field that contains the percentage degree of completion of the selected layer.
The end date visualized by the layer is calculated from the start date field, the
end date field (or the duration), and the degree-of-completion value. The data
of the activity will not be changed.
Graphics file
(only activated, if for Shape the option <Bitmap layer> was specified) Select
a graphics file to visualize the layer.
Relative path names are also allowed. If a relative file name was specified,
the file at run time will be searched first in the path set by the VARCHART
ActiveX property FilePath. If it cannot be found there, the file will be
searched in the active working directory of the application and in the
installation directory of the VARCHART XGantt.
Click on this button to open the Select graphics file dialog box.
By this button you can get to the Configure Mapping dialog box where
you can map the graphics file. If a file was mapped, the arrow on the button
will appear solid ( ).
The color of the pixel in the top left corner of the graphics file will be
replaced by the diagram color, i. e. this color will appear transparent.
Height
Here you can define the height of the layer in millimetres either by directly
entering the desired value into the field or by clicking on either of the two
arrows pointing upwards and downwards.
By clicking on this button you reach the Configure Mapping dialog box.
It allows to assign heights to layers data-dependent.
If a mapping has been configured, the arrow on the button will appear
solid.
Line type
The line type of the layer frame is displayed here. To modify it, click on the
Edit button ( ) to open the Line Attributes dialog box.
Pattern
This field indicates the default layer pattern.
You can open the list of patterns by clicking on the arrow button and
select a pattern for the layer.
By the double arrow button you can get to the Configure Mapping
dialog box. It allows to assign patterns to layers in dependence on data.
If patterns were mapped, the arrow on the button will appear solid.
Please note:If the background color of a field of a node format which was
assigned to the node appearance was not set to transparent, the selected
pattern will not show through!
Pattern color
This field lets you select the default color for the layer pattern.
By the arrow button you can open the color picker to select a color. Also
transparent colors are available.
By the souble-arrow button you you can get to the Configure Mapping
dialog box. It allows to assign colors to patterns in dependence on data.
If colors were mapped, the arrow on the button will appear solid.
Please note:If the background color of a field of a node format which was
assigned to the node appearance was not set to transparent, the selected
pattern will not show through!
3D-Effect
Decide whether or not the layer should be given a 3-dimensional perspective.
Changeable
Specify whether the user should be able to move the whole layer or the start
and/or the end of the layer by the mouse.
You can enable/disable three options for the user:
1. The layer start is moveable.
2. The whole layer (i.e. the start and end of the layer together) can be
moved.
3. The layer end is moveable.
If the button icons appear pressed, they indicate that the corresponding option
twas enabled to the user.
Format
Opens the Edit Layer Format dialog.
Earliest start
Date and time of the selected field are considered the lower limit for the start
time of the layer when interactively moving the layer or the node.
This feature can also be set by the property VcLayer.MinimumStartData-
FieldIndex.
Latest end
Date and time of the selected field are considered the upper limit for the end
time of the layer when interactively moving the layer or the node.
Preview
In the preview window the layer is displayed with its current settings.
In the preview, bar layers always will be interrupted by a solid line. This line
shows how the layer will be displayed at run time, if workfree intervals are
highlighted and if a calendar is assigned to the nodes. (These settings are
made on the Nodes property page. Please note that they do not influence how
the layer is displayed in the preview window of the Edit Layer dialog.)
You can get to this dialog box by the Format button of the Edit Layer
dialog box.
Type
The field type (text) is displayed here.
Data field
Select the data field whose content is to be displayed in the current field.
Additionally to the data fields defined in the data definition table, you can
select the entry <Row number>: Then the number of the row containing the
layer is displayed.
If the content of a data field does not fit into the current field, the excess will
be cropped in the diagram.
Constant Text
(only if no data field has been specified) Type a constant text to be displayed
in the current field.
Width
Specify the width for the selected field (in mm). The maximum width of a
field is 90 mm:
Note:Only editable if Text width/height definable was selected in the dialog
Edit Layer.
Line Count
Specify the number of lines of text that can be displayed in the current field.
Note:Only editable if Text width/height definable was selected in the dialog
Edit Layer.
For outside fields of a layer only: You can set the number of text lines
dynamically, i.e. in dependence of the length of the text string. For this, two
options exist:
1. You can have the number of lines calculated directly, store the results to a
field and use them here
2. You can put down the number of lines in a map and assign it here
Case 1: You can have the number of lines calulated by the method
VcLayerFormatField.CalculateLineCount(...) and store the results to a
field. The field can be assigned by the Configure mapping dialog, which is
to be invoked by pressing the right button that shows a double-headed arrow
in the field Line Count:
In the dialog popping up, please select a data field from the top selection box
and leave the map selection box below empty.
Case 2: For using a map, the map needs to be created and filled before it can
be assigned; beside, the map type vcNumberMap is to be used. In a map of
that type numbers are allocated to character strings. If the character strings
put down here are found in a data field (still to be designated), the allocated
number of lines will be displayed. Maps can be generated by the property
page Objects and the button Maps.... In the Configure mapping dialog you
can select a data field and a map, thus designating the data field the content
of which is to be compared to the character strings of the map. You can view
the content of the selected map in the dialog and modify it in continuative
dialogs.
Alignment
Specify the alignment of the content of the selected field (left, centered,
right).
Priority
Specify the priority of the layer field. Priority values between -9 and +9 are
possible. If the total width of the layer is too small to show the contents of
each layer field, the priority determinates of which layer field the content is
displayed. At first, the content of the field with the highest priority is
displayed completely, if possible. Then the contents of fields with smaller
priorities is displayed. If it is not possible to display the content of a field, it
will be suppressed or cropped (depending on the setting in Suppress
truncated text).
Font Color
Indicates the font color for the current field. If you click on the field, two
buttons will appear:
by the arrow button you can open the Color picker to select a font color.
by the second button you reach the Configure Mapping dialog box. Here
you can configure data-dependent font colors. If a mapping has been
configured, the arrow on the button will be displayed in bold ( ).
Font
Indicates the font style for the current field. If you click on the field, two
buttons will appear:
The Windows Font dialog box will appear.
by the second button you reach the Configure Mapping dialog box. Here
you can configure data-dependent fonts. If a mapping has been configured,
the arrow on the button will be displayed in bold ( ).
Preview
The current fields are displayed in the preview window. If you click on a
field, you can modify its attributes in the Fields table.
With the help of the buttons above the preview window you
can add new fields or delete the marked field. If you want to add new fields
outside of the layer, press the Ctrl button. You also can use the Del button to
delete fields.
Name
Lists the names of all existing filters. The names can be edited.
Status
In the Status column all filters added ( ) or modified ( ) after the dialog
box was opened are marked by a symbol.
Add filter
A new filter is created. You can modify its default name by double-
clicking and editing it. New filters are created in a context-sensitive way, i. e.
the matching data definition table will be used automatically.
Copy filter
Copies the selected filter.
Delete filter
The marked filter in the list will be deleted. You can only delete filters
that are not currently used.
Edit filter
Press the Edit filter button to view or modify the condition of a filter.
The Edit Filter dialog box will appear where you can edit the condition of
the corresponding filter.
Add subcondition
Inserts a new line for a subcondition above the selected line.
Copy subcondition
Copies the selected subcondition.
Delete subcondition
Deletes the selected subcondition.
Fieldname
This list contains all data fields available to be compared with the comparison
value as well as the following predefined entries:
The <summary bar level> entry can be used for displaying summary bars
in Gantt diagrams. For example, specify a filter "<summary level>
greater or equal 1" and assign it to a layer (e.g. "Summary level 1") in
order to display summary bars for level 1. Please note that the option
Summary bars in the Edit Grouping dialog has to be activated.
Filters containing the <grouping level> entry can be used for example in
the Edit Table dialog (for Gantt diagrams) as row filters for basic rows.
<Gantt: collapsed>: entry for collapsed groups
<Gantt: nodes in separate rows>: entry for displaying all nodes in
separate rows
<Gantt: nodes overlaid>: entry for displaying nodes overlaid, if necessary
<Gantt: row>: entry to define filters for special rows
<Gantt: summary node>: entry for summary bars
<Node Read Only>: entry for defining filters for nodes that are defined as
read only.
This feature can also be set at run time by the VcFilterSubCondition property
DataFieldIndex.
Operator
The operator compares the value of a data field with a comparison value.
Comparison value
This column shows the current comparison value. The Comparison value
select box lists all fields (in square brackets) that can be used as comparison
values. The type of the data fields offered as comparison values correspond
to the data type of the data field specified in the Fieldname column. For
example, if the data field "Early Start" is specified in the Fieldname column,
for the comparison value you can select either a date field (e. g. "Early End")
or the <today> option or the <input> option.
With the help of the <input> option you can specify a variable filter. In
variable filters only the field name and the operator are specified, but not the
comparison value. You can specify the comparison value when necessary.
You can use a variable filter when you open a project and want to select the
activities to be displayed.
Dates need to be entered in the format defined on the General property page.
If you have selected a date field in the Fieldname field, two arrow buttons
will appear as soon as you click on this field. The first arrow button lets you
open a combobox with all available date data fields. The other arrow button
opens a Date dialog box from which you can select a date by mouse-click.
You can also edit the date direct.
Numeric values or texts must be typed manually into the Comparison value
field.
With the operators "equal" and "unequal" you can use wildcards in text
fields:
*: no sign or any number of signs
?: exactly one sign
If you do not want to use the signs * or ? as wildcards, but want to search for
these signs, you have to set a backslash in front of them:
\*: *
\?: ?
If the backslash does not follow a * or ?, the program searches for the sign \.
Examples:
Activity 1 : Name = "Construction"
Activity 2 : Name = "*Construction"
Possible filters for activity 1:
[Name] = C*
[Name] = C?nstruction
Possible filters for activity 2:
[Name] = \*C*
[Name] = \**
[Name] = ?C*
And/Or
This column shows the logical connection of two subconditions in the table.
Choose the AND operator to connect the current subcondition and the next
subcondition in the table to select only those objects that fulfil both
subconditions. Choose the OR operator to select those objects that fulfil at
least one of the subconditions.
If you have formulated several subconditions, linking them partly with AND
and partly with OR, the AND links will be processed first. (AND links are
stronger than OR links).
Compare hour/min
Activate this check box if the hours and minutes of a date are to be
considered when dates are compared.
Case sensitive
Activate this check box if the comparison of the entries is to be case-
sensitive.
Preview
In this column a red triangle marks the line format which is displayed in the
preview below.
Name
Lists the names of all existing line formats. The names can be edited.
Status
In the Status column each filter that has been added ( ) and/or modified
( ) since the dialog box was opened is marked by a symbol.
Type
The field type (text) is displayed here.
Data field
Select the data field whose content is to be used as line grid annotation. In
addition to the data fields defined in the data definition, you can select the
entries <Date> or <Group title>: The current date or the group title (if
grouping is switched on) is displayed.
If the content of a data field does not fit into the current field, the excess will
be cropped in the diagram.
Constant Text
(only if no data field has been specified) Type a constant text to be displayed
in the current field.
Line Count
Specify the number of lines of text that can be displayed in the current field.
Alignment
Specify the alignment of the content of the selected field (left, centered,
right).
Date format
If you have selected <Date> as data field for the annotations, you can specify
the date format here. To compose the date you can use the following tokens:
D: first letter of the day of the week (not adjustable)
TD: Day of the Week (adjustable by using the event
OnSupplyTextEntry)
DD: two-digit figure for the day of the month: 01-31
DDD: first three letters of the day of the week (not adjustable)
M: first letter of the name of the month (not adjustable)
TM: name of the month (adjustable by using the event
OnSupplyTextEntry)
MM: two-digit figure for the month: 01-12
MMM: first three letters of the name of the month (not adjustable)
YY: two-digit figure for the year
YYYY: four-digit figure for the year
WW: two-digit figure for the number of the calendar week: 01-53
TW: text for "calendar week" (adjustable by using the event
OnSupplyTextEntry)
Q: one-digit figure for the quarter: 1-4
TQ: name of quarter (adjustable by using the event
OnSupplyTextEntry)
hh: two-digit figure for the hour in 24 hours format: 00-23
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in '\'. The special
characters: ':, /, -' and blank don't need '\' as prefix
Pattern
Here you can select the fill pattern and colors for the current field. By
clicking on you open the Edit pattern attributes dialog where you can
specify a pattern, a background color and, if needed, a second pattern color
by clicking on . You can define your own colors in addition to the ones
suggested. Transparent colors are also available.
By clicking on you open the Configure Mapping dialog box. Here you
can configure data-dependent patterns and colors. If a mapping has been
configured, the arrow on the button will be displayed in bold ( ).
Font Color
Indicates the font color for the current field. If you click on the field, two
buttons will appear:
by the arrow button you can open the Color picker to select a font color.
by the second button you reach the Configure Mapping dialog box. Here
you can configure data-dependent font colors. If a mapping has been
configured, the arrow on the button will be displayed in bold ( ).
Font
Indicates the current font style. If you click on the field, two buttons will
appear:
The Windows Font dialog box will appear.
by the second button you reach the Configure Mapping dialog box. Here
you can configure data-dependent fonts. If a mapping has been configured,
the arrow on the button will be displayed in bold ( ).
Preview
The current annotations are displayed in the preview window.
With the help of the buttons above the preview window you
can add new fields or delete the marked field. You also can use the Del
button to delete fields.
In this dialog you can set options to hierarchical and grouping arrangements
of nodes, sorting of nodes and to the layout of these structures.
The dialog shows three different sections: Hierarchy, Groupwise and
Nodes, where you can set the corresponding options.
On
The grouping of nodes either in the form of a hierarchy (according to a
hierarchy code) or in the form of grouping according to different criteria is
switched on or off.
! Hierarchy
If you activate this radio button, the activities will be arranged in a hierarchy,
according to a hierarchy code. In the code, hierarchy levels are separated by
dots. If you select this option, the section Groupwise automatically will
become inactive.
In the table below the Hierarchy button you can make further settings
concerning the hierarchical arrangement.
Group By
Select the data field which contains the code by which the activities are
arranged.
Separation line
By clicking on you can open the dialog Line attributes and specify the
style of the separation lines.
The line attributes can be also set by the corresponding properties
VcHierarchyLevelLayout.SeparationLineColor, VcHierarchyLevel-
Layout.SeparationLineThickness and VcHierarchyLevelLayout.-
SeparationLineType.
Groups collapsed
If you select this option, the 2nd and all further levels will be displayed in-
itially collapsed when the program is started. They can be expanded
interactively.
Summary Bar
If you tick this box, summary bars will be displayed for all levels. If you
want to display summary bars only for special levels, you have to define a
layer with an appropriate filter condition (<Sum bar level = ...).
This feature can also be set by the property VcHierarchyLevelLayout.-
SummaryBarsVisible.
! Groupwise
If you activate this radio button, the activities will be arranged in groups
(grouped by different criteria) and the section Hierarchy automatically will
become inactive.
In the area below the <bGroupwise button you can set all further grouping
options - mostly concerning the layout (pattern, calendar grid, line grid etc.).
You can define different settings for each grouping level. By clicking on the
corresponding buttons levels can be created, deleted, copied or
the order of the levels can be changed.
Name
Specify a name for the corresponding grouping level.
Visible
Specify whether or not the groups of this level are to be displayed.
Grouping level
The level, for which the settings of this line are valid is displayed here. You
can change the order of the levels by clicking on the corresponding arrow
buttons above the table.
Group by
Select the data field by which the activities on the current grouping level are
to be grouped. If you leave this field blank, the activities on the current
grouping level will not be grouped.
Sort groups by
Select the data field by which the groups on the current grouping level should
be sorted when the program is started. If you do not set anything here, the
sequence of the nodes will derive from the sequence of loading.
Sort order
Set the sorting order (ascending or descending) on the current grouping level.
nodes will derive from the start date and the duration of the activities, i.e. the
earliest and the shortest activities will be farthest in front. This property can
only apply if the property VcGroupLevelLayout.NodesArranged-
Optimized was set to True.
Pattern
If you click on you open the dialog Pattern attributes. Here you can
specify the background pattern and two pattern colors of the group title row
as well as by clicking on assign the respective property in dependence on
data.
Calendar
Select the data field that contains the name of a calendar, which should be
used for the group node.
Line grids
By clicking on you can select a line grid for the grouping level or create a
new one in the Administrate Line grids dialog which you can open by
clicking on . For further information about line grids see chapter The
Administrate Line grids dialog.
Calendar grids
By clicking on you can select a calendar grid for the group or create a
new one in the Administrate Calendar grids dialog which you can open by
clicking on . For further information about calendar grids see the chapter
The Administrate Calendar grids dialog.
If you select <From Scale> the first not visible calendar grid from the time
scale will be displayed.
Separation line
You can edit the appearance of the separating lines after clicking on the Edit
button.
Nodes optimized
Only selectable, if Nodes in separate rows has not been tickedi. Select this
option to automatically optimize the node layout.
Groups collapsed
(Only available if Nodes in separate rows is activated) If you select this
option, the groups will be displayed initially collapsed, i. e. only the group
titles will be visible, but not the nodes.
Modifications allowed
If you tick this box, the user can collapse expanded groups and vice versa.
The user can collapse/expand groups by double-clicking on the group
heading in the table section, by clicking once on the minus or plus symbol
next to the group heading or by the context menu of a group.
Summary bar
If you tick this box, summary bars will be displayed. To specify summary
bars for a specific level, you have to define a layer with an appropriate filter
condition (<Sum bar level = ...).
! Nodes
The below settings describe the options that you can select for grouped or
ungrouped nodes concerning in particular sorting options as well as the
layout of the node rows.
Note: Please note that the settings for the sorting of the activites are only
valid when opening the diagram. If you want to sort the activities again later,
please use the VcGantt method SortNodes.
Sort by 1 to 3
Specify the data fields by which the activities are to be sorted when the
diagram is opened. You can sort the activities by up to three data fields, in
ascending or descending order respectively (Sort Order 1 to 3).
If you specified a data field by which the activities are to be grouped
(Grouping by), each group will be sorted separately.
Pattern
If you click on you open the dialog Pattern attributes. Here you can
specify the background pattern and two pattern colors of the node line as well
as by clicking on assign the respective property in dependence on data.
Calendar grids
By clicking on you can select a calendar grid for the node or create a new
one in the Administrate Calendar grids dialog which you can open by
clicking on . For further information about calendar grids see the chapter
The Administrate Calendar grids dialog.
If you select <From Scale> the first not visible calendar grid from the time
scale will be displayed.
Separation line
The layout of the separation lines can be edited in the Line attributes dialog
box which appears when you click on the Edit button.
You can get to this dialog by clicking on in the field Calendar grids in
the dialog Grouping, section Groupwise.
By clicking on the corresponding buttons you can add, copy or
delete calendar grids.
The arrow buttons allow to move a calendar grid by one line down or
up, while the button lets you assign the feature just activated to all
calendar grids listed.
The below features can be set to calendar grids:
Selected
By clicking on this field you can select this calendar grid to apply to the
grouping level. A red arrow indicates that this calendar grid was selected.
Name
Enter a name for the calendar grid.
Status
Status: In this column, each calendar grid that was added ( ) and/or
modified ( ) after opening the dialog box is marked by a symbol.
Visible
Activate this check box for the calendar grids to be displayed.
Calendar
The calendar selected here will apply to all groups of this level. If no calendar
is selected here, the calendar of the level to which the calendar grid was
assigned will apply.
Pattern
Select the fill pattern and color for the calendar grid. By clicking on you
open the Edit pattern attributes dialog where you can specify a pattern, a
background color and, if needed, a second pattern color . You can define your
own colors in addition to the ones suggested. Transparent colors are also
available.
Line type
When clicking on this button ( ), the Line attributes of calendar grid
dialog box will appear, where you can enter the settings of the border lines of
the calendar grid.
Priority
Lets you set the priority of a calendar grid. It refers to other calendar grids
and to layers (> 0: in front of the layers, < 0: behind the layers).
Identifiable
This option allows to set whether or not the calendar grid can be identified by
the VcGantt method IdentifyObjectAt. A tool tip text for instance can only
appear if a calendar grid can be identified; the same is valid for the context
menu popping up on right-clicking the mouse. For a tool tip text to appear,
the corresponding interval also has to be identifiable; please see the
Calendar grid section in the Edit time scale section dialog.
You can get to this dialog by clicking on in the field Line grids in the
dialog Grouping, section Groupwise.
By clicking on the corresponding buttons you can add, copy or
delete line grids.
The arrow buttons allow to move a line grid by one line down or up,
while the button lets you assign the feature just activated to all line grids
listed.
The below features can be set to line grids:
Selected
By clicking on this field you can select this line grid to apply to the grouping
level. A red arrow indicates that this calendar grid was selected.
Name
Enter a name for the line grid.
Status
In this column each line grid grid that was added ( ) and/or modified ( )
after opening the dialog box is marked by a symbol.
Visible
Tick this check box for the line grids to be displayed
Type
Lets you set the basic unit of the line grid, e.g. days, weeks, etc.
Interval
Lets you set the size of the interval between the grid lines as an integer
multiple of the basic unit of the grid.
Line type
When clicking on the button in this field, the Line attributes of line grid
dialog box will appear, where you can set shape and color of the borderlines
of the line grid.
Priority
Lets you set the priority of a line grid. It refers to other line grids and to
layers (> 0: in front of the layers, < 0: behind the layers.
Reference date
Select the reference date from the date picker.
Line format
By clicking on you can select a line format for the line grid or create a
new one in the Administrate Line formats dialog which you can open by
clicking on . For further information about line formats see the chapter
The Administrate Line formats dialog.
Turn
If you tick this check box, the annotations at the lines of the date line grid can
be turned by 90 degrees (vertically).
Alignment
Here you can specify the horizontal alignment of the line annotations.
At top
Tick this check box to position the annotations of the lines in the line grid at
the top of the Gantt graph.
At center
Tick this check box to position the annotations of the lines in the line grid at
the center of the Gantt graph.
At bottom
Tick this check box to position the annotations of the lines in the line grid at
the bottom of the Gantt graph.
Observe DST
Tick this check box to have daylight saving time observed.
You can invoke this dialog by clicking the Maps button either on the
Objects property page or in the Configure Mapping dialog box.
Name
This column lists the names of all existing maps. All names can be edited.
Status
In the Status column each map that has been added ( ) and/or modified
( ) since the dialog box was opened is marked by a symbol.
Type
Select the map type:
Color maps
Pattern maps
Graphics file maps
Fonts
Millimetres
Number map
Add map
A new map will be created. You can modify its default name by double-
clicking and editing it.
Copy map
Copies the selected map.
Delete map
The marked map in the list will be deleted. You can only delete maps that
are not currently used.
Edit map
The Edit Map dialog box will appear.
You invoke this dialog box by clicking the Edit map button ( ) of the
Administrate Maps dialog box.
In a map you can set up to 150 allocations. If you wish to set more
allocations, please create a new map, e. g. as a copy of an existing one.
Color
To assign a color to a data field entry, please click in the corresponding field
in the Color column. A dialog box will open that lets you select a color. Also
transparent colors are available.
Legend text
Enter a legend text for each data field entry.
In this dialog box you can assign a map to a data field. You will get to it by
clicking on the button for the desired attribute in the dialog Edit layer.
Data field
Select the data field the entries of which control the desired attributes of the
current object.
Map
(only activated if a data field has been specified) Select the map that
depending on its type assigns the corresponding attributes to each data field
entry.
Maps
Opens the Administrate Maps dialog box, where you can create, edit, copy
or delete maps.
You can get to this dialog box by the Objects property page. In the diagram
area, boxes can be displayed, that you can administer by the above dialog.
Preview
The preview window shows the box marked in the Preview column.
Name
Lists the names of all existing boxes. The names can be edited.
Status
In the Status column each box that has been added ( ) and/or modified
( ) since the dialog box was opened is marked by a symbol.
Update behavior
Select an update behavior for this box. Leaving the setting to <not selected>
means that the setting for boxes made in the Edit Update behavior dialog
will apply
Moveable
By moving a box, its offset will be modified. Activate this check box if the
box is to be moveable in the diagram at run time. Deactivate the check box if
you have positioned a box correctly and do not want it to be moved at run
time.
Resizing
Here you can specify whether the size of a box can be modified interactively.
You can select whether only height, only width or both height an width can
be modified. When the pointer is placed on the frame of the box, its form
changes to a double-headed arrow. Now hold the left mouse button pressed
and change width and/or heigth by moving the mouse in the desired
direction.
Tipp If you have selected width and height you can place the pointer on the
corner of the box and both dimensions can be modified at the same time.
Node ID
Here you can enter a string which is interpreted as Node ID and is used for
identifying the node to which the respective box shall be tied. An empty
string implicates that the box will not be anchored to a node.
Note: It is neither checked whether the syntax of the string is correct nor
whether the node exists. If the node does not exist, no anchoring will take
place.
Origin
By the properties Origin, Reference point, X Offset and Y Offset you can
position a box in the diagram area. The relative position of the boxes is
independent of the current diagram size.
Specify the origin, i. e. the point of the diagram from which the offset to the
reference point of the box will be measured. Possible values: top left, top
centered, top right, centered left, centered centered, centered right, bottom
left, bottom centered, bottom right.
Reference point
Set the reference point of the box, i. e. the point of the box from which the
offset to the origin will be measured. Possible values: top left, top centered,
top right, centered left, centered centered, centered right, bottom left, bottom
centered, bottom right.
X Offset
Set the distance (in mm) between origin and reference point in x direction.
Y Offset
Set the distance (in mm) between origin and reference point in y direction.
Frame
If you click on the Frame field, an Edit button appears that lets you open the
Line Attributes dialog box. In this dialog box you can specify the type, the
thickness and the color of the box frame line.
Priority
Specify the relative drawing priority of the box in comparison with the other
objects in the diagram (nodes, grids, etc.). The priority of nodes is 0. If the
priority of a box is higher than the priority of nodes, the boxes overlay the
nodes so that an interactive access to the nodes won´t be possible.
Visible
Activate this check box if the box is to be visible at run time.
Box format
The current box format of the box is displayed here. If you click this field,
two buttons will appear:
From the combobox you can select a box format.
by the Edit button you reach the Administrate Box Formats dialog box.
Add box
A new box will be created. You can modify its default name by double-
clicking and editing it.
Copy box
A copy of the selected box under a new name is created.
Delete box
The marked box in the list will be deleted.
Edit box
The Edit Box dialog box will appear.
You can get to this dialog by the Objects property page and the dialog box
Administrate Boxes by clicking on the the Edit box button. This dialog box
will also appear at run time when double-clicking on a box.
Field
This column contains the numbers of the box fields. (The number of fields
depends on the selected box format.)
Field Type
This column displays the field types (text or graphics).
Contents
Type the contents of the field or a graphics file name here.
If a text field contains more than one line, you can use "\n" in the text string
to separate two lines of the text field (Example: "Line1\nLine2"). Otherwise
the lines will be separated at blanks.
Graphics formats available: WMF, JPG, BMP, GIF, PCX, PNG, TIF.
You can get to this dialog box by the Objects property page.
Preview
The preview window shows the format marked in the Preview column.
Name
Lists the names of all existing formats. The names can be edited.
Status
In the Status column each format that has been added ( ) and/or modified
( ) since the dialog box was opened is marked by a symbol.
This dialog box will appear if you activate the Administrate Box Formats
dialog box on the Objects property page and then click on the Edit box
format button.
Type
Select the field type: text or graphics.
Width
Specify the width for the selected field (in mm). The maximum width of a
field is 200 mm. If the rows are split into two or more fields and the total
widths of the rows vary, the total width will be equal to the width of the
widest row.
Height
(only for the type graphics) Specify the minimum height for the selected field
(in mm). The maximum height is 200 mm.
Alignment
Specify the alignment of the content of the selected field (9 possibilities).
Pattern
Select the fill pattern and color for the current field. By clicking on you
open the Edit pattern attributes dialog where you can specify a pattern, a
background color and, if needed, a second pattern color . You can define your
own colors in addition to the ones suggested. Also, transparent colors are
available.
Font Color
(only for the type text) Indicates the font color for the current field.
by the arrow button you can open the Color picker to select a font color.
Font
(only for the type text) Indicates the font style for the current field.
Preview
The current fields of the box format are displayed in the preview window. If
you click on a field, you can modify its attributes in the Fields table.
With the help of the buttons above the preview window you
can add new fields or delete the marked field. You also can use the Del
button to delete fields.
You can get to this dialog by clicking the Link appearances button on the
Objects property page.
Name
This column displays the names of the link apperances available. The names
can be edited.
This feature can also be set by the property VcLinkAppearance.Name.
Status
In the Status column each link appearance that has been added ( ) and/or
modified ( ) since the dialog box was opened is marked by a symbol.
Visible
This check box lets you specify whether the links between the nodes should
be displayed. This feature can be also set by the property VcLink-
Appearance.Visible.
Filter
This column displays the filter used for a link appearance. From the select
box you can select an appropriate filter.
This feature can also be set by the property VcLinkAppearance.Filter-
Name.
Predecessor layer
Specify to which layer of the predecessor node the link is to be drawn. If the
selected layer is not assigned to a node, the link will be drawn to the first
visible layer of this node.
This feature can also be set by the property VcLink Appearance.-
PredecessorLayerName.
Successor layer
Specify to which layer of the successor node the link is to be drawn. If the
layer selected is not assigned to a node, the link will be drawn to the first
visible layer of this node.
This feature can also be set by the property VcLink Appearance.Successor-
LayerName.
Line type
Clicking on an entry in this column will cause an Edit button to occur, by
which you can get to the Line attributes dialog box. There you can set type,
thickness and color of the line.
This feature can also be set by the property VcLink Appearance.LineType.
Routing type
This field allows to select a routing type. As the first row of the table
containing the link appearance types is reserved for the default link
appearance, the item <not specified> is selectable only from the second row
on. If <not specified> has been selected, a routing type is used which is
further up the list of the LinkAppearance objects.
The routing type can also be set by the VcLinkAppearance property
RoutingType.
.
Straight-lined link type
Preview
The table marked by a small red arrow in the Preview column is displayed in
the preview window in the lower half of the dialog above. It simultaneously
is the table presently edited.
Name
Lists the names of all tables that are defined. The names can be edited.
Status
In this column each table that has been added ( ) and/or modified ( )
since the dialog box was opened is marked by a symbol.
Update behavior
Select an update behavior for this table. Leaving the setting to <not selected>
means that the setting for tables made in the Edit Update behavior dialog
will apply
Pictures above: a group with and without the tree view style set
Columns
The Columns list contains the No. and the Width of each table column. The
width can be varied by steps of 1 mm in the range from 0 to 10 cm.
You can define 100 columns at maximum. The sequence of the table columns
in the Columns list corresponds to the sequence of the table columns in the
chart.
The buttons above the Columns list allow to copy or delete table
columns or to modify their position in the list.
Table Formats
The Table Formats list lets you specify different table formats:
Preview: A table format marked by a red arrow is displayed in the
preview window.
Name: A table format by default has a name. StandardListCaption is
the name of the table format of the table caption. The names can be edited
only for the table formats ListFormat2, ListFormat3 and for all table
formats that you have specified yourself.
Filter: A table format is combined with a filter that selects the activities
to which the table format is to apply. When several filters of this list
apply to an activity, the table format of the highest priority will be used.
The sequence of the filters in the list of the Table formats field of the
dialog box inversely corresponds to their priority: the top filter has lowest
priority. Four pre-defined filters exist. The format of the <interfaceNode>
filter applies to nodes interfacing the nodes selected. The <never> filter
never applies. It practically serves as a template for copying. The
<automatically> filter applies to nodes of the same group level; the level
is to be specified. The <always> filter collects all nodes that were not
selected by other filters. It makes sense to put it at the top; in addititon, it
cannot be deleted.
Outer/Inner separation lines: Specify whether the table fields are to be
separated by lines outside and/or inside the table fields.
Line Color: You can assign a line color to a format.
3D effect: Specify whether the table fields are to be highlighted by a 3D
effect.
+/- column:Specify whether in a column + or - shall be displayed for
collapsing or expanding subordinated lines. Select the appropriate column
from the drop down list.
Indent column:Specify the column to be indented. This only works if
there are lines (nodes) subordinated to this line (node). Then the first
aubordinated line will be indented. If the automatically filter is assigned,
the column in which +/- is displayed will be indented.
Indent width:Specify by how much (in mm) the column shall be
indented.
By using these buttons at the top of the Table Formats list you can
copy or delete table formats or open the Edit Table Format dialog.
Note: For the table format StandardListCaption (table caption) attributes
cannot be assigned by maps.
By using these buttons you can move the table formats in the list,
except for the first and the second one that are immobile.
If you have changed the attributes Outer separation lines or Inner
separation lines of a table format and then click on this button, the changed
attribute will be applied to all table formats.
In this dialog box you can edit a table format (row type).
No.
Number of the table format field: This number cannot be edited. It is used as
the index that allows to call this table format field by the API.
If you create a new table format field in the preview window, it will be
annotated by a "?" instead of a number. You can verify its correct number if
you leave the dialog by clicking on OK and reopen it.
Type
Please select the field type: text, graphics or multi-state. Multi-state fields
are used for example to trigger a rotating sequence of different states and of
the associated data fields when clicked.
Combi field
If this check box is activated, in the table format field a text and a graphics
can be combined as follows:
Type: Text, Combi field: no: Only text will be displayed (as specified for
Data field or for Constant text).
Type: Graphics, Combi field: no: Only a graphics will be displayed (as
specified for Graphics file name).
Type: Text, Combi field: yes: Text (as specified for Data field or for
Constant text) and a graphics (as specified for Graphics file name) will
be displayed.
Type: Graphics, Combi field: yes: Only a graphics will be displayed (as
specified for Graphics file name). Text (as specified for Data field) is
visible only in a tooltip. If possible, it will be displayed as hyperlink.
Data field
Select the data field whose content is to be displayed in the current field.
Additionally to the data fields defined in the data definition table, you can
select one of the following options:
<Group title>: the code specified for the current grouping level
<Row number>: consecutively numbered rows
If the content of a data field does not fit into the current field, the excess will
be cropped in the diagram.
Constant Text
(only if no data field has been specified) Type a constant text to be displayed
in the current field.
dialog box will open which lets you configure a mapping from data field
entries to graphics files.
If in the Configure Mapping dialog box only a data field, but no map is
selected, the content of the data field will be used as graphics file name. If in
the data field or in the map no valid graphics file name is found, the file name
specified in the Symbol file field will be used.
If a mapping has been configured, the arrow on the second button will be
displayed in bold ( ).
As soon as you leave the Symbol File Name field, a symbol indicates that
a mapping has been configured.
When the graphics is displayed, the color of the pixel in the upper left corner
will be replaced by the color of the diagram background. That means that all
pixels of the graphics that have this color will be displayed transparent.
Height
(only for the type graphics) Specify the minimum height for the selected field
(in mm). The maximum height is 99 mm.
Alignment
Specify the alignment of the content of the selected field (9 possibilities).
Pattern
This field lets you set the default background pattern and colors of the table
format. By clicking on you open the Edit pattern attributes dialog
where you can specify a pattern, a background color and, if needed, a second
pattern color by clicking on . You can define your own colors in addition
to the ones suggested. Transparent colors are also available.
By clicking on you open the Configure Mapping dialog box. Here you
can configure data-dependent patterns and colors. If a mapping has been
configured, the arrow on the button will be displayed in bold ( ).
Font Color
Indicates the font color for the current field. If you click on the field, two
buttons will appear:
by the arrow button you can open the Color picker to select a font color.
by the second button you reach the Configure Mapping dialog box. Here
you can configure data-dependent font colors. If a mapping has been
configured, the arrow on the button will be displayed in bold ( ).
Font
Indicates the font style for the current field. If you click on the field, two
buttons will appear:
The Windows Font dialog box will appear.
by the second button you reach the Configure Mapping dialog box. Here
you can configure data-dependent fonts. If a mapping has been configured,
the arrow on the button will be displayed in bold ( ).
Spacing
Specify the spacing in percent.
Wrapping
Specify the wrapping of rows.
+/- column
Specify whether + or - for collapsing or showing further lines shall be
displayed.
Indent column
Specify whether the column shall be indented.
Preview
The current fields of the table format are displayed in the preview window. If
you click on a field, you can modify its attributes in the Fields table.
With the help of the buttons above the preview window you
can add new fields or delete the marked field. You also can use the Del
button to delete fields.
The first four buttons (for adding new fields) are only activated, if it is
actually possible to create a new field beside the field marked. This depends
on the number of columns of the current table format specified in the Edit
Table dialog.
Type
Select the line type (dashed, dotted etc.).
Thickness
Define the line thickness.
Color
Select the line color.
Preview
The line appearance based on the current settings is displayed in this field.
Pattern
Here you can select a fill pattern.
Pattern color
Select the foreground color of the fill pattern.
Preview
The pattern based on the current settings is displayed in this field.
You can get to this dialog box by the Objects property page. You can define
a separate calendar for each line of the table.
Selected
The calendar marked by a small arrowhead in the Selected column is used
for the calendar grid.
Name
Lists the names of all calendars defined.
Status
In the Status column each calendar that has been added ( ) and/or
modified ( ) since the dialog box was opened is marked by a symbol.
Type
Specify the calendar type. Besides ordinary calendars shifts calendars are
available, too.
Add calendar
Click on this button to add a calendar.
Copy calendar
The marked calendar is copied.
Delete calendar
The marked calendar is deleted.
Edit calendar
You will reach the Edit Calendar dialog box.
Name
Lists the names of all intervals. All names can be edited.
Status
In this column each interval that has been added ( ) and/or modified ( )
since the dialog box was opened is marked by a symbol.
Profile
Here you can select a profile for your interval by clicking . If you want to
edit the profile click on beside its name to open the Administrate
Calendar profiles dialog.
Start/End
In this field you can set the beginning or end of of an interval. The date can
be easily entered or modified by using the spin control.
Pattern
Click on to open the dialog Edit pattern attributes.
Line type
Click on to open the dialog Edit line attributes.
Add interval
A new interval will be created. You can modify the marked name by
double-clicking and editing it.
Copy interval
Click on this button to copy the marked interval.
Delete interval
Click on this button to delete the marked interval.
Name
Lists the names of all calendar profiles. All names can be edited.
Status
In this column each calendar profile that has been added ( ) and/or
modified ( ) since the dialog box was opened is marked by a symbol.
Type
By clicking you can select the calendar profile type. You can choose
between <Day profile>, <Week profile>, <Year profile> and <Variable
profile>.
You can get to this dialog if you activate the dialog box "Admininstrate
Calendar Profiles" on the "Objects" property page, and then click on the
"Edit" button of the calendar profile. The different types of profiles offer
different setting options. This dialog serves to create and modify intervals of
a day profile.
Name
Lists the names of all intervals. All names can be edited.
Status
In this column each interval that has been added ( ) and/or modified ( )
since the dialog box was opened is marked by a symbol.
Profile
Here you can select a profile for your interval by clicking .
Pattern
Click on to open the dialog Edit pattern attributes.
Line type
Click on to open the dialog Edit line attributes.
Add interval
A new interval will be created. You can modify the marked name by
double-clicking and editing it.
Copy interval
Click on this button to copy the marked interval.
Delete interval
Click on this button to delete the marked interval.
You can get to this dialog if you activate the dialog box "Admininstrate
Calendar Profiles" on the "Objects" property page, and then click on the
"Edit" button of the calendar profile. The different types of profiles offer
different setting options. This dialog serves to create and modify intervals of
a week profile.
You can get to this dialog if you activate the dialog box "Admininstrate
Calendar Profiles" on the "Objects" property page, and then click on the
"Edit" button of the calendar profile. The different types of profiles offer
different setting options. This dialog serves to create and modify intervals of
a variable profile.
Duration
Here you can specify the duration of the interval. This feature can also be set
by the property VcInterval.Duration
Time unit
Here you can specify the time unit of the interval. This feature can also be
set by the property VcInterval.TimeUnit
Text
Here you can specify the text of the time ribbon This feature can also be set
by the property VcInterval.Text
You can get to this dialog if you activate the dialog box "Admininstrate
Calendar Profiles" on the "Objects" property page, and then click on the
"Edit" button of the calendar profile. The different types of profiles offer
different setting options. This dialog serves to create and modify intervals of
a year profile.
This dialog box you can get to by the Objects property page. You can create
different time scales and define sections to them.
Time scales
Selected: The time scale marked by a small arrowhead in this column is
used for the diagram. Please note that the time scale selected here should
match the Time unit selected on the General property page.
Update behavior Select an update behavior for this time scale. Leaving
the setting to <not selected> means that the setting for time scales made
in the Edit Update behavior dialog will apply
Name: Lists the names of all time scales that are defined. The names can
be edited.
Status: In this column each time scale that has been added ( ) and/or
modified ( ) since the dialog box was opened is marked by a symbol.
The position of the time scale sections in the table corresponds with their
position in the diagram.
If you have specified a new section, all sections will be displayed with nearly
the same extension. You can change the extension of each section by
dragging the mouse. by the API the start of each section can be edited.
This dialog box lets you create and modify time scale sections.
Ribbons
Ribbons serve the purpose of annotating the time scale. A section may have
several ribbons (e.g. one showing a monthly and a second one showing a
daily scale).
By these buttons you can create, copy and delete ribbons and
move them in the table.
The table lets you modify the settings of the ribbons in the selected section:
Index: Displays the serial number of a ribbon (cannot be edited).
Type Lets you set the type of ribbon: seconds, minutes, hours, days,
weeks, months, quarters, years, shifts, fiscal quarters, fiscal years.
Position: Lets you specify, whether the ribbon should be displayed at all
and if so, whether its position should be at the top or at the bottom of the
diagram.
Minimum height Allows to set the minimum height of the ribbon (in
mm).
Major ticks: You can set after how many time units a major tick should
be displayed, for example after 7 days. (The time unit depends on the
ribbon type selected.) The major ticks will be annotated, if sufficient
space is available.
Minor ticks: Allows to set after how many time units a minor tick (not
annotated) should be displayed, e.g. after one day. The time unit depends
on the ribbon type selected.
Pattern: Shows the pattern of the ribbon. Click on to open the Edit
pattern attributes dialog where you can select a pattern, a color and a
second pattern color. If you don't select a new pattern, all ribbons of the
time scale section have the pattern specified in the Specify Time Scale
dialog. If you assign a new pattern to the first ribbon of a section it will
be copied to the Pattern field in the Time Scale Sections table in the
Specify Time Scale dialog.
Font: Lets you set font specifications to the annotation of the ribbons. If
this value is not set, the ribbons of the section will display the font set in
the Specify Time Scale dialog. To assign a different font color to a
ribbon, please click on the drop-down-button ( ) in the ribbon field to
get to the color picker. To assign a different font type to a ribbon, please
click on the edit button ( ) of the ribbon field to get to the Windows
Font dialog box. The font that you define for the first ribbon of a section
will be copied to the Font field of the Sections table in the Specify Time
Scale dialog.
Date format: Lets you set the date format to the ribbon. The available
formats depend on the selected type of ribbon. To compose the date you
can use the following tokens:
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in '\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
Unit separation: You can choose between three options for the
separating lines in the ribbon: straight lines, ticks and no lines.
Tick position: Decide whether the ticks and their annotations should be
displayed at the top or at the bottom of the ribbon.
Tick color:You can select the color of ticks.
Alignment: You can choose between centered, right, left and at ticks
for the alignment of the ribbon annotation.
Serial annotation: Lets you specify whether serial numbers are to be
displayed in the ribbon instead of dates, and if so, whether null should be
the origin at the reference date possibly set.
Use reference date: Activate this check box if the start value of the serial
annotation (or of the fiscal year or quarter) should coincide with the
reference date selected. Otherwise it will be placed onto the beginning of
the section.
Reference date: Select the reference date from the date picker.
Adjust to Reference date:Tick this check box to position the line grid on
a different value of the time unit, i.e. the one defined by the reference
date, for example on 13:17 of a day.
If this option is not selected, the lines of a line grid are positioned on the
beginning of a time unit, for example on 00:00 h of a day.
Calendar: If you want to display a shift ribbon, select one of the shift
calendars created in the Specify Calendars dialog box.
Observe DST: Tick this box if daylight saving time is to be considered
for this ribbon.
Line grid
In the diagram area and in the histogram, one or more line grids (consisting
of vertical lines) can be displayed below the selected section of the time
scale.
By these buttons you can create, copy and delete line grids and
move them in the table.
The table lets you modify the settings of the line grids in the selected section:
Index: Displays the serial number of a line grid (cannot be edited).
Visible: Activate this check box for the line grids to be displayed.
Type: Lets you set the basic unit of the line grid, e.g. days, weeks, etc.
Interval: Lets you set the size of the interval between the grid lines as an
integer multiple of the basic unit of the grid.
Line type: When clicking on the button in this field, the Line attributes
of line grid dialog box will appear, where you can set shape and color of
the borderlines of the line grid.
Priority: Lets you set the priority of a line grid. It refers to other line
grids and to layers (> 0: in front of the layers, < 0: behind the layers).
Reference Date:The reference date shifts the beginning of the line grid
away from the default start on Monday 0:00 h by the offset specified.
Observe DST: Tick this check box if daylight saving time is to be
considered for this line grid.
Calendar grid
Calendar grids can be displayed in the diagram area and in the histogram of
this section. If you choose to display a calendar grid, workfree periods will be
highlighted by vertical areas.
By these buttons you can create, copy and delete calendar grids
and move them in the table.
The table lets you modify the settings of the calendar grids:
Index: Displays the serial number of a calendar grid (cannot be edited).
Visible: Activate this check box for the calendar grids to be displayed.
Calendar: Select the calendar that specifies the workfree periods
displayed by the calendar grid. If you select the entry <not specified>, the
calendar selected in the Specify Calendars dialog box will be used.
Pattern: When clicking on this button ( ), the Pattern attributes
dialog box will appear, where you can set the type, the foreground and
the background color of the pattern for the calendar grid. There are also
transparent colors available.
Line type: When clicking on this button ( ), the Line attributes of
calendar grid dialog box will appear, where you can enter the settings of
the border lines of the calendar grid.
Priority: Lets you set the priority of a calendar grid. It refers to other
calendar grids and to layers (> 0: in front of the layers, < 0: behind the
layers).
You can get to this dialog by the Layout property page. You can create and
modify one or more histograms and select which one(s) is/are to be
displayed.
Preview
The preview window shows the histogram marked in the Preview column.
Name
Lists the names of all histograms that are defined. The names can be edited.
Status
In the Status column each histogram that has been added ( ) and/or
modified ( ) since the dialog box was opened is marked by a symbol.
Start value
Specify the smallest value of the numeric scale of the histogram. If necessary,
this value will be adapted to the curve values.
End value
Specify the greatest value of the numeric scale of the histogram. If necessary,
this value will be adapted to the curve values.
Visible
Tick this box if you want the selectes histogram to be displayed.
Add histogram
A new histogram is created.
Copy histogram
Copies the selected histogram.
Delete histogram
The marked histogram is deleted.
Edit histogram
The Edit Histogram dialog box will appear.
This dialog box will appear if in the Administer Histograms dialog box the
Edit histogram button ( ) is clicked.
For the histogram being edited you can establish several numeric scales that
contain one or more ribbon(s), and select the numeric scale to be displayed.
The histogram may contain several curves.
For each curve you can individually define the source by which its data are to
be supplied. by filters you can select specific activities to compose the curve.
Beside, you can define the appearance of the curves.
Numeric Scales
Selected: The red arrow indicates which one of the numeric scales is
displayed.
Name: of the numeric scale
Status: In this column each numeric scale that was added ( ) and/or
modified ( ) after the dialog box was opened is marked by a symbol.
Update behavior Select an update behavior for this numeric scale.
Leaving the setting to <not selected> means that the numeric scale setting
made in the Edit Update behavior dialog will apply
Width per Unit in mm, specifies the space between the major ticks
Ribbons
For each ribbon of the marked numeric scale you can set the below
properties:
Index: consecutive number of the ribbon (cannot be edited)
Type of the ribbon (numerical or textual). By the button you open a
dialog to specify the type.
Minimal width in mm
Major ticks: Enter the number of units after which a major tick including
an annotation is to occur.
Minor ticks: Enter the number of units after which a minor tick (smaller
tick without annotation) is to occur.
Pattern: By clicking on you open the Edit pattern attributes dialog
where you can specify a pattern, a pattern color and background color or,
if needed, a second pattern color. You can define your own colors in
addition to the ones suggested. Transparent colors are also available.
Font: The font style and color of the ribbon are indicated. Click on the
button ( ) to get to the Windows Font dialog box.
Double format: Here you can choose from a list of possible double
output formats. I represents the figures before the decimal separator and
D represents the figures after the decimal separator.
Object draw events: Tick this option if you want to enable the events
OnObjectDrawEx and <OnObjectDrawCompleteEx. The event On-
ObjectDrawEx lets you replace the default annotation ribbon by a
customer-defined one, and with the event OnObjectDrawCompleteEx
you can add something to the annotation ribbon that was drawn by
VARCHART XGantt,
Unit label: annotation of the label units of the numeric scale.
Curves
Name: In this column, the names of the curves available are listed.
Update behavior Select an update behavior for this curve. Leaving
the setting to <not selected> means that the setting for curves made
in the Edit Update behavior dialog will apply
Source: By defining the source, you can specify where the data for
calculating a curve are to be taken from. You can choose between two
basic alternatives:
1. by Layer: The curves are generated from the data of layers of those
activities, that fulfill the filter criteria. Filters allow to select even more
particular activities after more detailed criteria.
2. By the API: This option sets the values by the API. In the API, the
values for a histogram curve can be freely defined by of the VcCurve
method SetValues. A curve defined this way is independent of user
interactions and therefore can be used, say, as a reference curve, to
display the availability, for example.
By the Edit button ( ) you can open the Select curve data source
dialog box.
Filter: If desired, a filter for each curve can be set to select for the
activities that compose the curve. By the Edit button ( ) you can open
the Administrate Filters dialog box.
Line type: Click on the Linetype entry to open the Line attributes dia-
log box.
Stack Reference: You can set a reference curve in the Stack Reference
field on which you want the current curve to be stacked. If you do not
want to stack a curve, select the entry <No>. If you do not stack curves,
they they may overlap each other. To differentiate between overlapping
curves, you should assign them different patterns.
Fill Reference: This field allows you to specify how far down the fill
pattern below each curve should reach. If you select <No> in the Fill
Reference field for a particular curve, there will be no fill pattern beneath
this curve. If you enter <Flatline>, the fill pattern will reach down to the
flatline. By specifying another curve in the Fill Reference field, the fill
pattern will be displayed down to this curve.
Pattern: Specify the pattern below each curve. by the Edit button ( )
youc can open the Pattern dialog box where you can specify the pattern.
Fill Reference 2: Select the second reference curve. The filling below the
second reference curve is displayed only if the y values of the current
curve (the curve defined in this row) are higher than the y values of the
second reference curve.
Pattern 2: Specify the pattern and the color of the filling above the
second reference curve.
Overload results calendar:Select a calendar created by you for this
purpose to store the intervalls that have been calculated by the overload
dates. You could this calendar, for instance, for a calendar grid in a
group.
In the Tutorial you can find examples for the usage of histograms in the
chapters "Using histograms" and "Displaying Capacity Bottlenecks".
This dialog box you can get to by the Edit Histogram dialog.
This dialog box you can get to by the Edit Histogram dialog.
Numerical
Select this option if the current ribbon of the numeric scale is to be annotated
with numbers.
Textual
Select this option if the current ribbon of the numeric scale is to be annotated
with texts which you can specify for five predefined positions (10%, 30%,
50%, 70 %, 90 % from top).
After having defined more than one ribbons in the dialog Edit histograms
you can specify whether to draw a vertical separation line on the right of the
corresponding ribbon by clicking Separation line.
You can get to this dialog box by the Objects property page.
Date lines (vertical lines in the diagram) let you highlight specific dates (the
current date or any other date) in your diagram. The date lines that are
displayed in the chart can be administered in this dialog box.
Preview
The date line marked by a small red arrowhead is displayed in the preview
window.
Name
Lists the names of all date lines that are displayed in the chart. The names can
be edited.
Status
In this column date lines that were added ( ) or modified ( ) after the
dialog box was was invoked are marked by a symbol.
Update behavior
Select an update behavior for this date line. Leaving the setting to <not
selected> means that the setting for date lines made in the Edit Update
behavior dialog will apply
Moveable
Activate this check box, if you want the date line to be interactively
moveable at run time.
Visible
Activate this check box, if you the date line should be visible at runtime.
Priority
Specify the priority of the date line (> 0: on top of of layers, < 0: behind
layers).
Text
You can enter a text to be displayed at the date line.
Today (dynamically)
Tick this check box, if on the start of the program the date line should
indicate the system date and time. In this case, the Date field will be
deactivated.
Date
You can modify the date of the date line by marking a section of the date and
then selecting a new value by the arrow keys.
Alternatively, you can set the date by the date control. For this, please click
on the arrow button ( ). The date dialog box will appear where the selected
date is highlighted. If no date was selected, the current date is highlighted.
Select a day from the month displayed. You can flip through the months by
clicking on the arrow buttons at the top of the calendar. If you click on the
name of a month, a select box will appear which lists the names of all
months. If you click on the year, a set of arrow buttons will appear by which
you can move to the next or to the previous year. If you click on Today, the
current date will be selected.
Date
Tick this check box if you want the date line to be identified by the VcGantt
method IdentifyObjectAt.
This option can also be set by the VcDateLine.Identifiable property.
This dialog box lets you establish and modify time date lines.
Line attributes
Specify the Type, Thickness and Color of the date line.
Label position
Select the position at which a text should be displayed at the date line. If you
do not want to display a text, tick the no label radio button. It is ticked by
default, if no text is specified for the date line. If you specify a text for the
date line and then leave the Text field, by default the text is displayed at the
top right of the line. You can choose a different position for the text, if you
want.
Text
Specify the text you want to display at the date line. By default the Text field
is empty. When you select a text position at the date line the name of the line
is transferred to the Text field. You can modify the text, if you wish.
Font
This button lets you get to the Windows dialog box Font where you can
specify the font for the text at the date line. By the button below, you can get
to the Windows color picker, that lets you select a color for the text font of
the date line or create a new color.
You can get to this dialog box if you click in the Border Area property page
on one of the nine buttons above/below the drawing.
Type of contents
Specify the type of information that you want to display at the chosen
location:
Empty: If you do not want to output anything at the chosen location, click on
this flag.
Text: The text of the six text lines will be displayed at the chosen location.
Graphics: The graphics selected (by the Browse button) will be displayed at
the chosen location. Graphics are always displayed in alignment centered.
Legend: A legend will be displayed at the chosen location. It describes the
layers used in the current diagram.
Following your selection, the sections of the dialog box that are not required
are deactivated (all entries are maintained).
Legend attributes
Only activated when the check box Legend has been ticked. You will open
the Legend attributes dialog box where you can specify further attributes for
the legend.
Graphics file
Only activated when the check box Graphics has been ticked. Select the
graphics file you want to display by clicking on the Browse button or type
the file name manually in the field. If the selected graphics file is not stored
in the installation directory of the VARCHART ActiveX, you must also
specify the drive and the directory.
Browse
Only activated when the check box Graphics has been ticked. Click on this
button to reach the Choose Graphics File dialog box and select the drive, the
directory and the name of the appropriate graphics file.
Lines of text
Only activated when the check box Text has been ticked. Specify the text
(max. 6 lines) you want to display at the chosen diagram position and/or
specify substitutes (e.g. &[System date]) to represent project info. If all six
lines are empty, the area will not be displayed in the diagram.
Project details
Only activated when the check box Text has been ticked.
Here you can add several project details (number of pages, page number,
system date) to your chart by selecting the appropriate place holder from the
list and by clicking on the Add button.
The place holders will be replaced by the required data and will continuously
be kept up-to-date in the print preview and the printout.
Add
Only activated when the check box Text has been ticked. When you have
selected a project detail from the list, click on Add to confirm your choice.
The project detail will be inserted in the line where the cursor is currently
positioned.
Alignment of text
Only activated when the check box Text has been ticked. Specify whether the
text lines should be output left-aligned, centred or right-aligned.
You can get to this dialog at runtime by clicking the corresponding item of
the legend's contextmenu or at designtime by clicking the corresponding
button in the dialog Specification of Texts, Graphics and Legend. The
button can only be clicked after having selected Legend as Type of contents.
Arrangement
Fixed to Rows: Specify the number of rows to be displayed in the legend.
Fixed to Columns: Specify the number of columns to be displayed in the
legend.
Fixed to Rows andColumns: Specify the number of rows and columns to
be displayed in the legend. If the number entered here is lower than the
existing layers, the surplus layers are not displayed.
Margins
Top margin: enter a value for the top margin of the element
Bottom margin: enter a value for the bottom margin of the element.
Font
By clicking this button you open the Windows Font dialog box where you
can specify the font attributes for the legend.
Hardware identification
(cannot be edited) The number that is indicated here is calculated by your
hardware configuration. NETRONIC needs it for the licensing procedure.
When you modify your hardware, you have to renew your licence. Please
don´t hesitate to contact the technical support team of NETRONIC.
Licensed features
Indicates the modules that have been licensed. If the licensing procedure was
successful, the licensed modules are activated.
Developer license
Histogram
Global runtime license (VARCHART ActiveX runs in the runtime
mode on each computer.)
Single-place runtime licenses (VARCHART ActiveX has to be licensed
individually for each computer to run on.)
Graphics export per API
Interactivity
Close
Quits the dialog box.
Enter your license number, your name and the name of your company and
click on Send email to NETRONIC. An email to NETRONIC will be
generated automatically. As soon as we have received it, we will generate
your license information file (vcgantt.lic) and mail it back to you.
After having received the file, please copy it to the directory in which the file
vcgantt.ocx is stored.
After licensing, you need to activate the new license in each of your projects.
So please open a property page in each of your projects, make some change
and store it. Then the new license will be activated.
5 User Interface
5.1 Overview
The following list gives an overview of possible user interactions.
Navigation in the diagram and in the table
Zooming
Marking nodes or layers
Creating nodes
Moving nodes
Moving layers
Change start/end date
Delete, cut, copy and paste nodes
Editing node data
Editing links
Anchor boxes to nodes
Editing group data
Expanding/collapsing groups
Moving groups
Modifying table/diagram ratio
Modifying table column width
Editing fields in the table
Inserting table rows
Editing the timescale
Modifying the scaling and the frontiers of sections
Moving the date line
Editing the legend
Setting up pages
Use the print preview
5.3 Zooming
The following shortcuts can be used for zooming:
Ctrl + Num -: zoom out
Ctrl + Num +: zoom in
You can also use the mouse for zooming:
Turn the mouse wheel while holding down the Ctrl key. For that purpose
the usage of the mouse wheel for zooming has to be permitted. This can
be done by ticking the AllowZoomingByMouseWheel box on the
General property page or by setting the property VcGantt1.Zooming-
PerMouseWheelAllowed to True. This property is set to False by
default.
For further information about zoom settings for the output please see chapter
5.21 "Setting up pages".
If you want to move the complete node (with all layers) press the Shift key
while pointing on the node. Now the cursor takes the shape of a small square
with four arrows . Hold the Shift key down while dragging the node to a
different position. An info box will display the current start and end dates of
the node. As soon as you release the mouse key, the node will be dropped at
the current position and the box will be closed.
Note: The Shift key has to be pressed only if you want to move a node that
consists of more than one layer.
If the Allow vertical node movement via diagram box is ticked on the
Nodes property page, nodes can also be moved in vertical direction.
When a node is being moved vertically in the diagram, a cursor with
corresponding arrows indicates in which way the node will be positioned
relatively to the other nodes: .
Moving nodes in the table
If the check box Allow vertical node movement via table has been ticked,
you can also move nodes in the table. Up to now, however, it is only possible
to move complete nodes only vertically. When a node is being moved
vertically in the table, a cursor with corresponding arrows indicates in which
way the node will be positioned relatively to the other nodes: .
The event OnNodeModifyEx occurs when the user has modified the length
or the position of a node or a value in the Edit Data dialog. By the
modificationType parameter you get further information of the kind of
modification. If you set the returnStatus to vcRetStatFalse, the modification
will be revoked.
If you move a symbol layer, the Move Layer box will look like this:
The event OnNodeModify occurs when the user modifies the length or the
position of a node or a value in the Edit Data dialog. By the parameter
modificationType you can obtain more information on the kind of
modification. If you set the returnStatus to vcRetStatFalse, the modification
will be revoked.
Fields
This column displays the data fields that define the marked node. The data
fields available are the ones defined by the data definition in the
Administrate data tables dialog. Only data fields that are not defined as
hidden are displayed.
Values
This column lets you edit the values of the nodes marked, but only if they
have been defined to be Editable> in the Administrate Data Tables dialog.
If you edit a data field of the Date/Time type, a Date dialog will appear that
you can select a date from.
The Date Output Format is defined on the General property page. When
editing a field of the type Integer you can modify the value by a spin control
that delivers the desired values via up and down arrows.
This dialog can be invoked by the method VcGantt.EditLink. Here you can
view and edit the data of the marked link. The ID of the link is indicated at
the first position of the list.
altered. If the box is untied from the node the calculation is carried out
backwards.
This method is applied as well when using the API property AnchorToNode
but not when setting the property NodeID.
You can get to this dialog by the context menu of the group or by double-
clicking a group layer (which will only be displayed if in the Grouping
dialog the box Group node visible has been ticked).
The dialog lets you edit the data of one group or, if more than one group has
been marked, the data of every marked group one after the other.
The number of the current group out of the total number of marked groups is
indicated above the list.
The arrow buttons above the list allow to navigate to the previous or next (or
first or last) marked node.
When you move the mouse over the splitter bar, the pointer shape changes to
a double vertical line with an arrow to the left and right.
By dragging the mouse, you can now change the width ratio of the table to
the diagram. (The maximum table width is limited by the total of column
widths specified in the Edit Table dialog.)
You can change the width of a table column in the table caption only.
The event VcTableWidthChanging occurs when the user modifies the width
of the table. The table and the modified diagram aspect ratio are returned. If
you set the returnStatus to vcRetStatFalse, the modification will be revoked.
The event VcTableColumnWidthChanging occurs when the user modifies
the width of a table column. The table, the index and the current width (as
1/100 mm) of the modified column are returned. If you set the returnStatus to
vcRetStatFalse, the modification will be revoked.
The column width can be calculated automatically, too. For that, on the
General property page the Allow table column width optimization check
box has to be activated. Then at run time, a double-click on a column
separation line will cause that the width of the column on the left will be
adapted automatically to the length of the texts which it contains. This will
trigger the VcTableColumnWidthOptimizing event. If the optimization has
occured, the event VcTableColumnWidthChanging will be triggered.
Scale
Select the time scale. Choose between minutes, hours, days, weeks and
months.
Start Date
Specify the start date of the time scale. If you click on the arrow button, a
Date dialog will appear that you can select a date from.
End Date
Specify the end date of the time scale. If you click on the arrow button, a
Date dialog will appear that you can select a date from.
The date output format is defined on the General property page.
You can rescale a time scale section interactively by positioning the mouse
cursor onto the section, pressing the left mouse key and dragging the mouse
towards the left or right. The shape of the cursor will change to a vertical line
with an arrow to the left and right. Dragging the cursor towards the left will
downsize the width of the time scale units, dragging it to the right will blow
them up. While dragging an info box will pop up to inform you about the
percentage by which the time scale section is altered.
Note: The closer you place the cursor to the beginning of a section, the
stronger the enlargement/downsizing will be. If you intend to
enlarge/downsize a lot, you are suggested to place the cursor close to the
beginning on the left, while for smaller adjustments placing the cursor
towards the end on the right is suggested.
The event OnTimeScaleSectionRescale occurs when the user rescales a
section of the time scale. The TimeScale object, the section index and the
current BasicUnitWidth are returned. If you set the return status to vcRet-
StatFalse, the modification will be revoked.
You can move the limits between two time scale sections by shifting the
separating line between them. The shape of the cursor will change to a
vertical double-line with an arrow to the left and right.
The event OnTimeScaleSectionStartModify occurs when the user modifies
the start date of a section interactively. The TimeScale object, the section
index and the current start date are returned. If you set the returnStatus to
vcRetStatFalse, the modification will be revoked.
Mode
By selecting a scaling mode from the drop down list and setting the
corresponding values Zoom factor and Maximum width/height you specify
a zoom factor for your output. After having clicked the Apply button, the
values which result from your settings are shown under Current.
Zoom factor
100% is equivalent to the original size; a smaller value correspondingly
reduces the size of the diagram, a greater value increases it.
Repeat title/table/timescale/legend
By ticking this check box title, table, timescale and leged of a diagram that
was partitioned into pages will be added to each page.
Show table
Specify whether the table is to be printed or not. If you don't tick the check
box, the table will not be printed.
Show diagram
Specify whether the diagram (timescale and layers) shall be also printed or
not.
Frame outside
If you tick this box, each page will be given a frame, otherwise a frame will
be drawn around the whole of the diagram. When the Repeat title/table/time
scale legend check box has been ticked, a frame will be drawn around the
whole diagram
Alignment
Select one of the possible alignments for the diagram from the list.
Page numbers
If you tick this check box, a page number will be displayed in the bottom left-
hand corner of each page. The following options are available:
Row.Column: Useful for charts stretching across more than one page
both heigthwise and widthwise. The vertical position of the page is
displayed before the dot, the horizontal position after it.
Column:Row: Useful for charts stretching across more than one page
both heigthwise and widthwise. The horizontal position of the page is
displayed before the dot, the vertical position after it.
Page/Count: The current page number is displayed before the slash and
after it the total number of pages: 1/6, 2/6 etc.
Text
Please tick this check box to set a text into the bottom left-hand corner of
each page. If there is a page number, the additional text will be placed right
of it.
For numbering the pages you may enter in Additional text the following
place holders which will be replaced with the appropriate contents on the
printout:
{PAGE} = consecutive numbering of pages
{NUMPAGES} = total number of pages
{ROW} = line position of the section in the complete chart
{COLUMN} = column position of the section in the complete chart
Sheet margins
The fields Top, Botttom, Left and Right let you set the margin between the
diagram and the edge of the paper sheet (unit: cm).
Before printing, you can view the diagram in the print preview where it will
be displayed as defined by the settings of the Page Setup dialog and as it will
be printed.
You can view single pages or an overview of all pages or you can zoom and
print a certain section of your diagram interactively.
The status bar shows the total number of pages and their horizontal and
vertical spreading. In the Single Page mode, also the number of the current
page is shown.
Close
By clicking on this button, you will leave the page preview and return to your
diagram.
<
Only activated when the Single button has been pressed. If the diagram
consists of more than one page, you can click this button to view the previous
page. You traverse the pages horizontally starting from the bottom right and
finishing at the top left page.
>
Only activated when the Single button has been pressed. If the diagram
consists of more than one page, you can press this button to view the next
page. You traverse the pages horizontally starting from the top left and
finishing at the bottom right page.
Zoom factor
You can modify the size of the diagram by selecting a zoom factor from the
list or by defining an individual one. This is only possible in the "Show
Single Page" mode. To modify the zoom factor you can also use the scroll-
wheel while holding down the <CTRL> key. The zoom factor it will not
modify the size of the output. Depending on the selected zoom factor, vertical
and/or horizontal scroll bars will be displayed. You can also use the mouse
wheel to scroll vertically, holding down <Shift> to scroll horizontally.
The zoom factor Auto is the pre-set default and will always enlarge or
downsize the sheet to the full size of the screen.
Page Setup
When clicking on this button, you will get to the dialog Page Setup to
modify page settings.
Printer Setup
Only visible if the check box Use PrintDlgEx dialog on the General property
page has not been ticked.
When clicking on this button, you will get to the Windows dialog Printer
Setup, where you can modify printer settings.
Print/Print Area
Click on this button to reach the Windows Print dialog box to start the print
procedure.
If you have zoomed a section in the page preview, the button's label will
change to Print Area and when you click it, the Selection radio button in the
Windows Print dialog box will already be selected. If you click on OK the
section displayed on the screen will be printed.
Please note that the zooming factor will not influence the scaling factor set in
the Page Setup dialog.
If the user presses the right mouse button on an empty section of the
histogram or on a curve, the event OnHistogramRClick or OnCurveRClick
is triggered, respectively, if the user presses the right mouse button on an
empty section of the histogram or on a curve. The histogram or curve object
and the mouse position (x,y-coordinates) are returned. You can suppress the
integrated context menu at the given position by setting the returnStatus to
vcRetStatNoPopup and pop up your own context menu.
Curves
If available, the API curves are indicated in this context menu, where they
can be marked.
The event OnDiagramRClick occurs when the user clicks the right mouse
key on the diagram, not hitting a node. The position of the mouse (x,y-
coordinates) is captured, so that you can for example display your own
context menu at the appropriate location. If you set the returnStatus to
vcRetStatNoPopup, the integrated context menu will be revoked.
Pointer mode
The pointer mode is the default mode. It allows all types of interactions
except for generating nodes and links.
If you are creating a node in a collapsed group, additionally to the small cross
an arrow appears: It shows whether the new node will be the first node in the
group (arrow up) or the last one (arrow down).
If the Edit new node option on the Nodes property page is activated, the
Edit Data dialog box will appear, as soon as you release the mouse button. In
the Edit Data dialog box you can edit all data of the new node.
If you have not defined anything else in your settings, the node just created
will appear at the current position of the mouse.
The Mode: Create Node can also be activated by setting the property
InteractionMode to the value VcCreateNode.
The event OnNodeCreate occurs when the user creates a node. The node
object is captured, so that a validation can be made. For the validation, the
Edit Data dialog box has to be activated. If you set the returnStatus to
vcRetStatFalse, the node will will be deleted.
The event OnLinkCreate occurs when the user creates a link between two
nodes. The generated link object is returned, so that a validation and if
necessary a data base entry can be made. If you set the returnStatus to vcRet-
StatFalse, the link will be deleted again.
Page setup
The Page Setup dialog box appears.
The Page Setup dialog box also can be invoked by the VcGantt method
PageLayout.
Print setup
Only selectable if the check box Use PrintDlgEx dialog on the <!eGeneral
property page has not been ticked.
The Windows Print Setup dialog box appears. This dialog box also can be
invoked by the VcGantt method PrinterSetup.
Print preview
The Page Preview dialog box appears. This dialog box also can be invoked
by the VcGantt method PrintPreview.
Print
Select the Print option to reach the Windows Print dialog box. This dialog
box also can be invoked by the VcGantt method PrintIt.
Export Diagram
When selecting this menu item, you will get to the Windows dialog box Save
as, that lets you save the diagram as a graphics file.
This dialog box also can be invoked by the VcGantt method ShowExport-
GraphicsDialog.
When exporting, the size of the exported diagram will be calculated this way:
PNG: a resolution of 100 dpi and a zoom factor of 100% are assumed. If
alternatively a value of <= -50 is specified in the parameter SizeX, the
absolute number will be used as DPI input.
GIF, TIFF, BMP, JPEG: a resolution of 100 dpi and a zoom factor of
100% are assumed. If alternatively a value of <= -50 is specified in the
parameter SizeX, the absolute number will be used as DPI input. In
addition, an internal limit of 50 MBs of memory size is required for the
uncompressed source bit map in the memory; so larger diagrams may
have a smaller resolution than expected.
WMF: A fixed resolution is assumed where the longer side uses
coordinates between 0 and 10,000 while the shorter side uses
correspondingly smaller values to keep the aspect ratio.
EMF/EMF+: The total resolution is adopted, using coordinates scaled by
1/100 mm.
For further details on the different formats please read the chapter "Important
Concepts: Graphics Formats".
The event OnNodeRClick occurs when the user clicks the right mouse
button on a node (location = vcInDiagram) or on a table entry related to an
activity (location = vcInTable). The node object hit and the mouse position
(x,y-coordinates) are returned, so that you can display a context menu at the
appropriate position. If you set the returnStatus to vcRetStatNoPopup, the
integrated context menu will be revoked.
Edit Data
Opens the Edit Data dialog box. If you marked more than a single node, you
can edit them right away.
Delete Nodes
Select this option to delete the marked node(s).
Outline outdent
(only for hierarchy) The position of the marked node in the hierarchy will be
increased.
Outline indent
(only for hierarchy) The position of the marked node in the hierarchy will be
decreased.
The event OnLinkRClickCltn occurs when the user clicks the right mouse
key on a link or on several overlapping links. The LinkCollection object and
the mouse position (x,y-coordinates) are captured and passed, so that you can
display your own context menu at the appropriate position. If you set the
returnStatus to vcRetStatNoPopup, the integrated context menu will be
revoked.
The event OnGroupRClick occurs when the user clicks the right mouse key
on a group heading in the table. The group object and the mouse position
(x,y-coordinates) are returned, so that you can display a context menu at the
appropriate position. If you set the returnStatus to vcRetStatNoPopup, the
integrated context menu will be revoked.
Collapse/Expand Group
This menu item lets you expand a collapsed group or collapse an expanded
one.
The option Nodes In Separate Rows lets you display each node in its own
row.
Delete group
This menu item lets you delete an empty marked group.
The event OnTimeScaleRClick occurs when the user clicks the right mouse
key on the time scale. The TimeScale object and the mouse position (x,y-
coordinates) are returned. At this position you can show your customized
context menu. If you set the returnStatus to vcRetStatNoPopup, the integrated
context menu will be revoked.
Timenow Line
Specify whether your diagram should contain a timenow line (date line).
Grid
Specify whether your diagram should contain grid lines.
Actualize legend
This menu item lets you refreshing the legend which is needed after
modifications in the chart, such as adding or deleting nodes, because they are
not displayed automatically in the legend. The refreshing can also be carried
out by switching off and on the legend view. This concerns the loading of
nodes as well. If on the property page Additional views the attribute Initially
visible was selected for the legend view and no nodes have been loaded when
running the program, the legend stays empty until it was refreshed.
Legend attributes
With this item you open the corresponding dialog where you can specify the
settings concerning legend title, legend elements and margins. For further
information about this dialog please see chapter 4.44 "The Legend Attributes
Dialog Box".
If the context menu does not pop up, you have to activate the option Show
context menu for the box on the General property page.
You should make sure that the Win 32 API command InitCommonControls
is invoked at the beginning of the application. Otherwise it may happen that
the old Common controls of version 5.0 are loaded before the manifest is
interpreted. In VB 6 e.g. you can set the command in the event
Form_Initialize of the start form. Before doing so, the below code line is
required:
Example Code
Private Declare Sub InitCommonControls Lib "comctl32.dll" ().
The manifest itself should be customized to the name and version of the
application (<assemblyIdentity> and <description>).
For further information look on the following Internet pages:
http://www.activevb.de/tutorials/tut_xpstyles/xpstyles.html
http://support.microsoft.com/?id=309366
http://support.microsoft.com/?id=303636
nOldUnitWidth = timeScale.Section(sectionIndex).UnitWidth
End Sub
VcGantt1.SuspendUpdate (True)
VcGantt1.SuspendUpdate (False)
You can also accelerate the updating procedure of links via the Suspend-
Update method.
If you modify table formats in large projects, you also should use the
SuspendUpdate method.
Example Code
Private Sub ModifyTable_Click()
Dim formatCol As VcTableFormatCollection
Dim aFormat As VcTableFormat
Dim index As Integer
VcGantt1.SuspendUpdate True
Set formatCol = VcGantt1.Table.TableFormatCollection
For Each aFormat In formatCol
For index = 1 To aFormat.NoOfColumns
aFormat.FieldBackgroundColor(index) = vbGreen
aFormat.FieldFontBody(index) = vcBold
aFormat.FieldFontColor(index) = vbRed
aFormat.FieldFontName(index) = "Arial"
aFormat.FieldFontSize(index) = 14
aFormat.FieldHorAlignment(index) = vcHorCenterAligned
Next
Next
VcGantt1.SuspendUpdate False
End Sub
This method also accelerates the updating procedure when you use not
equidistant histogram curves.
Example Code
Private Sub CommandCreateCurve_Click()
'current date
aDate = Date
VcGantt1.SuspendUpdate True
End Sub
The method also can accelerate the updating procedure when you use
calendars because modifications of the calendars need a lot of time when the
nodes have been loaded since then for all nodes the program has to check if
they depend on a calendar.
! Graphics
Another reason for a low performance may be graphics in table, node or box
fields that are too large or that have to many pixels.
7 API Reference
• VcFilter
• VcFilterCollection
• VcFilterSubCondition
• VcGantt
• VcGroup
• VcGroupCollection
• VcGroupLevelLayout
• VcGroupLevelLayoutCollection
• VcHierarchyLevelLayout
• VcHistogram
• VcHistogramCollection
• VcInfoWindow
• VcInterval
• VcIntervalCollection
• VcLayer
• VcLayerCollection
• VcLayerFormat
• VcLayerFormatField
• VcLegendView
• VcLineFormat
• VcLineFormatCollection
• VcLineFormatField
• VcLink
• VcLinkAppearance
• VcLinkAppearanceCollection
• VcLinkCollection
• VcMap
• VcMapCollection
• VcMapEntry
• VcNode
• VcNodeCollection
• VcNodeLevelLayout
• VcNumericScale
• VcNumericScaleCollection
• VcPrinter
• VcRect
• VcResourceScheduler2
• VcRibbon
• VcScheduler
• VcSection
• VcTable
• VcTableCollection
• VcTableFormat
• VcTableFormatCollection
• VcTableFormatField
• VcTimeScale
• VcTimeScaleCollection
• VcUpdateBehavior
• VcUpdateBehaviorCollection
• VcUpdateBehaviorContext
• VcWorldView
7.2 DataObject
The OLE Drag & Drop technique allows to move selected nodes from an
activeX source control to a target control. The container to transfer the
corresponding data is the object DataObject. The object provides appropriate
properties for the transfer: Files, Clear, GetData, GetFormat and SetData.
You can also exchange data with other controls capable of OLE-Drag&Drop.
When doing so, please keep in mind that VARCHART-ActiveX controls
store and interpret data in the CSV text format.
To make OLE Drag & Drop work, in the properties window the properties
OLEDragMode and OLEDropMode need to be activated. On the Nodes
property page by the option Move all selected nodes you can select whether
just a single node or several marked nodes can be moved.
Please find detailed information in the chapter Important Concepts in the
section OLE-Drag&Drop.
Properties
• DropEndDate
• DropStartDate
• Files
Methods
• Clear
• GetData
• GetFormat
• SetData
Properties
DropEndDate
Read Only Property of DataObject
This property indicates the end date of the dropping operation. If OLEDrop-
Mode was set to vcOLEDropManual, this property can be used to retrieve
the end date of the phantom in order to pass it on to a newly created node.
DropStartDate
Read Only Property of DataObject
Files
Read Only Property of DataObject
Methods
Clear
Method of DataObject
This method deletes the contents of the DataObject object. This method is
available to drag operations only, i. e. OLEStartDrag, OLESetData,
OLEGiveFeedback and OLECompleteDrag.
GetData
Method of DataObject
This method returns data from a DataObject in the shape of the data type
Variant and is available only to DataObject objects of the events
OLEDragOver and OLEDragDrop.
It is possible for the GetData method to use data formats other than those
listed below, including user-defined formats registered with Windows by the
RegisterClipboardFormat() API function. However, there are a few
caveats:
The byte array returned by GetData may be larger than the actual data, with
arbitrary bytes at the end of the array. The reason for this is that
VARCHART ActiveX does not know the format of the data, but merely has
knowledge of the size of memory allocated for the data ba the operating
system. The allocated size of memory often is larger than the one actually
required for the data. Therefore, there may be an excess of bytes at the end of
the allocated memory segment. As a result, you are supposed to use
appropriate functions to interpret the data in a meaningful way (in Visual
Basic e.g. truncating a string at a particular length by the Left function if the
data is in a text format).
Note: Not all applications support the formats 2 (bitmap) or 9 (color palette),
so it is recommended that you use 8 (device-independent bitmap) whenever
possible.
Parameter:
format Integer Identification number of the format (plus examples
from Visual Basic and C):
2 - bitmap (.bmp-files)
3 - metafile (.wmf-files)
9 - color palette
15 - list of files
GetFormat
Method of DataObject
This method returns a boolean value indicating whether data in the Data-
Object object match a specified format. It is available only to DataObject
objects of the events OLEDragOver and OLEDragDrop.
Parameter:
format Integer Identification number of the format (plus examples
from Visual Basic and C):
2 - bitmap (.bmp-files)
3 - metafile (.wmf-files)
9 - color palette
15 - list of files
SetData
Method of DataObject
This method inserts data into a DataObject using the specified data format. It
is available only to DataObject objects of the events OLEStartDrag, OLE-
SetData, OLEGiveFeedback and OLECompleteDrag.
It is possible for the SetData method to use data formats other than those
listed below format, including user-defined formats registered with
The SetData method requires the data to be in the form of a byte array if the
data format specified could not be recognized.
Parameter:
data Variant Data to be set or Empty if you wish to transmit the
format to be set on request by the event
OLESetData.
2 - bitmap (.bmp-files)
3 - metafile (.wmf-files)
9 - color palette
15 - list of files
7.3 DataObjectFiles
This object keeps a list of all file names, that are stored in a DataObject, if it
contains data of format 15 (list of files). By For Each Item in DataObject-
Files you can access all file names in a loop.
Properties
• _NewEnum
• Count
• Item
Methods
• Add
• Clear
• Remove
Properties
_NewEnum
Read Only Property of DataObjectFiles
Example Code
Private Sub VcGantt1_OLEDragOver(ByVal data As VcGanttLib.DataObject, effect As
Long, ByVal button As Integer, ByVal Shift As Integer, ByVal x As Long, ByVal y
As Long, ByVal state As VcGanttLib.OLEDragStateEnum)
End Sub
Count
Read Only Property of DataObjectFiles
This property returns the number of file names available in the list.
Data Type Explanation
Item
Property of DataObjectFiles
By this property you can assign or retrieve a file name by the index passed.
Because this is the default property of the object, in many programming
environments (e.g. Visaul Basic) the property name can be dropped.
Example: DataObjectFiles(0) will return the first file name.
Data Type Explanation
Parameter:
index Long Index of the file name {0...Count-1}
Methods
Add
Method of DataObjectFiles
This method lets you add the file name specified to the list of file names. If
an index (Integer, values: 0 to .Count-1) is specified, the file name will be
inserted at the specified position. Otherwise it will be inserted at the end of
the list.
Parameter:
index Variant Index of the position in the list that the file name is to
be inserted at (optional)
Clear
Method of DataObjectFiles
This method lets you delete all file names available in the list.
Data Type Explanation
Remove
Method of DataObjectFiles
This method lets you remove the file name with the specified index (values: 0
to .Count-1).
Data Type Explanation
Parameter:
index Long Index of the position in the list that the file name is to
be removed from.
7.4 VcBorderArea
Methods
• BorderBox
Methods
BorderBox
Method of VcBorderArea
Parameter:
boxPosition BorderBoxPositionEnum Box position
Possible Values:
vcBBXPBottomBottomCentered 8 second line in the bottom area, centered
vcBBXPBottomBottomLeft 7 second line in the bottom area, left
vcBBXPBottomBottomRight 9 second line in the bottom area, right
vcBBXPBottomTopCentered 5 first line in the bottom area, centered
vcBBXPBottomTopLeft 4 first line in the bottom area, left
vcBBXPBottomTopRight 6 first line in the bottom area, right
vcBBXPLegend 51 legend
vcBBXPTopCentered 2 top centered
vcBBXPTopLeft 1 top left
vcBBXPTopRight 3 top right
Example Code
Dim borderArea As VcBorderArea
Dim bBoxBBL As VcBorderBox
7.5 VcBorderBox
An object of the type VcBorderBox designates one of the boxes in the title
or legend area of the graphics.
Properties
• Alignment
• GraphicsFileName
• LegendElementsArrangement
• LegendElementsBottomMargin
• LegendElementsMaximumColumnCount
• LegendElementsMaximumRowCount
• LegendElementsTopMargin
• LegendFont
• LegendTitle
• LegendTitleFont
• LegendTitleVisible
• Text
• TextFont
• Type
Properties
Alignment
Property of VcBorderBox
This property lets you set or retrieve the alignment of this BorderBox object.
Data Type Explanation
Possible Values:
vcBBXACentered -1 Center
vcBBXALeft -3 Left
vcBBXARight -2 Right
GraphicsFileName
Property of VcBorderBox
This property lets you set or retrieve the name of the graphics file used in the
VcBorderBox object. Available formats:
EMF, EMF+, VMF and WMF are vector formats that allow to store a file
independent of pixel resolution. All other formats are pixel-oriented and
confined to a limited resolution.
The VMF format basically has been deprecated, but it will still be supported
for some time to maintain compatibility with existing applications.
Data Type Explanation
Example Code
Dim borderArea As VcBorderArea
Dim bBoxTR As VcBorderBox
bBoxTR.Type = vcBBXTGraphics
bBoxTR.GraphicsFilename = "Asterix.jpg"
LegendElementsArrangement
Property of VcBorderBox
This property lets you set or retrieve the arrangement of the elements in the
legend.
Data Type Explanation
Possible Values:
vcLEAFixedToColumns 1 The legend elements are merely aligned
along columns.
vcLEAFixedToRows 0 The legend elements are merely aligned
along rows.
vcLEAFixedToRowsAndColumns 2 The legend elements are aligned along rows
and columns.
LegendElementsBottomMargin
Property of VcBorderBox
This property lets you set or retrieve the width between the legend elements
and the bottom of the border box (unit: mm).
Data Type Explanation
LegendElementsMaximumColumnCount
Property of VcBorderBox
This property lets you set or retrieve the number of columns to which the
elements in the legend should disperse.
Data Type Explanation
LegendElementsMaximumRowCount
Property of VcBorderBox
This property lets you set or retrieve the number of rows to which the
elements in the legend should disperse.
Data Type Explanation
LegendElementsTopMargin
Property of VcBorderBox
This property lets you set or retrieve the width between the legend elements
and the top of the border box (unit: mm).
Data Type Explanation
LegendFont
Property of VcBorderBox
This property lets you set or retrieve the font attributes of the legend.
Data Type Explanation
Example Code
Dim borderArea As VcBorderArea
Dim bBoxBBL As VcBorderBox
LegendTitle
Property of VcBorderBox
Example Code
Dim borderArea As VcBorderArea
Dim bBoxBBL As VcBorderBox
LegendTitleFont
Property of VcBorderBox
This property lets you set or retrieve the font attributes of the legend title.
Data Type Explanation
Example Code
Dim borderArea As VcBorderArea
Dim bBoxBBL As VcBorderBox
LegendTitleVisible
Property of VcBorderBox
This property lets you set or retrieve whether the legend title is visible.
Data Type Explanation
Property value Boolean Legend title visible (True)/ not visible (False)
Example Code
Dim borderArea As VcBorderArea
Dim bBoxBBL As VcBorderBox
Text
Property of VcBorderBox
This property lets you set or retrieve the text of a head line (above or below
the diagram). For numbering the pages or displaying the system date you
may enter the below wild cards which will be replaced by the appropriate
contents on the printout:
Parameter:
rowIndex Integer row index {0...6}
Example Code
Dim borderArea As VcBorderArea
Dim bBoxBBL As VcBorderBox
TextFont
Property of VcBorderBox
This property lets you set or retrieve the font attributes of a title line (above
or below the diagram).
Parameter:
rowIndex Integer Row index {0...6}
Example Code
Dim borderArea As VcBorderArea
Dim bBoxTL As VcBorderBox
bBoxTL.TextFont(i).Bold = False
bBoxTL.TextFont(i).Italic = False
bBoxTL.TextFont(i).Name = "Symbol"
Code Sample in C#
/ Text for Title
VcBorderBox borderBox =
VcGantt1.BorderArea.BorderBox(VcBorderBoxPosition.vcBBXPTopCentered);
borderBox.Type = VcBorderBoxType.vcBBXTText;
Type
Property of VcBorderBox
This property lets you set or retrieve the type of the BorderBox object.
Data Type Explanation
Possible Values:
vcBBXTGraphics 3 graphics
vcBBXTLegend 4 legend
vcBBXTNothing 0 nothing
vcBBXTText 1 text
vcBBXTTextWithGraphics 2 text and graphics
Example Code
Dim borderArea As VcBorderArea
Dim bBoxBBL As VcBorderBox
7.6 VcBox
Properties
• AnchoringInteractionsAllowed
• AnchoringLineVisible
• FieldText
• FormatName
• LineColor
• LineThickness
• LineType
• MarkBox
• Moveable
• Name
• NodeID
• Origin
• Priority
• ReferencePoint
• Resizing
• Specification
• UpdateBehaviorName
• Visible
Methods
• AnchorToNode
• GetActualExtent
• GetTopLeftPixel
• GetXYOffset
• GetXYOffsetAsVariant
• IdentifyFormatField
• SetXYOffset
• SetXYOffsetByTopLeftPixel
Properties
AnchoringInteractionsAllowed
Property of VcBox
This property lets you set or retrieve whether a box can be tied to a node
interactively .
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
AnchoringLineVisible
Property of VcBox
This property lets you set or retrieve whether the specified reference points
shall be linked by a line if the box is tied to a node.
Data Type Explanation
Property value Boolean Anchoring line between node and box is/is not
shown
Default value: False
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
FieldText
Property of VcBox
This property lets you set or retrieve the contents of a box field. You also can
specify the offset in the Edit Box dialog box.
If a text field contains more than one line, you can use "\n" in the text string
to separate two lines of the text field (Example: "Line1\nLine2"). Otherwise
the lines will be separated at blanks.
Data Type Explanation
Parameter:
fieldIndex Integer Field index
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
FormatName
Property of VcBox
This property lets you set or retrieve the name of the box format.
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
boxCltn = VcGantt1.BoxCollection
box = boxCltn.FirstBox
box.FormatName = "Standard"
LineColor
Property of VcBox
This property lets you set or retrieve the color of the border line of the box.
Data Type Explanation
({0...255},{0...255},{0...255})
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
LineThickness
Property of VcBox
This property lets you set or retrieve the line thickness of the border line of
the box.
If you set this property to values between 1 and 4, an absolute line thickness
is defined in pixels. Irrespective of the zoom factor a line will always show
the same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
LineType
Property of VcBox
This property lets you set or retrieve the type of the border line of the box.
Data Type Explanation
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
MarkBox
Property of VcBox
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Moveable
Property of VcBox
This property lets you set or retrieve whether the box can be moved
interactively.
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Name
Property of VcBox
This property lets you retrieve/set the name of a box. You can specify the
name in the Administrate Boxes dialog box.
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Dim boxName As String
NodeID
Property of VcBox
This property lets you set or retrieve the node ID of the node which the box is
tied to. You can also specify the Node-ID in the Administrate Boxes dialog
box.
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Dim box.NodeID As String
Origin
Property of VcBox
This property lets you set or retrieve the point of origin of the box, i. e. the
point of the diagram from which the offset to the reference point of the box
will be measured.
Possible Values:
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Priority
Property of VcBox
This property lets you specify or enquire the priority of the box.
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
ReferencePoint
Property of VcBox
This property lets you set or retrieve the reference point of the box, i. e. the
point of the box from which the offset to the origin will be measured.
Data Type Explanation
Possible Values:
vcBRPBottomCenter 28 bottom center
vcBRPBottomLeft 27 bottom left
vcBRPBottomRight 29 bottom right
vcBRPCenterCenter 25 center center
vcBRPCenterLeft 24 center left
vcBRPCenterRight 26 center right
vcBRPTopCenter 22 top center
vcBRPTopLeft 21 top left
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Resizing
Property of VcBox
This property lets you set or retrieve whether and how the size of a box can
be modified.
Data Type Explanation
Possible Values:
vcBRHeight 23 The height of the box can be modified interactively.
vcBRNo 0 The size of the box cannot be modified interactively.
vcBRWidth 24 The width of the box can be modified interactively.
vcBRWidth/Height 1050 Width and height of the box can be modified
interactively.
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Specification
Read Only Property of VcBox
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
UpdateBehaviorName
Property of VcBox
This property lets you set or retrieve the name of the UpdateBehavior.
Data Type Explanation
Visible
Property of VcBox
This property lets you set or retrieve whether a box is visible. You also can
specify this property in the Administrate Boxes dialog box.
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Methods
AnchorToNode
Method of VcBox
This method lets you tie boxes to nodes or untie them again. An anchored
box can be still moved (provided that you have set the property Moveable).
To untie a box from the node, you have to pass "NULL" as parameter.
If you move a node which is anchored to a box, the box is moved as well. If
the node is collapsed, the box is collapsed as well, thus becoming invisible.
When the node is expanded the box is visible again.
If a box is tied to a node, its position on the screen will be maintained. The
offset values which are used as basis are converted according to the reference
points (Origin, ReferencePoint). If, for example, a box with a certain offset
refers to a chart at the top left (origin) and then is anchored to a node, an
offset to the the top left node is calculated automatically. This makes sure
that the position on the screen will not be altered. If the box is untied from
the node the calculation is carried out backwards.
Data Type Explanation
Parameter:
node VcNode Node object to which the box is tied
GetActualExtent
Method of VcBox
This method lets you retrieve the extent of the box (unit: 1/100 mm).
By regarding these values when setting the XY offset, you can modify the
reference point of the anchoring line without changing the position of the
box.
Data Type Explanation
Parameter:
width Integer width of the box
GetTopLeftPixel
Method of VcBox
This method lets you convert to pixel and display the saved XY offset for the
top left corner.
The x value can be further used with the method VcGantt.GetDate for
instance to get a date.
Data Type Explanation
Parameter:
x Integer X value of the offset
GetXYOffset
Method of VcBox
This method lets you enquire the distance between origin and reference point
in x and y direction (unit: 1/100 mm).
Note: If you use VBScript, you can only use the analogous method
GetXYOffsetAsVariant because of the parameters by Reference.
Data Type Explanation
Parameter:
xOffset Integer X value of the offset
GetXYOffsetAsVariant
Method of VcBox
This method is identical with the method GetXYOffset except for the
parameters. It was necessary to implement this event because some languages
(e.g. VBScript) can use parameters by Reference (indicated by ) only if the
type of these parameters is VARIANT.
IdentifyFormatField
Method of VcBox
This method lets you retrieve the index of the format field at the specified
position. If there is a field at the position specified, True will be returned, if
there isn't, the method will deliver False.
Data Type Explanation
Parameter:
x Long X coordinate of the position
Return value Boolean A format field exists/does not exist at the position
specified
SetXYOffset
Method of VcBox
This method lets you specify the distance between origin and reference point
in x and y direction (unit: 1/100 mm).
You also can specify the offset in the Administrate Boxes dialog box.
Note: If you use VBScript, you can only use the analogous method
GetXYOffsetAsVariant because of the parameters by Reference.
Data Type Explanation
Parameter:
xOffset Integer X value of the offset
Example Code
Dim OffsetSet As Boolean
OffsetSet = VcGantt1.boxCollection.FirstBox.SetXYOffset(100, 100)
SetXYOffsetByTopLeftPixel
Method of VcBox
This method lets you internally convert the specified pixel value of the top
left corner to an XY offset and then save the offset.
Parameter:
x Integer X value of the offset
7.7 VcBoxCollection
The VcBoxCollection object contains all boxes available. You can access all
objects in an iterative loop by For Each box In BoxCollection or by the
methods First... and Next.... You can access a single box by the method Box-
ByName and BoxByIndex. The number of boxes in the collection object can
be retrieved by the property Count. The methods Add, Copy and Remove
allow to handle the boxes in the corresponding way.
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• BoxByIndex
• BoxByName
• Copy
• FirstBox
• NextBox
• Remove
• Update
Properties
_NewEnum
Read Only Property of VcBoxCollection
Example Code
Dim box As VcBox
Count
Read Only Property of VcBoxCollection
This property lets you retrieve the number of boxes in the box collection.
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim numberOfBoxes As Long
Methods
Add
Method of VcBoxCollection
By this method you can create a box as a member of the BoxCollection. If the
name was not used before, the new box object will be returned. Otherwise
"Nothing" (in Visual Basic) or "0" (other languages) will be returned. To
make the new box visible in the diagram, the box collection needs to be
updated by the Update call.
Data Type Explanation
Parameter:
boxName String Box name
Example Code
Set newBox = VcGantt1.BoxCollection.Add("box1")
AddBySpecification
Method of VcBoxCollection
This method lets you create a box by using by a box specification. This way
you can keep a box persistent. This way of creating allows box objects to
become persistent. The specification of a box can be saved and re-loaded (see
VcBox property Specification). In a subsequent the box can be created can
be created again from the specification and is identified by its name. To make
the new box visible in the diagram, the box collection needs to be updated by
the Update call.
Data Type Explanation
Parameter:
Specification String Box specification
BoxByIndex
Method of VcBoxCollection
This method lets you access a box by its index. If a box of the specified index
does not exist, a none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the box
Example Code
Dim boxCltn As VcBoxCollection
BoxByName
Method of VcBoxCollection
By this method you can retrieve a box by its name. If a box of the specified
name does not exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
boxName String Box name
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Copy
Method of VcBoxCollection
By this method you can copy a box. If the box that is to be copied exists, and
if the name for the new box does not yet exist, the new box object is returned.
Otherwise "Nothing" (in Visual Basic) or "0" (other languages) will be
returned. To make the copied box visible in the diagram, the box collection
needs to be updated by the Update call.
Data Type Explanation
Parameter:
boxName String Name of the box to be copied
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
FirstBox
Method of VcBoxCollection
This method can be used to access the initial value, i.e. the first box of a box
collection, and then to continue in a forward iteration loop by the method
NextBox for the boxes following. If there is no box in the BoxCollection
object, a none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
NextBox
Method of VcBoxCollection
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Remove
Method of VcBoxCollection
This method lets you delete a box. To make the deletion visible in the
diagram, the box collection needs to be updated by the Update call.
Parameter:
boxName String Box name
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
Update
Method of VcBoxCollection
This method lets you update a box collection after having modified it.
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
7.8 VcBoxFormat
Properties
• _NewEnum
• FieldsSeparatedByLines
• FormatField
• FormatFieldCount
• Name
• Specification
Methods
• CopyFormatField
• RemoveFormatField
Properties
_NewEnum
Read Only Property of VcBoxFormat
Example Code
Dim formatField As VcBoxFormatField
FieldsSeparatedByLines
Property of VcBoxFormat
This property lets you set or retrieve whether fields are to be separated by
lines.
Data Type Explanation
Property value Boolean Box fields separated by lines (True)/ not separated
by lines (False).
Example Code
Dim boxFormat As VcBoxFormat
FormatField
Read Only Property of VcBoxFormat
This property lets you access a VcBoxFormatField object by its index. The
index has to be in the range 0 to .FormatFieldCount-1.
Note for users of a version earlier than 3.0: The index does not count from
1 to .FormatFieldCount as (as did the field properties up to 3.0).
Data Type Explanation
Parameter:
index Integer Index of the box format field
0 ... .FormatFieldCount-1
Example Code
Dim boxFormat As VcBoxFormat
Dim formatField As VcBoxFormatField
FormatFieldCount
Read Only Property of VcBoxFormat
Example Code
Dim boxFormat As VcBoxFormat
Dim formatField As VcBoxFormatField
Name
Property of VcBoxFormat
This property lets you retrieve/set the name of a box format. You can also
specify the name in the Administrate Box Formats dialog box.
Data Type Explanation
Example Code
Dim boxFormat As VcBoxFormat
Specification
Read Only Property of VcBoxFormat
Methods
CopyFormatField
Method of VcBoxFormat
This method allows to copy a box format field. The new VcBoxFormatField
object is returned. It is given automatically the next index not used before.
Data Type Explanation
Parameter:
position FormatFieldInnerPositionEnum Position of the new box format field
Possible Values:
vcInnerAbove 1 above
vcInnerBelow 3 below
vcInnerLeftOf 0 left of
vcInnerRightOf 4 right of
Example Code
Dim boxFormat As VcBoxFormat
Dim formatField As VcBoxFormatField
RemoveFormatField
Method of VcBoxFormat
This method lets you remove a layer format field by its index. After that, the
program will update all layer format field indexes so that they are
consecutively numbered again.
Data Type Explanation
Parameter:
index Integer index of the box format field to be deleted
Example Code
Dim boxFormat As VcBoxFormat
Dim i As Integer
boxFormat = VcGantt1.BoxFormatCollection.FirstFormat
For i = 0 To boxFormat.FormatFieldCount - 1
boxFormat.RemoveFormatField (i)
Next
7.9 VcBoxFormatCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• Copy
• FirstFormat
• FormatByIndex
• FormatByName
• NextFormat
• Remove
Properties
_NewEnum
Read Only Property of VcBoxFormatCollection
Example Code
Dim format As VcBoxFormat
Count
Read Only Property of VcBoxFormatCollection
This property lets you retrieve the number of box formats in the box format
collection.
Data Type Explanation
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim numberOfBoxformats As Long
Methods
Add
Method of VcBoxFormatCollection
Parameter:
FormatName String Name of the box format
Example Code
Set newBoxFormat = VcGantt1.BoxFormatCollection.Add("boxFormat1")
AddBySpecification
Method of VcBoxFormatCollection
This method lets you create a box format by using a box format specification.
This way of creating allows box format objects to become persistent. The
specification of a box format can be saved and re-loaded (see VcBoxFormat
property Specification). In a subsequent session the box format can be
created again from the specification and is identified by its name.
Data Type Explanation
Parameter:
formatSpecification String Box format specification
Copy
Method of VcBoxFormatCollection
By this method you can copy a box format. If the box format that is to be
copied exists, and if the name for the new box format does not yet exist, the
new box format object is returned. Otherwise "Nothing" (in Visual Basic) or
"0" (other languages) will be returned.
Data Type Explanation
Parameter:
FormatName String Name of the box format to be copied
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormat As VcBoxFormat
FirstFormat
Method of VcBoxFormatCollection
This method can be used to access the initial value, i.e. the first box format of
a box format collection and then to continue in a forward iteration loop by the
method NextFormat for the box formats following. If there is no box format
in the box format collection, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Example Code
Dim format As VcBoxFormat
FormatByIndex
Method of VcBoxFormatCollection
This method lets you access a box format by its index. If a box format of the
specified index does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the box format
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim format As VcBoxFormat
FormatByName
Method of VcBoxFormatCollection
By this method you can retrieve a box format by its name. If a box format of
the specified name does not exist, a none object will be returned (Nothing in
Visual Basic).
Parameter:
formatName String Name of the box format
Example Code
Dim formatCltn As VcBoxFormatCollection
Dim format As VcBoxFormat
NextFormat
Method of VcBoxFormatCollection
Example Code
Dim formatCltn As VcBoxFormatCollection
Dim format As VcBoxFormat
Remove
Method of VcBoxFormatCollection
This method lets you delete a box format. If the box format is used in another
object, it cannot be deleted. Then False will be returned, otherwise True.
Data Type Explanation
Parameter:
FormatName String Box format name
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormat As VcBoxFormat
7.10 VcBoxFormatField
Properties
• Alignment
• FormatName
• GraphicsHeight
• Index
• MaximumTextLineCount
• MinimumTextLineCount
• MinimumWidth
• PatternBackgroundColorAsARGB
• PatternColorAsARGB
• PatternEx
• TextFont
• TextFontColor
• Type
Properties
Alignment
Property of VcBoxFormatField
This property lets you set or retrieve the alignment of the content of the box
format field.
Possible Values:
vcFFABottom 28 bottom
vcFFABottomLeft 27 bottom left
vcFFABottomRight 29 bottom right
vcFFACenter 25 center
vcFFALeft 24 left
vcFFARight 26 right
vcFFATop 22 top
vcFFATopLeft 21 top left
vcFFATopRight 23 top right
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
FormatName
Read Only Property of VcBoxFormatField
This property lets you retrieve the name of the box format to which this box
format field belongs.
Data Type Explanation
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
GraphicsHeight
Property of VcBoxFormatField
This property lets you set or retrieve for the type vcFFTGraphics the height
of the graphics in the box format field.
0 ... 99
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
Index
Read Only Property of VcBoxFormatField
This property lets you enquire the index of the box format field in the
corresponding box format.
Data Type Explanation
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
MaximumTextLineCount
Property of VcBoxFormatField
This property lets you set or retrieve the maximum number of lines in the box
format field, if the box format field is of the type vcFFTText. Also see the
property MinimumTextLineCount.
Data Type Explanation
0 ... 9
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
MinimumTextLineCount
Property of VcBoxFormatField
This property lets you set or retrieve the minimum number of lines in the box
format field, if it is of the type vcFFTText. If there is more text than can be
taken by the lines, the format field will be enlarged dynamically up to the
maximum number of lines. When assigning a value by this property, please
also remember to set the MaximumTextLineCount value anew, since
otherwise the minimum value might overwrite the maximum value.
Data Type Explanation
0 ... 9
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
MinimumWidth
Property of VcBoxFormatField
This property lets you set or retrieve the minimum width of the box field in
mm. The field width may be enlarged, if above or below the field fields exist
that have greater minimum widths.
Data Type Explanation
0 ... 9
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
PatternBackgroundColorAsARGB
Property of VcBoxFormatField
This property lets you set or retrieve the background color of the box format
field. Color values have a transparency or alpha value, followed by a value
for a red, a blue and a green partition (ARGB). The values range between
0..255. An alpha value of 0 equals complete transparency, whereas 255
represents a completely solid color. When casting an RGB value on an
ARGB value, an alpha value of 255 has to be added.
If the box format field shall have the background color of the box format,
select the value -1.
Data Type Explanation
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
PatternColorAsARGB
Property of VcBoxFormatField
This property lets you set or retrieve the pattern color of the box format field.
Color values have a transparency or alpha value, followed by a value for a
red, a blue and a green partition (ARGB). The values range between 0..255.
An alpha value of 0 equals complete transparency, whereas 255 represents a
completely solid color. When casting an RGB value on an ARGB value, an
alpha value of 255 has to be added.
If the box format field shall have the background color of the box format,
select the value -1.
Data Type Explanation
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
PatternEx
Property of VcBoxFormatField
This property lets you set or retrieve the pattern of the field background of
the box format field.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
TextFont
Property of VcBoxFormatField
This property lets you set or retrieve the font of the box format field, if it is of
the type vcFFTText.
Data Type Explanation
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
TextFontColor
Property of VcBoxFormatField
This property lets you set or retrieve the font color of the box format field, if
it is of the type vcFFTText.
Data Type Explanation
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
Type
Property of VcBoxFormatField
This property lets you enquire the type of the box format field.
Data Type Explanation
Possible Values:
vcFFTGraphics 64 graphics
vcFFTText 36 text
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
7.11 VcCalendar
Properties
• CalendarProfileCollection
• IntervalCollection
• Name
• SecondsPerWorkday
• Specification
• Type
Methods
• AddDuration
• CalcDuration
• Clear
• GetEndOfPreviousWorktime
• GetNextIntervalBorder
• GetPreviousIntervalBorder
• GetStartOfInterval
• GetStartOfNextWorktime
• IsWorktime
• Update
Properties
CalendarProfileCollection
Read Only Property of VcCalendar
IntervalCollection
Read Only Property of VcCalendar
This property gives access to the IntervalCollection object that contains all
intervals available.
Data Type Explanation
Name
Read Only Property of VcCalendar
Example Code
Dim calendar As VcCalendar
Dim calendarName As String
SecondsPerWorkday
Property of VcCalendar
This property lets you set/retrieve the number of seconds of a workday. This
feature can be also set in the Specify Calendars dialog.
Data Type Explanation
Specification
Read Only Property of VcCalendar
Type
Property of VcCalendar
This property lets you set or retrieve the calendar type. If you change the
type, all properties of this calendar will be deleted.
Data Type Explanation
Possible Values:
vcNormalCalendar 139
vcShiftCalendar 12
Example Code
Dim calendarCltn As VcCalendarCollection
Dim calendar As VcCalendar
Methods
AddDuration
Method of VcCalendar
This method lets you assign a duration (work time) to a date of the calendar,
considering the settings of the calendar. If e.g. you have defined workfree
weekends to your calendar, a duration of three days added to a Friday will
result in the Wednesday following.
Data Type Explanation
Parameter:
Date Date/Time Date the duration is to be inserted at
Example Code
Dim calendar As VcCalendar
Dim newDate As Date
CalcDuration
Method of VcCalendar
This method lets you retrieve the number of work time elements (e.g. work
days) available between two defined dates. The unit (e.g. days) of the value
returned is the one defined in the Time Unit field on the General property
page.
Data Type Explanation
Parameter:
fromDate Date/Time Start date of the duration that the number of work
time elements is to be retrieved of
toDate Date/Time End date of the duration that the number of work
time elements is to be retrieved of
Return value Long Number of time units (e.g. days) of the duration
Example Code
Dim calendar As VcCalendar
Dim duration As Long
Clear
Method of VcCalendar
GetEndOfPreviousWorktime
Method of VcCalendar
This method lets you retrieve the end of the work time that precedes the
reference date. The reference date has to belong to a non-working period.
Data Type Explanation
Parameter:
Date Date/Time Date that the previous work time refers to
Example Code
Dim calendar As VcCalendar
Dim endOfWork As Date
GetNextIntervalBorder
Method of VcCalendar
This method lets you retrieve the beginning of the interval succeeding. If the
reference date is in a non work time, the date returned will be the beginning
of the succeeding work time, and vice versa.
Data Type Explanation
Parameter:
Date Date/Time Date that the following interval border refers to
Example Code
Dim calendar As VcCalendar
Dim nextIntervalBorder As Date
GetPreviousIntervalBorder
Method of VcCalendar
This method lets you retrieve the end of the preceding interval. If the
reference date is in a non work time, the date returned will be the end of the
preceding work time, and vice versa.
Data Type Explanation
Parameter:
Date Date/Time Date that of the preceding interval border refers to
Example Code
Dim calendar As VcCalendar
Dim previousIntervalBorder As Date
GetStartOfInterval
Method of VcCalendar
This method lets you retrieve the beginning of the interval that the reference
date is located in.
Data Type Explanation
Parameter:
Date Date/Time Reference date of the interval, that the start date is
to be retrieved of
Example Code
Dim calendar As VcCalendar
Dim startOfInterval As Date
GetStartOfNextWorktime
Method of VcCalendar
This method lets you retrieve the beginning of the work time that succeeds
the reference date.
Data Type Explanation
Parameter:
Date Date/Time Reference date, that the start date of the work time
following is to be retrieved of
Example Code
Dim calendar As VcCalendar
Dim startOfNextWorktime As Date
IsWorktime
Method of VcCalendar
This method lets you enquire whether or not the date passed is in a work
time.
Data Type Explanation
Parameter:
Date Date/Time Date to be checked for being a work time
Return value Boolean Date passed does /does not belong to a work time
Example Code
Dim calendar As VcCalendar
Dim isWorktime As Boolean
Update
Method of VcCalendar
This method lets you update a calendar after having modified it. It ensures
other objects that use calendar (e.g. a calendarGrid) to be updated as well.
Example Code
Dim calendar As VcCalendar
7.12 VcCalendarCollection
Properties
• _NewEnum
• Active
• Count
Methods
• Add
• AddBySpecification
• CalendarByIndex
• CalendarByName
• Copy
• FirstCalendar
• NextCalendar
• Remove
• Update
Properties
_NewEnum
Read Only Property of VcCalendarCollection
Example Code
Dim calendar As VcCalendar
Active
Property of VcCalendarCollection
This property lets you set or retrieve the default calendar that is used by
nodes, if no other calendar was assigned.
Data Type Explanation
Example Code
Dim workday As VcWorkday
Dim freeday As VcWorkday
Dim workweek As VcWorkweek
Dim calendarCltn As VcCalendarCollection
Dim calendar As VcCalendar
calendar.Update
Count
Read Only Property of VcCalendarCollection
This property lets you retrieve the number of calendars in the calendar
collection.
Data Type Explanation
Methods
Add
Method of VcCalendarCollection
Parameter:
calendarName String Calendar name
AddBySpecification
Method of VcCalendarCollection
This method lets you create a calendar by using a calendar specification. This
way of creating allows calendar objects to become persistent. The
specification of a calendar can be saved and re-loaded (see VcCalendar
property Specification). In a subsequent the calendar can be created again
from the specification and is identified by its name.
Data Type Explanation
Parameter:
Specification String Calendar specification
CalendarByIndex
Method of VcCalendarCollection
This method lets you access a calendar by its index. If no calendar of the
specified index does exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
index Integer Index of the calendar
CalendarByName
Method of VcCalendarCollection
By this method you can retrieve a calendar by its name. If a calendar of the
specified name does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
CalendarName String Name of the calendar
Example Code
Dim calendarCltn As VcCalendarCollection
Copy
Method of VcCalendarCollection
By this method you can copy a calendar. If the calendar that is to be copied
exists, and if the name for the new calendar does not yet exist, the new
calendar object is returned. Otherwise "Nothing" (in Visual Basic) or "0"
(other languages) will be returned.
Parameter:
calendarName String Name of the calendar to be copied
FirstCalendar
Method of VcCalendarCollection
This method can be used to access the initial value, i.e. the first calendar of a
calendar collection, and then to continue in a forward iteration loop by the
method NextCalendar for the calendars following. If there is no calendar in
the FilterCollection object, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
NextCalendar
Method of VcCalendarCollection
Example Code
Dim calendarCltn As VcCalendarCollection
Dim calendar As VcCalendar
Remove
Method of VcCalendarCollection
This method lets you delete a calendar. If the calendar is used in another
object, it cannot be deleted. Then False will be returned, otherwise True.
Data Type Explanation
Update
Method of VcCalendarCollection
This method lets you update a calendar collection after having modified it.
Data Type Explanation
7.13 VcCalendarGrid
Properties
• BackColorAsARGB
• BackColorDataFieldIndex
• BackColorMapName
• CalendarName
• CalendarNameDataFieldIndex
• CalendarNameMapName
• Identifiable
• LineColor
• LineColorDataFieldIndex
• LineColorMapName
• LineThickness
• LineType
• Name
• Pattern
• PatternColorAsARGB
• PatternColorDataFieldIndex
• PatternColorMapName
• PatternDataFieldIndex
• PatternMapName
• Priority
• Specification
• UseGraphicalAttributesOfIntervals
• Visible
• VisibleDataFieldIndex
• VisibleMapName
Methods
• IdentifyInterval
• IdentifyIntervalAsVariant
Properties
BackColorAsARGB
Property of VcCalendarGrid
This property lets you set or retrieve the color of the background of the
calendar grid. Color values have a transparency or alpha value, followed by a
value for a red, a blue and a green partition (ARGB). The values range
between 0..255. An alpha value of 0 equals complete transparency, whereas
255 represents a completely solid color. When casting an RGB value on an
ARGB value, an alpha value of 255 has to be added.
({0...255},{0...255},{0...255},{0...255})
Default value: &hFFD8D8D8 (gray)
Example Code
Dim section As VcSection
Dim calendarGrid As VcCalendarGrid
BackColorDataFieldIndex
Property of VcCalendarGrid
This property lets you set or retrieve the data field index to be used with a
color map specified by the property BackColorMapName. If you set this
property to -1, no map will be used.
Data Type Explanation
BackColorMapName
Property of VcCalendarGrid
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. If a map name and
additionally a data field index is specified in the property
BackColorDataFieldIndex, then the background color is controlled by the
map. If no data field entry applies, the background color that is specified in
the property BackColor will be used.
Data Type Explanation
CalendarName
Property of VcCalendarGrid
This property lets you assign a calendar to the calendar grid to highlight the
calendar's workfree periods.
Data Type Explanation
Property value String Character string that passes the calendar name
CalendarNameDataFieldIndex
Property of VcCalendarGrid
This property lets you set or retrieve the index of the data field to store the
name of the calendar if you wish to use an individual calendar for a grouping
level. This is only possible as long as no data has been loaded. This property
also can be set on the Calendar property page.
Data Type Explanation
Property value Long Index of the data field which contains the name of
the calendar
CalendarNameMapName
Property of VcCalendarGrid
This property lets you set or retrieve the name of a calendar map (type
vcTextMap). If set to "", no map will be used. If a map name and additionally
a data field index is specified by the property CalendarNameDataField-
Index, the calendar is selected by the map. If no data field entry applies, the
calendar that was assigned to the calendar grid of the grouping level will be
used.
Data Type Explanation
Identifiable
Property of VcCalendarGrid
This property lets you set or retrieve whether or not a calendar grid can be
identified. If this property was set to True, the calendar grid can be identified
by the VcGantt method IdentifyObjectAt. Also, a tooltip text requested by
OnTooltipText will only appear if this property was set to True. In the same
way, the OnCalendarGridRClick event will only be triggered if the
calendar grid is identifiable.
This property can also be set in the calendar grid section of the Edit time
scale section dialog.
Data Type Explanation
Example Code
Dim section As VcSection
Dim calendarGrid As VcCalendarGrid
LineColor
Property of VcCalendarGrid
This property lets you set or retrieve the line color of a calendar grid and can
also be set in the Line attributes of calendar grid dialog.
Data Type Explanation
({0...255},{0...255},{0...255})
Default value: As defined in the dialog
LineColorDataFieldIndex
Property of VcCalendarGrid
This property lets you set or retrieve the data field index to be used with a
map specified by the property LineColorMapName. If you set this property
to -1, no map will be used.
Data Type Explanation
LineColorMapName
Property of VcCalendarGrid
This property lets you set or retrieve the name of a map for the line color. If
set to "" or if the property LineColorDataFieldIndex is set to -1, then no
map will be used.
Data Type Explanation
LineThickness
Property of VcCalendarGrid
This property lets you set or retrieve the line thickness of the calendar grid
lines.
If you set this property to values between 1 and 4, an absolute line thickness
is defined in pixels. Irrespective of the zoom factor a line will always show
the same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
This property also can be set in the Attributes of calendar grid dialog.
Data Type Explanation
LineType
Property of VcCalendarGrid
This property lets you set or retrieve the line type of a calendar grid.
This property also can be set in the Attributes of calendar grid dialog.
Data Type Explanation
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
Name
Property of VcCalendarGrid
This property lets you set or retrieve the name of a calendar grid.
Data Type Explanation
Pattern
Property of VcCalendarGrid
This property lets you set or retrieve the pattern of the calendar grid. Also see
set/getPatternColor.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
PatternColorAsARGB
Property of VcCalendarGrid
This property lets you set or retrieve the pattern color of the calendar grid.
Color values have a transparency or alpha value, followed by a value for a
red, a blue and a green partition (ARGB). The values range between 0..255.
An alpha value of 0 equals complete transparency, whereas 255 represents a
completely solid color. When casting an RGB value on an ARGB value, an
alpha value of 255 has to be added.
({0...255},{0...255},{0...255},{0...255})
Example Code
Dim section As VcSection
Dim calendarGrid As VcCalendarGrid
PatternColorDataFieldIndex
Read Only Property of VcCalendarGrid
This property lets you set or retrieve the data field index that has to be
specified if the property PatternColorMapName is used. If you set this
property to -1, no map will be used.
Data Type Explanation
PatternColorMapName
Property of VcCalendarGrid
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. Only if a map name and a
data field index are specified in the property PatternColorDataFieldIndex,
the pattern color is controlled by the map. If no data field entry applies, the
pattern color of the calendar grid that is specified in the property
PatternColor will be used.
Data Type Explanation
PatternDataFieldIndex
Property of VcCalendarGrid
This property lets you set or retrieve the data field index to be used together
with the property PatternMapName. If you set this property to -1, no map
will be used.
Data Type Explanation
PatternMapName
Property of VcCalendarGrid
This property lets you set or retrieve the name of a pattern map (type
vcPatternMap). If set to "", no map will be used. Only if a map name and
additionally a data field index are specified in the property PatternData-
FieldIndex, the pattern is controlled by the map. If no data field entry
applies, the pattern of the layer that is specified in the property Pattern will
be used.
Data Type Explanation
Priority
Property of VcCalendarGrid
This property lets you set or retrieve the priority of the calendar grid. If two
objects are located in the same position of the diagram, the object of higher
priority is displayed in front of objects of lower priority. By default, calendar
grid lines are of lowest priority. Nodes are assigned the value 0 and thus have
the highest priority of all objects. If you want a calendar grid to be displayed
in front of the nodes, its priority needs to be set to a positive value.
Data Type Explanation
Example Code
Dim section As VcSection
Dim calendarGrid As VcCalendarGrid
Specification
Read Only Property of VcCalendarGrid
UseGraphicalAttributesOfIntervals
Property of VcCalendarGrid
This property lets you set or retrieve whether the graphical attributes that
have been set for the intervals are to be displayed. This feature can be also set
in the dialog Administrate Intervals (which you reach by clicking in the
Specify Calendar dialog). If this property is set to False, the settings of the
property VcInterval.UseGraphicalAttributes have no effect.
Data Type Explanation
Visible
Property of VcCalendarGrid
This property lets you set or retrieve whether a calendar grid is visible.
Data Type Explanation
Example Code
Dim section As VcSection
Dim calendarGrid As VcCalendarGrid
VisibleDataFieldIndex
Property of VcCalendarGrid
This property lets you set or retrieve the index of the data field to assigne a
visibility mode to the calendar grid: 1 (for "visible") or 0 (for invisible). This
property also can be set in the Calendar grid dialog.
Data Type Explanation
Property value Long Index of the data field which contains the visibility
mode
VisibleMapName
Property of VcCalendarGrid
This property lets you set or retrieve the name of a map (type vcTextMap) to
set the visibility mode. If set to "", no map will be used. If a map name and
additionally a data field index is specified by the property VisibilityData-
FieldIndex, the visibility mode is selected by the map. If no data field entry
applies, the calendar grid will be set to "visible". This property also can be set
in the CalendarGrid dialog.
Data Type Explanation
Methods
IdentifyInterval
Method of VcCalendarGrid
This method lets you identify an interval object of the calendar that was
assigned to the calendar grid at the coordinates passed. Since usually copies
of intervals exist in a calendar, intervals tend not to be unique (for instance,
the same weekend interval may repeat 52 times per year). Therefore the
method also returns the start and end dates of the interval retrieved.
This method is useful when being invoked within a tooltip event to return the
interval at the position of the mouse cursor.
Please Note: If you are coding in VBScript, you will have to use the
analogous method IdentifyIntervalAsVariant because of the by-reference
parameters .
Data Type Explanation
Parameter:
x Long X coordinate of the cursor
Example Code
Private Sub VcGantt1_DragDrop(Source As Control, X As Single, Y As Single)
xPix = X / Screen.TwipsPerPixelX
yPix = Y / Screen.TwipsPerPixelY
End Sub
IdentifyIntervalAsVariant
Method of VcCalendarGrid
7.14 VcCalendarGridCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• CalendarGridByIndex
• CalendarGridByName
• Copy
• FirstCalendarGrid
• NextCalendarGrid
• Remove
• Update
Properties
_NewEnum
Read Only Property of VcCalendarGridCollection
Example Code
Dim calendarGrid As VcCalendarGrid
Count
Read Only Property of VcCalendarGridCollection
This property lets you retrieve the number of calendar grids in the
CalendarGridCollection object.
Data Type Explanation
Example Code
Dim calendarGridCltn As Vc CalendarGridCollection
Dim numberOfCalendarGrids As Long
Methods
Add
Method of VcCalendarGridCollection
Parameter:
calendarGridName String name of calendar grid
Example Code
Set newCalendarGrid = VcGantt1.CalendarGridCollection.Add("Grid1")
AddBySpecification
Method of VcCalendarGridCollection
This method lets you create a calendar grid by using a calendar grid
specification. This way of creating allows calendar grid objects to become
persistent. The specification of a calendar grid can be saved and re-loaded
(see VcCalendarGrid property Specification). In a subsequent session the
calendar grid can be created again from the specification and is identified by
its name.
Data Type Explanation
Parameter:
specification String calendar grid specification
CalendarGridByIndex
Method of VcCalendarGridCollection
This method lets you access a calendar grid by its index. If a calendar grid of
the specified index does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the calendar grid
Example Code
Dim calendarGridCltn As VcCalendarGrid
Dim calendar As VcCalendar
CalendarGridByName
Method of VcCalendarGridCollection
This method is used to access a calendar grid by its name. If a calendar grid
of the specified name does not exist, a none object will be returned (Nothing
in Visual Basic).
Data Type Explanation
Parameter:
calendarGridName String Name of the calendar grid
Example Code
Dim calendarGridCltn As VcCalendarGridCollection
Dim calendarGrid As VcCalendarGrid
Copy
Method of VcCalendarGridCollection
By this method you can copy a calendar grid. If the calendar grid that is to be
copied exists, and if the name for the new calendar grid does not yet exist, the
new calendar grid object is returned. Otherwise "Nothing" (in Visual Basic)
or "0" (other languages) will be returned.
Data Type Explanation
Parameter:
calendarGridName String Name of the calendar grid to be copied
Example Code
Dim calendarGridCltn As VcCalendarGridCollection
Dim calendarGrid As VcCalendarGrid
FirstCalendarGrid
Method of VcCalendarGridCollection
This method can be used to access the initial value, i.e. the first calendar grid
of a calendar grid collection and then to continue in a forward iteration loop
by the method NextCalendarGrid for the calendar grids following. If there
is no calendar grid in the CalendarGridCollection, a none object will be
returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim calendarGridCltn As VcCalendarGridCollection
Dim calendarGrid As VcCalendarGrid
NextCalendarGrid
Method of VcCalendarGridCollection
Example Code
Dim calendarGridCltn As VcCalendarGridCollection
Dim calendarGrid As VcCalendarGrid
Remove
Method of VcCalendarGridCollection
This method lets you delete a calendar grid. If the calendar grid is used in
another object, it cannot be deleted. Then False will be returned, otherwise
True.
Data Type Explanation
Parameter:
calendarGridName String Calendar grid name
Example Code
Dim calendarGridCltn As VcCalendarGridCollection
Dim calendarGrid As VcCalendarGrid
Update
Method of VcCalendarGridCollection
This method has to be used when calendar grid modifications have been
carried out. The method Update updates all objects that are concerned by the
calendar grid you have edited. You should call this method at the end of the
code that defines the calendar grids and the calendar grid collection.
Otherwise the update will be processed before all calendar grid definitions
are processed.
Data Type Explanation
Example Code
Dim calendarGrid As VcCalendarGrid
7.15 VcCalendarProfile
Properties
• IntervalCollection
• Name
• Specification
• Type
Methods
• PutInOrderAfter
Properties
IntervalCollection
Read Only Property of VcCalendarProfile
This property gives access to the IntervalCollection object that contains all
intervals available.
Data Type Explanation
Name
Read Only Property of VcCalendarProfile
This property lets you set or retrieve the name of a calendar profile.
Specification
Read Only Property of VcCalendarProfile
Type
Property of VcCalendarProfile
This property lets you set or retrieve the calendar profile type. If you change
the type, all properties of this calendar profile will be deleted.
Data Type Explanation
Possible Values:
vcDayProfile 4
vcShiftProfile 5
vcWeekProfile 3
vcYearProfile 2
Methods
PutInOrderAfter
Method of VcCalendarProfile
This method lets you set the calendar profile behind the calendar profile
specified by name, within the CalendarProfileCollection. If you set the name
to "", the calendar profile will be put in the first position. The order of the
calendar profiles within the collection determines the order by which they
apply to the calendars.
Data Type Explanation
Parameter:
refNameParam String Name of the calendar profile behind which the
current calendar profileis to be put.
Example Code
Dim calProfCltn As VcCalendarProfileCollection
Dim calProf1 As VcCalendarProfile
Dim calProf2 As VcCalendarProfile
calProfCltn = VcGantt1.CalendarProfileCollection()
calProf1 = calProfCltn.Add("calProf1")
calProf2 = calProfCltn.Add("calProf2")
calProf1.PutInOrderAfter("calProf2")
calProfCltn.Update()
7.16 VcCalendarProfileCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• CalendarProfileByIndex
• CalendarProfileByName
• Copy
• FirstCalendarProfile
• NextCalendarProfile
• Remove
• SelectCalendarProfiles
• Update
Properties
_NewEnum
Property of VcCalendarProfileCollection
Count
Read Only Property of VcCalendarProfileCollection
This property lets you retrieve the number of calendar profiles in the calendar
profile collection.
Data Type Explanation
Methods
Add
Method of VcCalendarProfileCollection
Parameter:
profileName String Calendar profile name
AddBySpecification
Method of VcCalendarProfileCollection
This method lets you create a calendar profile by using a calendar profile
specification. This way of creating allows calendar profile objects to become
persistent. The specification of a calendar profile can be saved and re-loaded
(see VcCalendarProfile property Specification). In a subsequent the calendar
profile can be created again from the specification and is identified by its
name.
Data Type Explanation
Parameter:
Specification String Calendar profile specification
CalendarProfileByIndex
Method of VcCalendarProfileCollection
This method lets you access a calendar profile by its index. If no calendar
profile of the specified index does exist, a none object will be returned
(Nothing in Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the calendar profile
CalendarProfileByName
Method of VcCalendarProfileCollection
By this method you can retrieve a calendar profile by its name. If no calendar
profile of the specified name does exist, a none object will be returned
(Nothing in Visual Basic).
Data Type Explanation
Parameter:
profileName String Name of the calendar profile object
Copy
Method of VcCalendarProfileCollection
By this method you can copy a calendar profile. If the calendar profile that is
to be copied exists, and if the name for the new calendar profile does not yet
exist, the new calendar profile object is returned. Otherwise "Nothing" (in
Visual Basic) or "0" (other languages) will be returned.
Data Type Explanation
Parameter:
profileName String Name of the calendar profile to be copied
FirstCalendarProfile
Method of VcCalendarProfileCollection
This method can be used to access the initial value, i.e. the first calendar
profile of a calendar profile collection, and then to continue in a forward
iteration loop by the method NextCalendarProfile for the calendar profiles
following. If there is no calendar profile in the FilterCollection object, a none
object will be returned (Nothing in Visual Basic).
Data Type Explanation
NextCalendarProfile
Method of VcCalendarProfileCollection
Remove
Method of VcCalendarProfileCollection
This method lets you delete a calendar profile. If the calendar profile is used
in another object, it cannot be deleted. Then False will be returned, otherwise
True.
Data Type Explanation
Parameter:
profileName String Calendar profile name
SelectCalendarProfiles
Method of VcCalendarProfileCollection
This method lets you specify the calendar profiles that the calendar profile
collection is to contain.
Data Type Explanation
Parameter:
selectionType CalendarProfileTypeEnum Type of calendar profile to be selected
Possible Values:
vcDayProfile 4
vcShiftProfile 5
vcWeekProfile 3
vcYearProfile 2
Example Code
Dim calendarProfileCltn As VcCalendarProfileCollection
Update
Method of VcCalendarProfileCollection
This method lets you update a calendar profile collection after having
modified it.
Data Type Explanation
7.17 VcCurve
Properties
• Addend
• CurveSource
• CurveType
• Fill2Color
• Fill2Pattern
• Fill2ReferenceName
• FillColor
• FillPattern
• FillReferenceName
• FilterName
• Histogram
• LayerName
• LineColor
• LineThickness
• LineType
• MarkCurve
• Name
• OverloadResultsCalendarName
• Pattern2Color
• PatternColor
• PointsEquidistant
• Specification
• StackReferenceName
• TimeUnit
• UnitsPerStep
• UpdateBehaviorName
• ValencyDataFieldIndex
• Visible
Methods
• Clear
• DeletePoint
• DeletePointAsVariant
• GetFirstOverload
• GetFirstOverloadAsVariant
• GetFirstOverloadEx
• GetNextOverload
• GetNextOverloadAsVariant
• GetNextOverloadEx
• GetValues
• GetValuesAsVariant
• GetValuesEx
• SetValues
Properties
Addend
Property of VcCurve
This property lets you add a value to all y values of a histogram curve which
was generated by API commands.
Data Type Explanation
Property value Long Value that is added to the y values of the histogram
curve
Example Code
Dim histogram As VcHistogram
Dim fixCurve As VcCurve
fixCurve.Addend ("1")
CurveSource
Read Only Property of VcCurve
This property lets you enquire the source that the data of a histogram curve
are taken from. You can set this property in the Select Curve Data Source
dialog box. If vcSetCurve is returned (Data specified manually in the
Select Curve Data Source dialog box), you can set the data in your
application by the SetValues method. If vcCalculateFromLayer is returned
(Data generated by layer), the data will be calculated from the layers.
Data Type Explanation
Property value CurveSourceEnum Calculation from field data, from dc data, from layer
data, curve set
Possible Values:
vcCalculateFromLayer 1 Curve values calculated from layer
vcSetCurve 3 Curve values are set manually
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
Dim curveSource As Long
curveSource = curve.CurveSource
CurveType
Read Only Property of VcCurve
Possible Values:
vcCapacityCurve 215 Capacity curve
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
Dim curveType As Long
curveType = curve.CurveType
Fill2Color
Property of VcCurve
This property lets you set or retrieve the background color of pattern in the
area above the second reference curve. The filling of the second reference
curve will be displayed only if the values of the current curve are greater than
those of the second reference curve.
You can also set this property in the Edit Histogram dialog.
Data Type Explanation
({0...255},{0...255},{0...255})
Default value: As defined in the dialog
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
Fill2Pattern
Property of VcCurve
This property lets you set or retrieve the fill pattern of the area between a
histogram curve and the second reference curve. You can also set this
property in the Edit Histogram dialog.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
curve.Fill2Pattern = vcDiagCrossPattern
Fill2ReferenceName
Property of VcCurve
This property lets you set or retrieve the name of the second reference curve
of a curve. The area between the curve and its second reference curve
specifies can be filled by a pattern. This property is set in the Edit
Histogram dialog.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
Dim fillRef As Object
FillColor
Property of VcCurve
This property lets you set or retrieve the color of the area between a
histogram curve and the fill reference object set. You can also set this
property in the Edit Histogram dialog.
Data Type Explanation
({0...255},{0...255},{0...255})
Default value: As defined in the dialog
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
FillPattern
Property of VcCurve
This property lets you set or retrieve the fill pattern of the area between a
histogram curve and the fill reference object set. You can also set this
property in the Edit Histogram dialog.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
curve.FillPattern = vcDiagCrossPattern
FillReferenceName
Property of VcCurve
This property lets you enquire the name of the fill reference (for example a
different curve or the x axis) of a histogram curve. The fill reference specifies
an object that limits an area to be filled by colors and/or patterns. This
property is set in the Edit Histogram dialog.
Example Code
Private Sub VcGantt2_OnDiagramRClick(ByVal x As Long, ByVal y As Long,
returnStatus As Variant)
Dim histogram As VcHistogram
Dim curve As VcCurve
FilterName
Property of VcCurve
This property lets you assign a filter to the curve or enquire the existing one.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
Histogram
Read Only Property of VcCurve
This property lets you retrieve the histogram which the curve belongs to.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
LayerName
Property of VcCurve
This property lets you assign a layer to the curve or enquire the existing one.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
LineColor
Property of VcCurve
This property lets you set or retrieve the line color of a histogram curve. This
property you can also set in the Edit Histogram dialog.
Data Type Explanation
({0...255},{0...255},{0...255})
Default value: As defined in the dialog
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
LineThickness
Property of VcCurve
This property lets you set or retrieve the line thickness of a histogram curve.
If you set this property to values between 1 and 4, an absolute line thickness
is defined in pixels. Irrespective of the zoom factor a line will always show
the same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
curve.LineType = vcSolid
curve.LineThickness = 3
' or:
curve.LineType = vcLineType5
curve.LineThickness = 20
LineType
Property of VcCurve
This property lets you set or retrieve the line type of a histogram curve. If for
stacked curves you do not wish the lines to be displayed, you can select
vcNone. This property also can be set in the Edit Histogram dialog.
Data Type Explanation
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
curve.LineType = vcSolid
MarkCurve
Property of VcCurve
This property lets you set or retrieve the marking state of a histogram curve
set by the API.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim fixCurve As VcCurve
fixCurve.MarkCurve = True
Name
Read Only Property of VcCurve
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
Dim curveName As String
curveName = curve.Name
OverloadResultsCalendarName
Property of VcCurve
This property lets you set or retrieve a calendar to store the intervalls that
have been calculated by the overload dates. You could use this calendar, for
instance, to display a calendar grid in a group
Data Type Explanation
Pattern2Color
Property of VcCurve
This property lets you set or retrieve the foreground color of the pattern of the
area above the second reference curve. The filling of the second reference
curve will be displayed only if the values of the current curve are greater than
those of the second reference curve.
You can also set this property in the Edit Histogram dialog.
Data Type Explanation
({0...255},{0...255},{0...255})
Default value: As defined in the dialog
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
PatternColor
Property of VcCurve
This property lets you set or retrieve the color of the pattern of the area
between a histogram curve and the fill reference object set. You can also set
this property in the Edit Histogram dialog.
Data Type Explanation
({0...255},{0...255},{0...255})
Default value: As defined in the dialog
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
PointsEquidistant
Property of VcCurve
This property lets you set or retrieve whether the curve points are to be
equidistant. In case of False, the curve points will be created only in those
points where the y values are changing. This property also can be set in the
Select Curve Data Source dialog.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
curve.PointsEquidistant = False
Specification
Read Only Property of VcCurve
StackReferenceName
Property of VcCurve
This property lets you set or retrieve the name of the stack reference curve of
a histogram curve. It specifies on which other curve each curve is to be
stacked, and it has to be specified in order to be able to stack the curves. You
can also set this property in the Edit Histogram dialog.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
Dim referenceCurve As Object
Set referenceCurve =
histogram.CurveCollection.CurveByName(curve.StackReferenceName)
TimeUnit
Read Only Property of VcCurve
This property lets you retrieve the time unit of a histogram curve. The
property can be applied to curves that were generated by the API only. If
applied to a curve generated from layer values, the property will return the
result of -1. You can set the time unit on the property page General.
Possible Values:
vcDay 5 Time unit day
vcHour 6 Time unit hour
vcMinute 7 Time unit minute
vcSecond 8 Time unit second
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
Dim timeUnit As Long
timeUnit = curve.timeUnit
UnitsPerStep
Read Only Property of VcCurve
This property lets you retrieve the number of units per step of a histogram
curve. The number can be set on the property page General.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
Dim unitsPerStep As Integer
unitsPerStep = curve.UnitsPerStep
UpdateBehaviorName
Property of VcCurve
This property lets you set or retrieve the name of the UpdateBehavior.
Data Type Explanation
ValencyDataFieldIndex
Property of VcCurve
This property lets you set or retrieve the valency field of a curve generated by
layer. The valency field is the data field from which for each activity the
valency for the capacity sum is to be taken.
Data Type Explanation
Visible
Property of VcCurve
This property lets you set or retrieve whether a curve is visible. You can also
set this property in the Administer Histograms dialog.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
curve.Visible = True
Methods
Clear
Method of VcCurve
This method lets you set all y values of a curve to zero. The method can be
applied only to those curves the values of which were generated by the API.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim fixCurve As VcCurve
fixCurve.Clear
DeletePoint
Method of VcCurve
This method lets you remove the curve point nearest to the x-coordinate.
Note: If you use VBScript, you can only use the analogue method Delete-
PointAsVariant because of the parameters by Reference.
Data Type Explanation
Parameter:
x Long X value of the curve point to be deleted
Return value Boolean Curve point was (True) / was not (False) deleted
successfully
Example Code
Private Sub VcGantt1_OnCurveRClick(ByVal curve As VcGanttLib.VcCurve, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
Dim pointDate As Date
Dim deleted As Boolean
returnStatus = vcRetStatNoPopup
deleted = curve.DeletePoint(x, y, pointDate)
If deleted Then Call MsgBox(-pointDate)
End If
End Sub
DeletePointAsVariant
Method of VcCurve
This method is identical with the method DeletePoint except for the
parameters. It was necessary to implement this event because some languages
(e.g. VBScript) can use parameters by Reference (indicated by ) only if the
type of these parameters is VARIANT.
GetFirstOverload
Method of VcCurve
An overload is the area between the current curve and a reference curve with
the former showing higher values than the latter. The reference curve is the
curve defined as the second fill reference (2nd Ref) in the Edit Histogram
dialog.
This method can be used to access the initial value, i.e. the first overload, and
then to continue in a forward iteration loop by the method GetNextOverload
for the overloads following.
Please note: If you use VBScript, due to the by-reference parameters, you
can only use the analogous method GetFirstOverloadAsVariant.
Please note: For floating point numbers in the parameters fromValue and
toValue please use the method GetFirstOverloadEx.
Data Type Explanation
Parameter:
fromDate Date/Time Start date of the overload area
Return value Boolean Overload was (True) / was not (False) retrieved
successfully
Example Code
Dim histogram As VcHistogram
yValues = "6;6;6;6;6;0;0;6;6;6;6;6;0;0;6;6;6;6;6;0;0;6;6;6;6;6;0;0;6;6;6;6;6"
fixCurve.SetValues "31.08.14", yValues
GetFirstOverloadAsVariant
Method of VcCurve
This method is identical with the method GetFirstOverload except for the
parameters. It was necessary to implement this event because some languages
(e.g. VBScript) can use parameters by Reference (indicated by ) only if the
type of these parameters is VARIANT.
GetFirstOverloadEx
Method of VcCurve
An overload is the area between the current curve and a reference curve with
the former showing higher values than the latter. The reference curve is the
curve defined as the second fill reference (2nd Ref) in the Edit Histogram
dialog.
This method can be used to access the initial value, i.e. the first overload, and
then to continue in a forward iteration loop by the method GetNext-
OverloadEx for the overloads following.
Please note: If you use VBScript, due to the by-reference parameters, you
can only use the analogous method GetFirstOverloadAsVariant.
Parameter:
fromDate Date/Time Start date of the overload area
Return value Boolean Overload was (True) / was not (False) retrieved
successfully
Example Code
Dim histogram As VcHistogram
yValues = "6;6;6;6;6;0;0;6;6;6;6;6;0;0;6;6;6;6;6;0;0;6;6;6;6;6;0;0;6;6;6;6;6"
fixCurve.SetValues "31.08.14", yValues
GetNextOverload
Method of VcCurve
An overload is the area between the current curve and a reference curve with
the former showing higher values than the latter. The reference curve is the
curve defined as the second fill reference (2nd Ref) in the Edit Histogram.
Please note: If you use VBScript, you can only use the analogue method
GetNextOverloadAsVariant because of the parameters by Reference.
Please note: For floating point numbers in the parameters fromValue and
toValue please use the method GetNextOverloadEx.
Data Type Explanation
Parameter:
fromDate Date/Time Start date of the overload area
Return value Boolean Overload was (True) / was not (False) retrieved
successfully.
Example Code
...
bOK = curve1.GetFirstOverload(fromDate, fromValue, toDate, toValue)
MsgBox fromDate & " (" & fromValue & ") - " & toDate & " (" & toValue & ")"
While bOK
bOK = curve1.GetNextOverload(fromDate, fromValue, toDate, toValue)
If bOK Then MsgBox fromDate & " (" & fromValue & ") - " & toDate & " (" _
& toValue & ")"
Wend
GetNextOverloadAsVariant
Method of VcCurve
This method is identical with the method GetNextOverload except for the
parameters. It was necessary to implement this event because some languages
(e.g. VBScript) can use parameters by Reference (indicated by ) only if the
type of these parameters is VARIANT.
GetNextOverloadEx
Method of VcCurve
An overload is the area between the current curve and a reference curve with
the former showing higher values than the latter. The reference curve is the
curve defined as the second fill reference (2nd Ref) in the Edit Histogram.
Please note: If you use VBScript, you can only use the analogue method
GetNextOverloadAsVariant because of the parameters by Reference.
Parameter:
fromDate Date/Time Start date of the overload area
Return value Boolean Overload was (True) / was not (False) retrieved
successfully.
Example Code
...
bOK = curve1.GetFirstOverload(fromDate, fromValue, toDate, toValue)
MsgBox fromDate & " (" & fromValue & ") - " & toDate & " (" & toValue & ")"
While bOK
bOK = curve1.GetNextOverload(fromDate, fromValue, toDate, toValue)
If bOK Then MsgBox fromDate & " (" & fromValue & ") - " & toDate & " (" _
& toValue & ")"
Wend
GetValues
Method of VcCurve
This method lets you retrieve the value of a histogram curve that belongs to a
specified date. Since the date specified may not be located in a defined point
(pair of coordinates) of the curve, the date and value of the closest defined
point before resp. after the specified date will be returned. If a point was hit
exactly, its corresponding value will be returned two times i.e. as previous
and next value.
Note: If you use VBScript, you can only use the analogous method Get-
ValuesAsVariant because of the parameters by Reference.
Note: For floating point values please use the property GetValuesEx.
Data Type Explanation
Parameter:
inputDate Date/Time Date that the value of the histogram curve is to be
retrieved
leftDate Date/Time Date of the last defined point of the curve before the
specified date
leftValue Long Value of the last defined point of the curve before
the specified date
rightDate Date/Time Date of the next defined point of the curve after the
specified date
rightValue Long Value of the next defined point of the curve after the
specified date
Example Code
Dim histogram As VcHistogram
Dim curve1 As VcCurve
Dim inputDate As String
MsgBox leftDate & " (" & leftValue & ") " & rightDate & " (" & rightValue & ") "
GetValuesAsVariant
Method of VcCurve
This method is identical with the method GetValues except for the
parameters. It was necessary to implement this event because some languages
(e.g. VBScript) can use parameters by Reference (indicated by ) only if the
type of these parameters is VARIANT.
GetValuesEx
Method of VcCurve
This method lets you retrieve the value of a histogram curve that belongs to a
specified date. Compared to the method GetValues this method is
appropriate for floating point values. Since the date specified may not be
located in a defined point (pair of coordinates) of the curve, the date and
value of the closest defined point before and after the specified date will be
returned. If a point was hit exactly, its corresponding value will be returned
twice, i.e. as the previous and the following value.
Note: If you use VBScript, because of the by-reference parameters you can
only use the analogous method GetValuesAsVariant.
Data Type Explanation
Parameter:
inputDate Date/Time Date that the value of the histogram curve is to be
retrieved
leftDate Date/Time Date of the last defined point of the curve before the
specified date
leftValue Double Value of the last defined point of the curve before
the specified date
rightDate Date/Time Date of the next defined point of the curve after the
specified date
rightValue Double Value of the next defined point of the curve after the
specified date
Example Code
Dim histogram As VcHistogram
Dim curve1 As VcCurve
Dim inputDate As String
MsgBox leftDate & " (" & leftValue & ") " & rightDate & " (" & rightValue & ") "
SetValues
Method of VcCurve
This method lets you set the values of a histogram curve that was generated
by the API. A curve built by SetValues can be used as a capacitiy curve to
display engine resources or can be used as a reference curve.
Curve points equidistant: You can transfer a start value (startValue) and a
string separated by semicolons that contains the y values. The coordinates of
points that form the curve are calculated from the start value and the y values,
combined with the Time Unit and Smallest time interval (property page
General). Curves generated in this way cannot be edited interactively.
Curve points not equidistant: You have to call the method for each pair of
(x,y) values. The Time Unit and Smallest time interval are not relevant.
The curve can be edited interactively.
Data Type Explanation
Parameter:
startDate Date/Time Start date
Example Code
Dim histogram As VcHistogram
Dim curve As VcCurve
Dim yValues As String
' If the option Curve points equidistant is checked for the curve:
yValues = "5;1;1;2;2;2;4;5;5;3;2;1;"
curve.SetValues("2012/02/14 12:05:00", yValues)
' If the option Curve points equidistant is not checked for the curve:
curve.SetValues("2012/02/14 12:05:00", "5")
curve.SetValues("2012/02/14 12:07:00", "1")
curve.SetValues("2012/02/14 12:23:00", "1")
curve.SetValues("2012/02/14 13:05:00", "2")
7.18 VcCurveCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• Copy
• CurveByIndex
• CurveByName
• FirstCurve
• NextCurve
• Remove
Properties
_NewEnum
Read Only Property of VcCurveCollection
In Visual Basic this property is never indicated, but it can be used by the
command For Each element In collection. In .NET languages the method
GetEnumerator is offered instead. Some development environments replace
this property by own language elements.
Data Type Explanation
Example Code
Dim curve As VcCurve
Count
Read Only Property of VcCurveCollection
This property lets you retrieve the number of curves in the CurveCollection.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim curveCltn As VcCurveCollection
Dim numberOfCurves As Long
numberOfCurves = curveCltn.Count
Methods
Add
Method of VcCurveCollection
Parameter:
curveName String Curve name
Example Code
Set newCurve = VcGantt1.CurveCollection.Add("test1")
AddBySpecification
Method of VcCurveCollection
This method lets you create a curve by using a curve specification. This way
of creating allows curve objects to become persistent. The specification of a
curve can be saved and re-loaded (see VcCurve property Specification) In a
subsequent session the curve can be created again from the specification and
is identified by its name.
Data Type Explanation
Parameter:
Specification String Curve specification
Copy
Method of VcCurveCollection
By this method you can copy a curve. If the curve that is to be copied exists,
and if the name for the new curve does not yet exist, the new curve object is
returned. Otherwise "Nothing" (in Visual Basic) or "0" (other languages) will
be returned.
Data Type Explanation
Parameter:
curveName String Name of the curve to be copied
Example Code
Dim histogram As VcHistogram
Dim curveCltn As VcCurveCollection
Dim curve As VcCurve
CurveByIndex
Method of VcCurveCollection
This method lets you access a curve by its index. If a curve of the specified
index does not exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
index Integer Index of the curve
Example Code
Dim histogram As VcHistogram
Dim curveCltn As VcCurveCollection
Dim curve As VcCurve
CurveByName
Method of VcCurveCollection
By this method you can retrieve a curve by its name. If a curve of the
specified name does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
curveName String Name of the curve
Example Code
Dim histogram As VcHistogram
Dim curveCltn As VcCurveCollection
Dim curve As VcCurve
FirstCurve
Method of VcCurveCollection
This method can be used to access the initial value, i.e. the first curve of a
curve collection, and to continue in a forward iteration loop by the method
NextCurve for the curves following. If there is no curve in the curve
collection, a none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim curveCltn As VcCurveCollection
Dim curve As VcCurve
NextCurve
Method of VcCurveCollection
Example Code
Dim histogram As VcHistogram
Dim curveCollection As VcCurveCollection
Dim curve As VcCurve
Remove
Method of VcCurveCollection
This method lets you delete a curve. If the curve is used in another object, it
cannot be deleted. Then False will be returned, otherwise True.
Data Type Explanation
Parameter:
curveName String curve name
Example Code
Dim histogram As VcHistogram
Dim curveCltn As VcCurveCollection
7.19 VcDataDefinition
The data of nodes and links can be defined in the dialog Administrate Data
Tables which can be reached by selecting Data tables... on the Objects
property page. It grants access to the names and types of the available fields.
The data definition of a VcGantt object contains two data definition tables:
vcMaindata and vcRelations.
Properties
• DefinitionTable
Properties
DefinitionTable
Read Only Property of VcDataDefinition
This property allows the access to the two tables of the data definition object.
Parameter:
tableType DataTableEnum Type of data definition table
Possible Values:
vcMaindata 0 Table type vcMaindata (for nodes)
vcRelations 1 Table type vcRelations (for links)
Example Code
Dim dataDefinition As VcDataDefinition
Dim dataDefinitionTable As VcDataDefinitionTable
7.20 VcDataDefinitionTable
Properties
• _NewEnum
• Count
Methods
• CreateDataField
• FieldByIndex
• FieldByName
• FirstField
• NextField
Properties
_NewEnum
Read Only Property of VcDataDefinitionTable
Example Code
Dim datdeftable As VcDataDefinitionTable
Count
Read Only Property of VcDataDefinitionTable
This property lets you retrieve the number of fields in the data table. You can
add fields by the Administrate Data Tables dialog or at run time by the
method CreateDataField.
Data Type Explanation
Example Code
Dim dataDefinition As VcDataDefinition
Dim dataDefinitionTable As VcDataDefinitionTable
Dim numberOfFields As Long
numberOfFields = dataDefinitionTable.Count
Methods
CreateDataField
Method of VcDataDefinitionTable
This method lets you add a new data field at run time to the end of the data
table. The data field of the new data field is Integer. You can change the data
type by the property Type of VcDefinitionField.
Data Type Explanation
Parameter:
newfieldName String Name of the new field
Example Code
Dim dataDefinitionTable As VcDataDefinitionTable
Dim dataDefinitionField As VcDefinitionField
FieldByIndex
Method of VcDataDefinitionTable
By this method you can access a field of the data definition table by index. A
field can be referred to by its name or by its index. The index of the first field
is 1. You can set data field definitions in the Administrate Data Tables
dialog.
Data Type Explanation
Parameter:
fieldIndex Integer Field index
Example Code
Dim dataDefinitionTable As VcDataDefinitionTable
Dim dataDefinitionField As VcDefinitionField
Set dataDefinitionTable = VcGantt1.DataDefinition.DefinitionTable(vcMaindata)
FieldByName
Method of VcDataDefinitionTable
By this method you can get a field of the data table by its name. If a field of
the specified name does not exist, a none object will be returned (Nothing in
Visual Basic). A field can be referred to by its name or by its index. You can
set data definitions in the Administrate Data Tables dialog.
Data Type Explanation
Parameter:
fieldName String Field name
Example Code
Dim dataDefinitionTable As VcDataDefinitionTable
Dim definitionField As VcDefinitionField
FirstField
Method of VcDataDefinitionTable
This method can be used to access the first field of a data table and to
continue in a forward iteration loop by the method NextField for the fields
following. If there is no field in the data table, a none object will be returned
(Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim dataDefinitionTable As VcDataDefinitionTable
Dim dataDefinitionField As VcDefinitionField
NextField
Method of VcDataDefinitionTable
Example Code
Dim dataDefinitionTable As VcDataDefinitionTable
Dim dataDefinitionField As VcDefinitionField
or
7.21 VcDataDefinitionTable
A VcDataDefinitionTable object is an element of a data definition. It
represents a table of data definition fields. You can access these fields
individually by the methods FieldByIndex or FieldByName or retrieve them
in an iterative loop by the methods FirstField and NextField. By the Count
property you can enquire the number of the fields of the table. You can set
data field definitions on the property page Administrate Data Tables.
Properties
• _NewEnum
• Count
Methods
• CreateDataField
• FieldByIndex
• FieldByName
• FirstField
• NextField
Properties
_NewEnum
Read Only Property of VcDataDefinitionTable
Example Code
Dim datdeftable As VcDataDefinitionTable
Next
Count
Read Only Property of VcDataDefinitionTable
This property lets you retrieve the number of fields in the data table. You can
add fields by the Administrate Data Tables dialog or at run time by the
method CreateDataField.
Data Type Explanation
Example Code
Dim dataDefinition As VcDataDefinition
Dim dataDefinitionTable As VcDataDefinitionTable
Dim numberOfFields As Long
numberOfFields = dataDefinitionTable.Count
Methods
CreateDataField
Method of VcDataDefinitionTable
This method lets you add a new data field at run time to the end of the data
table. The data field of the new data field is Integer. You can change the data
type by the property Type of VcDefinitionField.
Data Type Explanation
Parameter:
newfieldName String Name of the new field
Example Code
Dim dataDefinitionTable As VcDataDefinitionTable
Dim dataDefinitionField As VcDefinitionField
FieldByIndex
Method of VcDataDefinitionTable
By this method you can access a field of the data definition table by index. A
field can be referred to by its name or by its index. The index of the first field
is 1. You can set data field definitions in the Administrate Data Tables
dialog.
Data Type Explanation
Parameter:
fieldIndex Integer Field index
Example Code
Dim dataDefinitionTable As VcDataDefinitionTable
Dim dataDefinitionField As VcDefinitionField
Set dataDefinitionTable = VcGantt1.DataDefinition.DefinitionTable(vcMaindata)
FieldByName
Method of VcDataDefinitionTable
By this method you can get a field of the data table by its name. If a field of
the specified name does not exist, a none object will be returned (Nothing in
Visual Basic). A field can be referred to by its name or by its index. You can
set data definitions in the Administrate Data Tables dialog.
Data Type Explanation
Parameter:
fieldName String Field name
Example Code
Dim dataDefinitionTable As VcDataDefinitionTable
Dim definitionField As VcDefinitionField
FirstField
Method of VcDataDefinitionTable
This method can be used to access the first field of a data table and to
continue in a forward iteration loop by the method NextField for the fields
following. If there is no field in the data table, a none object will be returned
(Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim dataDefinitionTable As VcDataDefinitionTable
Dim dataDefinitionField As VcDefinitionField
NextField
Method of VcDataDefinitionTable
Example Code
Dim dataDefinitionTable As VcDataDefinitionTable
Dim dataDefinitionField As VcDefinitionField
or
7.22 VcDataRecord
A data record is the logical base of an object in a Gantt diagram, for example
of a node, of a group node, of a link, of an operation or of a task. Objects
have specific features, that are described in the fields of the record. For the
fields of a data record, descriptions exist that are stored to data table fields.
Data records and data table fields are collected in corresponding collection
objects, which form a data table.
Properties
• AllData
• DataField
• DataTableName
• ID
Methods
• DeleteDataRecord
• RelatedDataRecord
• UpdateDataRecord
Properties
AllData
Property of VcDataRecord
This property lets you set or retrieve the complete data of a data record.
When setting the property, a CSV string (using semicolons as separators) or
the data type "variant" are allowed, that contains all data fields of the record
in an array. On retrieving the property, a string will be returned.
Example Code
Dim dataTable As VcDataTable
Dim dataRecCltn As VcDataRecordCollection
Dim dataRecValue() As Variant
Dim dataRecord As VcDataRecord
'Variant
Set dataRecord = dataRecCltn.Add(dataRecValue)
'CSV
dataRecord.AllData = "1;Node One;"
dataRecord.UpdateDataRecord
DataField
Property of VcDataRecord
This property lets you assign or retrieve data to/from a field of a data record.
After the data field was modified by the DataField property, the graphical
display in the diagram needs to be updated by the UpdateDataRecord
method.
Data Type Explanation
Parameter:
index Integer Index of data field
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Dim dataRecord As VcDataRecord
DataTableName
Read Only Property of VcDataRecord
This property lets you retrieve the name of the data table that this data record
belongs to.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Dim dataRecord As VcDataRecord
MsgBox dataRecord.DataTableName
ID
Read Only Property of VcDataRecord
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Dim dataRecord As VcDataRecord
Set dataTable = VcGantt1.DataTableCollection.FirstDataTable
Set dataRecordCltn = dataTable.DataRecordCollection
Set dataRecord = dataRecordCltn.DataRecordByID(1)
MsgBox dataRecord.ID
Methods
DeleteDataRecord
Method of VcDataRecord
Return value Boolean Data record was (true) / was not (false) deleted
successfully
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Dim dataRecord As VcDataRecord
dataRecord.DeleteDataRecord
RelatedDataRecord
Method of VcDataRecord
This property lets you relate a data record to another one or retrieve a related
data record. When using extended data tables, the data records of a table can
be related to the data records of another table by primary keys.
Data Type Explanation
Parameter:
index Integer Index of data field
Example Code
Private Sub VcGantt1_OnNodeLClick(ByVal node As VcGanttLib.VcNode, ByVal
location As VcGanttLib.LocationEnum, ByVal x As Long, ByVal y As Long,
returnStatus As Variant)
MsgBox secondDataRecord.AllData
End Sub
UpdateDataRecord
Method of VcDataRecord
If data fields of a data record were modified by the DataField property, the
diagram needs to be updated by the UpdateDataRecord method.
Data Type Explanation
Return value Boolean Data record was (true) / was not (false) updated
successfully
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Dim dataRecord As VcDataRecord
7.23 VcDataRecordCollection
Properties
• _NewEnum
• Count
Methods
• Add
• DataRecordByID
• FirstDataRecord
• GetNewUniqueID
• NextDataRecord
• Remove
• Update
Properties
_NewEnum
Property of VcDataRecordCollection
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Dim dataRecord As VcDataRecord
Count
Read Only Property of VcDataRecordCollection
This property lets you retrieve the number of data records in the DataRecord-
Collection object.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Methods
Add
Method of VcDataRecordCollection
By this method you can create a data record as a member of the DataRecord-
Collection. If the recordDescription did not fail to have a new data record
created, the data record will be returned; otherwise a VcPrimaryKeyNot-
UniqueException will be thrown.
Parameter:
dataRecordContent Object Content of the data record (as an array or a string)
Example Code
Const Main_ID = 0
Const Main_Name = 1
Const Main_Start = 2
Const Main_Duration = 4
'...
ReDim dataRecVal(dataTable.DataTableFieldCollection.Count)
dataRecVal(Main_ID) = 1
dataRecVal(Main_Name) = "Node 1"
dataRecVal(Main_Start) = DateSerial(2014, 1, 8)
dataRecVal(Main_Duration) = 8
Set dataRec1 = dataRecCltn.Add(dataRecVal)
VcGantt1.EndLoading()
' equivalent
' dataRec1 = dataRecCltn.Add("1;Node 1;01.08.14;;8")
DataRecordByID
Method of VcDataRecordCollection
This method lets you access a data record by its identification. If a data
record of the specified ID does not exist, a none object will be returned
(Nothing in Visual Basic).
ID=ID1|ID2|ID3
Data Type Explanation
Parameter:
dataRecordID String ID of data record
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Dim dataRecord As VcDataRecord
FirstDataRecord
Method of VcDataRecordCollection
This method can be used to access the initial value, i.e. the first data record of
a data record collection, and to continue in a forward iteration loop by the
method NextDataRecord for the data records following. If there is no data
record in the data record collection, a none object will be returned (Nothing
in Visual Basic).
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Dim dataRecord As VcDataRecord
GetNewUniqueID
Method of VcDataRecordCollection
By this method you can have a unique ID generated for a data record. This
method is useful if you wish to add a data record for example by the method
Add but do not wish to create the ID manually.
Data Type Explanation
NextDataRecord
Method of VcDataRecordCollection
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Dim dataRecord As VcDataRecord
VcGantt1.SuspendUpdate True
VcGantt1.SuspendUpdate False
Remove
Method of VcDataRecordCollection
This method lets you delete a data record. The method always returns True.
The content of the data record is used to identify the object by its
identification.
Parameter:
dataRecordContent Object Content of the data record (as an array or a string)
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
VcGantt1.SuspendUpdate True
VcGantt1.SuspendUpdate False
VcGantt1.EndLoading()
Update
Method of VcDataRecordCollection
This method updates a data record in the the data record collection if it
previously was created by the Add() method. If the data record to be updated
does not exist, it will then be created by the Update method. Also see
VcDataRecordCollection.Add().
Parameter:
dataRecordContent Object Content of the data record (as an array or a string)
Example Code
Dim dataTable As VcDataTable
Dim dataRecordCltn As VcDataRecordCollection
Dim dataRecord As VcDataRecord
7.24 VcDataTable
A data table comprises data records, including their data fields and their
contents, and it comprises the descriptions of the record fields, which are
called data table fields. Data records and data table fields can be processed
and iterated over by collection objects.
Data tables on their hand can be processed by a collection object of their
own.
Properties
• DataRecordCollection
• DataTableFieldCollection
• Description
• MultiplePrimaryKeysAllowed
• Name
Properties
DataRecordCollection
Read Only Property of VcDataTable
This property returns the DataRecordCollection object of the data table. The
collection contains all existing data records of a table. It is empty on the start
of the program.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
DataTableFieldCollection
Read Only Property of VcDataTable
Example Code
Dim dataTable As VcDataTable
Description
Property of VcDataTable
This property lets you set or retrieve the description of the data table. Names
of objects, for example of the table, that contain some information on the
object, often are long and cannot be displayed fully in previews; so their
benefit is limited. To use the opportunity of short names without having to
abandon the information of a long name, you can store additional information
to this field. Its contents will be displayed in the data table dialog.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
MultiplePrimaryKeysAllowed
Property of VcDataTable
This property lets you set or retrieve whether using a composed primary keys
is permited.
Name
Property of VcDataTable
This property lets you set or retrieve the name of the data table. The name of
a data table has to set by obligation; beside, it has to be unique. An empty
character string is not allowed. Upper and lower case characters are accepted
as different. By the method DataTableByName of the object DataTable-
Collection you can retrieve a reference to the data table object.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
7.25 VcDataTableCollection
Properties
• _NewEnum
• Count
Methods
• Add
• Copy
• DataTableByIndex
• DataTableByName
• FirstDataTable
• NextDataTable
• Update
Properties
_NewEnum
Property of VcDataTableCollection
Example Code
Dim dataTableCltn As VcDataTableCollection
Dim dataTable As VcDataTable
Count
Property of VcDataTableCollection
This property lets you retrieve the number of data tables in the DataTable-
Collection object.
Data Type Explanation
Example Code
Dim dataTableCltn As VcDataTableCollection
Methods
Add
Method of VcDataTableCollection
By this method you can create a data table as a member of the DataTable-
Collection. If the name was not used before,an object of the type VcData-
Table will be returned; otherwise Nothing in Visual Basic or 0 in other
languages. Only if the DummyObjec3 property ExtendedDataTables is set
to True, tables can be added. In total, 90 data tables can be added at
maximum.
Data Type Explanation
Parameter:
dataTableName String Name of the new data table
Example Code
Dim dataTableCltn As VcDataTableCollection
Dim dataTable As VcDataTable
Copy
Method of VcDataTableCollection
This method lets you copy a data table. Probably existing data records are not
copied, just the definition fields. Only if the VcNet property ExtendedData-
Tables was set to True, data tables can be copied. If the data table could be
copied, a new object of the type VcDataTable will be returned; otherwise
Nothing in Visual Basic or 0 in other languages. The table names are case
sensitive.
Data Type Explanation
Parameter:
dataTableName String Name of the data table to be copied (source table)
Example Code
Dim dataTableCltn As VcDataTableCollection
Dim dataTable As VcDataTable
DataTableByIndex
Method of VcDataTableCollection
This method lets you access a data table by its index. The index of the first
table is 0. If a data table of the specified index does not exist, a none object
will be returned (Nothing in Visual Basic or 0 in other languages).
Data Type Explanation
Parameter:
index Integer Index of the data table
Example Code
Dim dataTableCltn As VcDataTableCollection
Dim dataTable As VcDataTable
DataTableByName
Method of VcDataTableCollection
This method lets you access a data table by its name. If a data table of the
specified name does not exist, a none object will be returned (Nothing in
Visual Basic or 0 in other languages).
Data Type Explanation
Parameter:
dataTableName String Name of the data table
Example Code
Dim dataTableCltn As VcDataTableCollection
Dim dataTable As VcDataTable
FirstDataTable
Method of VcDataTableCollection
This method can be used to access the initial value, i.e. the first data table of
a data table collection, and to continue in a forward iteration loop by the
method NextDataTable for the data tables following. If there is no data table
in the data table collection, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Example Code
Dim dataTableCltn As VcDataTableCollection
Dim dataTable As VcDataTable
NextDataTable
Method of VcDataTableCollection
Example Code
Dim dataTableCltn As VcDataTableCollection
Dim dataTable As VcDataTable
Dim i As Integer
Update
Method of VcDataTableCollection
This method lets you update recent modifications of the data structures. It
makes the modifications on data table definitions and on data table fields
become operative in the VARCHART component and avoids individual
updates after several modifications.
Data Type Explanation
Example Code
Dim dataTableCltn As VcDataTableCollection
Dim dataTable As VcDataTable
dataTableCltn = VcGantt1.DataTableCollection
dataTable = dataTableCltn.Add("Resources")
dataTable.DataTableFieldCollection.Add ("Id")
dataTableCltn.Update
7.26 VcDataTableField
Properties
• DataTableName
• DateFormat
• Editable
• Hidden
• Index
• Name
• PrimaryKey
• RelationshipFieldIndex
• Type
Properties
DataTableName
Read Only Property of VcDataTableField
This property lets you retrieve the name of the associated data table.
Example Code
Dim dataTable As VcDataTable
DateFormat
Property of VcDataTableField
This property lets you set or retrieve the date format of the record field that is
specified by the property RelationshipFieldIndex. The date format is used
when reading or storing CSV files and when the format type String is used
when adding a data record by the method Add. This property only works if
the data type of the field was set to vcDataTableFieldDateTime.
Note: Remember to set the property Type before setting the property
DateFormat.
Data Type Explanation
{DMYhms:;./}
Default value: DD.MM.YYYY hh:mm:ss
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
Editable
Property of VcDataTableField
This property lets you set or retrieve whether the record field should be
editable at run time in the chart table and in the dialog EditNode.
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
Hidden
Property of VcDataTableField
This property lets you set or retrieve whether the data field should be hidden
at run time in the dialogs EditNode and EditLink.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
Index
Read Only Property of VcDataTableField
This property lets you retrieve the index of the data table field in the
associated data table.
Data Type Explanation
Name
Property of VcDataTableField
This property lets you set or retrieve the name of the record field. The name
is indicated in runtime dialogs such as the EditNode dialog. Accessing a
field by the API although requires its index that the field has within the Data-
TableFieldCollection object.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
PrimaryKey
Property of VcDataTableField
This property lets you set or retrieve whether this field contains the primary
key, which is used for the unique identification of a data record. In a data
table, only one of the fields that were defined can be the primary key. Within
the same table, assigning the primary key function to a field automatically
cancels the previous assignment. A primary key is required in a table if
records of a different table are to depend on the records of the former one.
Data Type Explanation
Property value Boolean The field serves (True) / does not serve (False) as a
primary key.
Default value: False
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
Dim isPrimaryKey As Boolean
RelationshipFieldIndex
Property of VcDataTableField
This property lets you combine a data field and its data description. For this,
please set the index of the data record field to which the settings of this data
table field shall refer.
Data Type Explanation
Property value Long Index of the record field to which the data definition
of the data table field refers.
Default value: -1
Example Code
Dim dataTableTask As VcDataTable
Dim dataTaskFieldId As VcDataTableField
Dim dataTaskFieldName As VcDataTableField
Dim dataTableOperation As VcDataTable
Dim dataOperationFieldId As VcDataTableField
Dim dataOperationFieldName As VcDataTableField
Dim dataOperationFieldTaskId As VcDataTableField
Type
Property of VcDataTableField
This property lets you set or retrieve the data type of the field.
Note: Setting the property Type may change the property DateFormat. By
setting this property to vcDataTableAlphanumeric or to vcDataTable-
FieldInteger the date format probably set will change to "".
Property value DataTableFieldTypeEnum Data type of the field, can contain 512
characters maximum
Default value:
VcDataTableFieldIntegerType
Possible Values:
vcDataTableFieldAlphanumericType 1 Data type alphanumeric: ""
vcDataTableFieldDateTimeType 3 Data type date : DD.MM.YYYY
vcDataTableFieldIntegerType 2 Data type integer (32 bits): ""
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
7.27 VcDataTableFieldCollection
Properties
• _NewEnum
• Count
Methods
• Add
• Copy
• DataTableFieldByIndex
• DataTableFieldByName
• FirstDataTableField
• NextDataTableField
Properties
_NewEnum
Property of VcDataTableFieldCollection
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
Count
Read Only Property of VcDataTableFieldCollection
This property lets you retrieve the number of data table fields in the Data-
TableFieldCollection object.
Data Type Explanation
Property value Long Number of data table fields in the collection object
Example Code
Dim dataTable As VcDataTable
Methods
Add
Method of VcDataTableFieldCollection
By this method you can create a data table field as a member of the
DataTableFieldCollection. If the name was not used before, the new data
field will be returned; otherwise "Nothing" (Visual Basic) or "0" (other
languages) will be returned. You can add at maximum 9,999 fields to a table.
Data Type Explanation
Parameter:
dataTableFieldName String Name of the data table field to be generated
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
Copy
Method of VcDataTableFieldCollection
This method lets you copy a data table field. The field is identified by its
name.
Data Type Explanation
Parameter:
dataTableFieldName String Name of the data table field to be copied (source
field)
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
DataTableFieldByIndex
Method of VcDataTableFieldCollection
This method lets you access a data table field by its index. If a data field does
not exist at the index specified, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
Index Integer Index of data table field
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
DataTableFieldByName
Method of VcDataTableFieldCollection
This method lets you access a data table field by its name. If a field of the
specified name does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
dataTableFieldName String Name of data table field
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
FirstDataTableField
Method of VcDataTableFieldCollection
This method can be used to access the initial value, i.e. the first data table
field of a data table field collection, and to continue in a forward iteration
loop by the method NextDataTableField for the fields following. If there is
no field in the data table field collection, a none object will be returned
(Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataTableField As VcDataTableField
NextDataTableField
Method of VcDataTableFieldCollection
Example Code
Dim dataTable As VcDataTable
Dim dataTableFieldCltn As VcDataTableFieldCollection
Dim dataTableField As VcDataTableField
Dim i As Integer
7.28 VcDateLine
Properties
• AlwaysCurrentDate
• Date
• Font
• FontColor
• Identifiable
• LabelPosition
• LineColor
• LineThickness
• LineType
• Moveable
• Name
• Priority
• Specification
• Text
• TurningAnnotationEnabled
• UpdateBehaviorName
• Visible
Methods
• PutInOrderAfter
Properties
AlwaysCurrentDate
Read Only Property of VcDateLine
This property lets you set or retrieve whether a date line always displays the
current date and time at the time of the start of VARCHART ActiveX. This
property can be set in the Specify Date Lines dialog.
Data Type Explanation
Example Code
Dim dateLine As VcDateLine
Dim DateLineTimer As Timer
Date
Property of VcDateLine
This property lets you specify or enquire the position of a date line. Please
note: date and time must be separated by a blank. This property also can be
set in the Specify Date Lines dialog.
Data Type Explanation
{1.1.1970...31.12.2035}
Default value: none or current date
Example Code
Dim dateLine As VcDateLine
Font
Property of VcDateLine
This property lets you set or retrieve all font attributes of the date line and
can also be set in the Edit Date Line dialog.
Data Type Explanation
Example Code
Dim newFont As New StdFont
FontColor
Property of VcDateLine
This property lets you set or retrieve the font color of the date line and can
also be set in the Edit Date Line dialog.
Data Type Explanation
Example Code
Dim dateLine As VcDateLine
Identifiable
Property of VcDateLine
This property lets you set or retrieve whether or not a date line grid can be
identified. If this property was set to True, the date line can be identified by
the VcGantt method IdentifyObjectAt.
This property can also be set in the Specify Date lines dialog.
LabelPosition
Read Only Property of VcDateLine
This property lets you specify or retrieve the position at which the annotation
of the date line shall be displayed.
Data Type Explanation
LineColor
Property of VcDateLine
This property lets you set or retrieve the line color of a date line and can also
be set in the Edit Date Line dialog.
Data Type Explanation
Example Code
Dim dateLine As VcDateLine
LineThickness
Property of VcDateLine
This property lets you set or retrieve the line thickness of a date line. If you
set this property to values between 1 and 4, an absolute line thickness is
defined in pixels. Irrespective of the zoom factor a line will always show the
same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
Data Type Explanation
Example Code
Dim dateLine As VcDateLine
LineType
Property of VcDateLine
This property lets you set or retrieve the line type of a date line. This property
also can be set in the Edit Date Line dialog.
Data Type Explanation
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
Example Code
Dim dateLine As VcDateLine
Moveable
Property of VcDateLine
This property lets you set or retrieve whether a date line can be moved
interactively. This property also can be set in the Specify Date Lines dialog.
Data Type Explanation
Example Code
Dim dateLine As VcDateLine
Name
Read Only Property of VcDateLine
Example Code
Dim dateLineCltn As VcDateLineCollection
Dim dateLine As VcDateLine
Priority
Property of VcDateLine
This property lets you specify or retrieve the priority of a date line. If two
objects are located at the same position in the diagram, the object of higher
priority is displayed in front of the objects of lower priority. By default, grids
are of the lowest priority. Nodes are assigned the value 0 and thus the highest
priority of all objects. By default, date lines are displayed behind nodes, but
in front of calendar grids and date line grids. If you want a date line to be
displayed in front of the nodes, you must set its priority to a positive value.
This property also can be set in the Specify Date Lines dialog.
Data Type Explanation
Example Code
Dim dateLine As VcDateLine
Specification
Read Only Property of VcDateLine
This property lets you retrieve the specification of a date line. A specification
is a string that contains legible ASCII characters from 32 to 127 only, so it
can be stored without problems to text files or data bases. This allows for
persistency. A specification can be used to create a date line by the method
VcDateLineCollection.AddBySpecification.
Data Type Explanation
Text
Property of VcDateLine
This property lets you set or retrieve an annotation text for the date line. This
property also can be set in the Specify Date Lines dialog.
Data Type Explanation
Parameter:
Rückgabewert String Annotation
Example Code
Dim dateLine As VcDateLine
TurningAnnotationEnabled
Property of VcDateLine
This property lets you specify or retrieve whether the annotation of the date
line is turned by 90 degrees.
Data Type Explanation
UpdateBehaviorName
Property of VcDateLine
This property lets you set or retrieve the name of the UpdateBehavior.
Data Type Explanation
Visible
Property of VcDateLine
This property lets you set or retrieve the visibility of a date line. This
property also can be set in the Specify Date Lines dialog.
Data Type Explanation
Example Code
Dim dateLine As VcDateLine
Methods
PutInOrderAfter
Method of VcDateLine
This method lets you set the date line behind a date line specified by name,
within the DateLineCollection. If you set the name to "", the date line will be
put in the first position. The order of the date lines within the collection
determines the order by which they are displayed.
Parameter:
refName String Name of the date line behind which the current date
line is to be put.
Example Code
Dim datLinCltn As VcDateLineCollection
Dim datLin1 As VcDateLine
Dim datLin2 As VcDateLine
datLinCltn = VcGantt1.DateLineCollection()
datLin1 = datLinCltn.Add("datLin1")
datLin2 = datLinCltn.Add("datLin2")
datLin1.PutInOrderAfter("datLin2")
datLinCltn.Update()
7.29 VcDateLineCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• Copy
• DateLineByIndex
• DateLineByName
• FirstDateLine
• NextDateLine
• Remove
• Update
Properties
_NewEnum
Read Only Property of VcDateLineCollection
Example Code
Dim dateline As VcDateLine
Count
Read Only Property of VcDateLineCollection
This property lets you retrieve the number of date lines contained in the date
line collection.
Data Type Explanation
Example Code
Dim numberOfDateLines As Long
numberOfDateLines = VcGantt1.DateLineCollection.Count
Methods
Add
Method of VcDateLineCollection
Parameter:
dateLineName String name of date line
Example Code
Set newDateLine = VcGantt1.DateLineCollection.Add("DateLine1")
AddBySpecification
Method of VcDateLineCollection
By this method you can create a date line by a date line specification. This
way of creating allows date line objects to become persistent. The
specification of a data line can be saved and re-loaded (see VcDateLine
property Specification). In a subsequent session, the date line can be created
again from the specification and is identified by its name. To make the new
date line visible in the diagram, the date line collection needs to be updated
by the Update call.
Data Type Explanation
Parameter:
specification String date line specification
Copy
Method of VcDateLineCollection
By this method you can copy a date line. If the date line that is to be copied
exists, and if the name for the new date line does not yet exist, the new date
line object is returned. Otherwise "Nothing" (in Visual Basic) or "0" (other
languages) will be returned. To make the copied date line visible in the
diagram, the date line collection needs to be updated by the Update call.
Data Type Explanation
Parameter:
dateLineName String Name of the date line to be copied
Example Code
Dim DateLineCltn As VcDateLineCollection
Dim dateLine As VcDateLine
dateLineCltn.Update
DateLineByIndex
Method of VcDateLineCollection
This method lets you access a date line by its index. If a date line of the
specified index does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the date line
Example Code
Dim dateLineCltn As VcDateLineCollection
Dim dateLine As VcDateLine
DateLineByName
Method of VcDateLineCollection
By this method you can retrieve a date line by its name. If a date line of the
specified name does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
dateLineName String Name of the date line
Example Code
Dim dateLineCltn As VcDateLineCollection
Dim dateLine As VcDateLine
FirstDateLine
Method of VcDateLineCollection
This method can be used to access the initial value, i.e. the first date line of a
date line collection, and and to continue in a forward iteration loop by the
method NextDateLine for the date lines following. If there is no date line in
the date line collection, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Example Code
Dim dateLineCltn As VcDateLineCollection
Dim dateLine As VcDateLine
NextDateLine
Method of VcDateLineCollection
Example Code
Dim dateLineCltn As VcDateLineCollection
Dim dateLine As VcDateLine
Remove
Method of VcDateLineCollection
This method lets you delete a date line. To make the deletion visible in the
diagram, the date line collection needs to be updated by the Update call.
Data Type Explanation
Parameter:
dateLineName String Date line name
Example Code
Dim dateLineCltn As VcDateLineCollection
Dim dateLine As VcDateLine
Update
Method of VcDateLineCollection
This method lets you update a date line collection after having modified it.
Data Type Explanation
Example Code
Dim dateLineCltn As VcDateLineCollection
Dim dateLine As VcDateLine
7.30 VcDateLineGrid
Properties
• AdjustToReferenceDate
• AnnotationAtBottom
• AnnotationAtCenter
• AnnotationAtTop
• FormatName
• HorAlignment
• LineColor
• LineColorDataFieldIndex
• LineColorMapName
• LineThickness
• LineType
• Name
• ObserveDST
• Period
• Priority
• ReferenceDate
• TurningAnnotationEnabled
• Unit
• UseReferenceDate
• Visible
• VisibleDataFieldIndex
• VisibleMapName
Properties
AdjustToReferenceDate
Property of VcDateLineGrid
The lines of a line grid by default are positioned on the beginning of a time
unit, for example on 00:00 h of a day. This property lets you position the line
grid on a different value of the time unit, i.e. the one defined by the reference
date, for example on 13:17 of a day. The reference date you can set by the
property set/getReferenceDate.
AnnotationAtBottom
Property of VcDateLineGrid
This property lets you position the annotations of the lines in the line grid at
the bottom of the Gantt graph, or retrieve whether they are there. Also see
set/getAnnotationAtCenter and set/getAnnotationAtTop.
Data Type Explanation
AnnotationAtCenter
Property of VcDateLineGrid
This property lets you position the annotations of the lines in the line grid at
the center of the Gantt graph, or retrieve whether they are there. Also see
set/getAnnotationAtBottom and set/getAnnotationAtTop.
Property value Boolean Date line grid annotations positioned in the center
(True) / not in the center (False)
Default value: False
AnnotationAtTop
Property of VcDateLineGrid
This property lets you position the annotations of the lines in the line grid at
the top of the Gantt graph, or retrieve whether they are there. Also see
set/getAnnotationAtCenter and set/getAnnotationAtBottom.
Data Type Explanation
FormatName
Property of VcDateLineGrid
This property lets you set or retrieve the name of the line format of the date
line grid.
Data Type Explanation
HorAlignment
Property of VcDateLineGrid
This property lets you set or retrieve the horizontal alignment of the line
annotations.
Data Type Explanation
Possible Values:
vcHorCenterAligned -1 horizontally centered
vcLeftAligned -3 left aligned
vcRightAligned -2 right aligned
LineColor
Property of VcDateLineGrid
This property lets you set or retrieve the color of a date line grid.
Data Type Explanation
Example Code
Dim dateLineGrid As VcDateLineGrid
Set dateLineGrid =
VcGantt1.TimeScaleCollection.Active.Section(0).dateLineGrid(0)
LineColorDataFieldIndex
Property of VcDateLineGrid
This property lets you set or retrieve the data field index to be used with a
map specified by the property LineColorMapName. If you set this property
to -1, no map will be used.
Data Type Explanation
LineColorMapName
Property of VcDateLineGrid
This property lets you set or retrieve the name of a map for the line color. If
set to "" or if the property LineColorDataFieldIndex is set to -1, then no
map will be used.
Data Type Explanation
LineThickness
Property of VcDateLineGrid
This property lets you set or retrieve the line thickness of the grid lines.
If you set this property to values between 1 and 4, an absolute line thickness
is defined in pixels. Irrespective of the zoom factor a line will always show
the same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
This property also can be set in the Edit Date Line Grid dialog.
Data Type Explanation
Example Code
Dim dateLineGrid As VcDateLineGrid
dateLineGrid.LineThickness = 2
LineType
Property of VcDateLineGrid
This property lets you set or retrieve the line type of a date line grid.
Data Type Explanation
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
Example Code
Dim dateLineGrid As VcDateLineGrid
Set dateLineGrid =
VcGantt1.TimeScaleCollection.Active.Section(0).dateLineGrid(0)
dateLineGrid.LineType = vcSolid
Name
Property of VcDateLineGrid
This property lets you set or retrieve the name of a date line grid.
Data Type Explanation
ObserveDST
Property of VcDateLineGrid
This property lets you set or retrieve whether for this line grid daylight
saving time is considered or not.
Data Type Explanation
Possible Values:
vcGODDefault 9999 Default setting from .INI file is used
vcGODNo 0 Daylight saving time is not considered
vcGODYes 1 Daylight saving time is considered
Period
Property of VcDateLineGrid
This property lets you set or retrieve after how many time units a grid line is
drawn. The distance between two grid lines is given by the product of the
unit (property Unit) and the period (property Period).
Data Type Explanation
Example Code
Dim dateLineGrid As VcDateLineGrid
Set dateLineGrid =
VcGantt1.TimeScaleCollection.Active.Section(0).dateLineGrid(0)
dateLineGrid.Unit = vcGridUnitDay
dateLineGrid.Period = 1
Priority
Property of VcDateLineGrid
This property lets you specify or enquire the priority of a date line grid.
If two objects are located at the same position in the diagram, the object of
higher priority is displayed in front of the objects of lower priority. By
default, grids are of the lowest priority. Nodes are assigned the value 0 and
thus the highest priority of all objects. By default, date line grids are
displayed in front of calendar grids, but behind nodes and date lines. If you
want a date line grid to be displayed in front of the nodes, you must set its
priority to a positive value.
Data Type Explanation
{-1000...+1000}
Default value: -20
Example Code
Dim dateLineGrid As VcDateLineGrid
ReferenceDate
Property of VcDateLineGrid
This property lets you set or retrieve the reference date. For the date line grid
to actually use the reference date, the property UseReferenceDate needs to
be set. To adjust the date line grid to the reference date, please see property
AdjustToReferenceDate.
The reference date shifts the beginning of the grid away from the default start
on Monday 0:00 h by the offset specified. For this, the difference between the
default start and the reference date is the essential part; the absolute date is
not. For example: if you want the grid to start on Tuesday, you can set the
reference date to May 6, 2014. You will obtain the same result by setting the
reference date to April, 29, 2014. It is the difference between the date given
and Monday, which is 1 day. The offset does not have to be specified in days,
you can also set a day time, such as 29.4.2014 8:15 h. If you are dealing with
an hour grid, only minutes are of relevance at all, so in the latter example the
grid offset would be 15 minutes.
Data Type Explanation
TurningAnnotationEnabled
Property of VcDateLineGrid
This property lets you set or retrieve whether the annotations at the lines of
the date line grid can be turned by 90 degrees (vertically).
Data Type Explanation
Property value Boolean The annotations can be turned (True) / were already
turned (False)
Default value: True
Unit
Property of VcDateLineGrid
This property lets you set or retrieve the unit of a date line grid. The distance
between two grid lines is given by the product of unit (property Unit) and
period (property Period).
Data Type Explanation
Possible Values:
vcGridUnitDay 5 Grid unit day
vcGridUnitHour 6 Grid unit hour
vcGridUnitMinute 7 Grid unit minute
vcGridUnitMonth 3 Grid unit month
vcGridUnitQuarter 2 Grid unit quarter
vcGridUnitSecond 8 Grid unit second
vcGridUnitWeek 4 Grid unit week
vcGridUnitYear 1 Grid unit year
Example Code
Dim dateLineGrid As VcDateLineGrid
Set dateLineGrid =
VcGantt1.TimeScaleCollection.Active.Section(0).DateLineGrid(0)
dateLineGrid.Period = 1
dateLineGrid.Unit = vcGridUnitDay
UseReferenceDate
Property of VcDateLineGrid
This property lets you set or retrieve whether the date line grid uses a
reference date.
Data Type Explanation
Property value Boolean Date line grid uses (True)/does not use (False)
reference date
Default value: False
Visible
Property of VcDateLineGrid
This property lets you set or retrieve whether a date line grid is visible.
Data Type Explanation
Example Code
Dim dateLineGrid As VcDateLineGrid
dateLineGrid.Visible = True
VisibleDataFieldIndex
Property of VcDateLineGrid
This property lets you set or retrieve the index of the data field to assign a
visibility mode to the calendar grid: 1 (for "visible") or 0 (for invisible).
This property also can be set in the DateLineGrid dialog.
Data Type Explanation
Property value Long Index of the data field which contains the visibility
mode
VisibleMapName
Property of VcDateLineGrid
This property lets you set or retrieve the name of a map (type vcTextMap) to
set the visibility mode. If set to "", no map will be used. If a map name and
additionally a data field index is specified by the property VisibilityData-
FieldIndex, the visibility mode is selected by the map. If no data field entry
applies, the date line grid will be set to "visible". This property also can be set
in the DateLineGrid dialog.
Data Type Explanation
7.31 VcDateLineGridCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• Copy
• DateLineGridByIndex
• DateLineGridByName
• FirstDateLineGrid
• NextDateLineGrid
• Remove
• Update
Properties
_NewEnum
Read Only Property of VcDateLineGridCollection
Example Code
Dim dateLineGrid As VcDateLineGrid
Count
Read Only Property of VcDateLineGridCollection
This property lets you retrieve the number of date line grids in the
DateLineGridCollection object.
Data Type Explanation
Example Code
Dim dateLineGridCltn As Vc DateLineGridCollection
Dim numberOfDateLineGrids As Long
Methods
Add
Method of VcDateLineGridCollection
This method lets you create a date line grid as a member of the
DateLineGridCollection. If the name was not used before, the new date line
grid object will be returned. Otherwise "Nothing" (in Visual Basic) or "0"
(other languages) will be returned.
Data Type Explanation
Parameter:
dateLineGridName String name of date line grid
Example Code
Set newDateLineGrid = VcGantt1.DateLineGridCollection.Add("Grid1")
AddBySpecification
Method of VcDateLineGridCollection
This method lets you create a date line grid by using a date line grid
specification. This way of creating allows date line grid objects to become
persistent. The specification of a date line grid can be saved and re-loaded
(see VcDateLineGrid property Specification). In a subsequent session the
date line grid can be created again from the specification and is identified by
its name.
Data Type Explanation
Parameter:
specification String date line grid specification
Copy
Method of VcDateLineGridCollection
By this method you can copy a date line grid. If the date line grid that is to be
copied exists, and if the name for the new date line grid does not yet exist, the
new date line grid object is returned. Otherwise "Nothing" (in Visual Basic)
or "0" (other languages) will be returned.
Data Type Explanation
Parameter:
dateLineGridName String Name of the date line grid to be copied
Example Code
Dim dateLineGridCltn As VcDateLineGridCollection
Dim dateLineGrid As VcDateLineGrid
DateLineGridByIndex
Method of VcDateLineGridCollection
This method lets you access a date line grid by its index. If a date line grid of
the specified index does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the date line grid
Example Code
Dim dateLineGridCltn As VcDateLineGrid
Dim dateLine As VcDateLine
DateLineGridByName
Method of VcDateLineGridCollection
This method is used to access a date line grid by its name. If a date line grid
of the specified name does not exist, a none object will be returned (Nothing
in Visual Basic).
Data Type Explanation
Parameter:
DateLineGridName String Name of the date line grid
Example Code
Dim dateLineGridCltn As VcDateLineGridCollection
Dim dateLineGrid As VcDateLineGrid
FirstDateLineGrid
Method of VcDateLineGridCollection
This method can be used to access the initial value, i.e. the first date line grid
of a date line grid collection and then to continue in a forward iteration loop
by the method NextDateLineGrid for the date line grids following. If there
is no date line grid in the DateLineGridCollection, a none object will be
returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim dateLineGridCltn As VcDateLineGridCollection
Dim dateLineGrid As VcDateLineGrid
NextDateLineGrid
Method of VcDateLineGridCollection
Example Code
Dim dateLineGridCltn As VcDateLineGridCollection
Dim dateLineGrid As VcDateLineGrid
Remove
Method of VcDateLineGridCollection
This method lets you delete a date line grid. If the date line grid is used in
another object, it cannot be deleted. Then False will be returned, otherwise
True.
Parameter:
dateLineGridName String date line grid name
Return value Boolean date line grid deleted (True)/not deleted (False)
Example Code
Dim dateLineGridCltn As VcDateLineGridCollection
Dim dateLineGrid As VcDateLineGrid
Update
Method of VcDateLineGridCollection
This method has to be used when date line grid modifications have been
carried out. The method Update updates all objects that are concerned by the
date line grid you have edited. You should call this method at the end of the
code that defines the date line grids and the date line grid collection.
Otherwise the update will be processed before all date line grid definitions
are processed.
Data Type Explanation
Example Code
Dim dateLineGrid As VcDateLineGrid
7.32 VcDefinitionField
Properties
• DateFormat
• Editable
• Hidden
• ID
• Name
• Type
Properties
DateFormat
Property of VcDefinitionField
This property lets you set or retrieve the date format of the field of a data
definition table. This property only works if the data type of the field was set
to vcDataTableFieldDateTime. The dateFormat setting is used when
reading or storing CSV files and when the format type String is used when
adding a data record by the methods InsertNodeRecord or InsertLink-
Record of the VcGantt object. The format of the date output in the chart is
controlled by the VcGantt property DateOutputFormat.
Note: You should set the property Type first before setting the property
DateFormat.
{DMYhms:;./}
Default value: bei vcDefFieldDateTime
DD.MM.YYYY hh:mm:ss
Example Code
Dim dataDefTable As VcDataDefinitionTable
Dim dataDefField As VcDefinitionField
Editable
Property of VcDefinitionField
This property lets you set or retrieve whether the data field should be editable
at run time in the chart table and in the dialog EditNode.
Data Type Explanation
Example Code
Dim dataDefTable As VcDataDefinitionTable
Dim dataDefField As VcDefinitionField
Hidden
Property of VcDefinitionField
This property lets you require/set whether a data field is hidden at run time.
Data Type Explanation
Example Code
Dim dataDefTable As VcDataDefinitionTable
Dim dataDefField As VcDefinitionField
ID
Read Only Property of VcDefinitionField
This property lets you retrieve the index of the field of a data definition table.
Data Type Explanation
Example Code
Dim dataDefTable As VcDataDefinitionTable
Dim dataDefField As VcDefinitionField
Name
Property of VcDefinitionField
This property lets you set or retrieve the name of the field of a data definition
table.
Data Type Explanation
Example Code
Dim dataDefTable As VcDataDefinitionTable
Dim dataDefField As VcDefinitionField
Type
Property of VcDefinitionField
This property lets you set or retrieve the type of the field of a data definition
table.
Note: By setting the property Type the property DateFormat will change!
Possible Values:
vcDefFieldAlphanumericType 1 Data type alphanumeric: ""
vcDefFieldDateTimeType 4 Data type date : DD.MM.YYYY
vcDefFieldIntegerType 2 Data type integer (32 bits): ""
Example Code
Dim dataDefTable As VcDataDefinitionTable
Dim dataDefField As VcDefinitionField
7.33 VcField
An object of the type VcField represents a field in a data record. A field can
be referred to by its ID.
Properties
• DataFieldID
Properties
DataFieldID
Read Only Property of VcField
Example Code
Private Sub VcGantt1_OnNodeLClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As VcGanttLib.LocationEnum, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
End Sub
7.34 VcFilter
Properties
• _NewEnum
• DataDefinitionTable
• DatesWithHourAndMinute
• Name
• Specification
• StringsCaseSensitive
• SubCondition
• SubConditionCount
Methods
• AddSubCondition
• CopySubCondition
• Evaluate
• IsValid
• RemoveSubCondition
Properties
_NewEnum
Read Only Property of VcFilter
Example Code
Dim fiSuCo As VcFilterSubCondition
DataDefinitionTable
Property of VcFilter
This property lets you enquire whether the filter is a filter for nodes
(vcMainData) or for links (vcRelations). This property can be modified only
if the filter does not contain subconditions.
Data Type Explanation
Possible Values:
vcMaindata 0 Table type vcMaindata (for nodes)
vcRelations 1 Table type vcRelations (for links)
DatesWithHourAndMinute
Property of VcFilter
Property value Boolean hours and minutes are compared (True)/ not
compared (False)
Name
Property of VcFilter
Example Code
Dim filterCltn As VcFilterCollection
Dim filter As VcFilter
Specification
Read Only Property of VcFilter
StringsCaseSensitive
Property of VcFilter
This property lets you enquire/set whether subconditions that contain strings
are case-sensitive.
Data Type Explanation
SubCondition
Property of VcFilter
Parameter:
index Integer index of the filter subcondition
{0 ... VcFilter.SubConditionCount-1}
SubConditionCount
Read Only Property of VcFilter
Methods
AddSubCondition
Method of VcFilter
This method lets you create a new filter condition in the collection of the
filter conditions. Its position is specified by the index. The corresponding
VcFilterSubCondition object will be returned.
DataFieldIndex: -1
Operator: vcInvalidOp
ComparisonValueAsString: "<INVALID>"
ConnectionOperator: vcInvalidConnOp.
Data Type Explanation
Parameter:
atIndex Integer Index of the new filter subcondition
CopySubCondition
Method of VcFilter
This method lets you copy a filter subcondition by its index. The new filter
subcondition will be inserted into the collection at the position specified by
the index. It will be returned as a VcFilterSubCondition object.
Data Type Explanation
Parameter:
fromIndex Integer Index of the filter subcondition to be copied
Evaluate
Method of VcFilter
This methods lets you check whether the specified filter applies for a certain
data record or not. You should only pass objects that are internally linked
with data records of the data tables. Those are VcNode, VcLink, VcGroup,
VcDataRecord. If an object is passed that is not listed, an exception will be
triggered.
Data Type Explanation
Parameter:
dataObjectParam Variant Data record object
Return value Boolean Filter applies for data record (True)/does not apply
(False)
IsValid
Method of VcFilter
This property checks whether all filter subconditions are correct. The
correctness of all subconditions is the condition that changed filter
subconditions become valid. Otherwise the former subconditons will remain
valid.
Data Type Explanation
RemoveSubCondition
Method of VcFilter
Parameter:
index Integer index of the filter subcondition to be removed
7.35 VcFilterCollection
Properties
• _NewEnum
• Count
• MarkedNodesFilter
Methods
• Add
• AddBySpecification
• Copy
• FilterByIndex
• FilterByName
• FirstFilter
• NextFilter
• Remove
Properties
_NewEnum
Read Only Property of VcFilterCollection
Example Code
Dim filter As VcFilter
Count
Read Only Property of VcFilterCollection
This property lets you retrieve the number of filters in the filter collection.
Data Type Explanation
Example Code
Dim filterCltn As VcFilterCollection
Dim numberOfFilters As Long
MarkedNodesFilter
Read Only Property of VcFilterCollection
This property lets you retrieve a constant pseudo-filter that can be used only
for ActiveNodeFilter for filtering the nodes currently marked (sub-diagram).
Data Type Explanation
Example Code
Set VcGantt1.ActiveNodeFilter = VcGantt1.FilterCollection.MarkedNodesFilter
Methods
Add
Method of VcFilterCollection
The new filter automatically refers to the data definition table vcMainData
(see VcFilter.DataDefinitionTable). You can select vcRelations instead, as
long as the filter does not contain any subconditions.
Data Type Explanation
Parameter:
newName String Filter name
Example Code
Set newFilter = VcGantt1.FilterCollection.Add("foo")
AddBySpecification
Method of VcFilterCollection
This method lets you create a filter by using filter specification. This way of
creating allows filter objects to become persistent. The specification of a
filter can be saved and re-loaded (see VcFilter property Specification). In a
subsequent the filter can be created again from the specification and is
identified by its name.
Data Type Explanation
Parameter:
filterSpecification String Filter specification
Copy
Method of VcFilterCollection
By this method you can copy a filter. If the filter that is to be copied exists,
and if the name for the new filter does not yet exist, the new filter object is
returned. Otherwise "Nothing" (in Visual Basic) or "0" (other languages) will
be returned.
Data Type Explanation
Parameter:
fromName String Name of the filter to be copied
FilterByIndex
Method of VcFilterCollection
This method lets you access a filter by its index. If a filter of the specified
index does not exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
index Integer Index of the filter
FilterByName
Method of VcFilterCollection
By this method you can retrieve a filter by its name. If a filter of the specified
name does not exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
filterName String Filter name
Example Code
Dim filterCltn As VcFilterCollection
Dim filter As VcFilter
FirstFilter
Method of VcFilterCollection
This method can be used to access the initial value, i.e. the first filter of a
filter collection, and then to continue in a forward iteration loop by the
method NextFilter for the filters following. If there is no filter in the
FilterCollection object, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Example Code
Dim filterCltn As VcFilterCollection
Dim filter As VcFilter
NextFilter
Method of VcFilterCollection
Example Code
Dim filterCltn As VcFilterCollection
Dim filter As VcFilter
Remove
Method of VcFilterCollection
This method lets you delete a filter. If the filter is used in another object, it
cannot be deleted. Then False will be returned, otherwise True.
Data Type Explanation
Parameter:
name String Filter name
7.36 VcFilterSubCondition
Properties
• ComparisonValueAsString
• ConnectionOperator
• DataFieldIndex
• FilterName
• Index
• Operator
Methods
• IsValid
Properties
ComparisonValueAsString
Property of VcFilterSubCondition
This property lets you enquire/set the comparison value. This string must
have the following format:
The type of the comparison value has to match the type of the data field and
the operator type.
Data Type Explanation
ConnectionOperator
Property of VcFilterSubCondition
This property lets you enquire/set the operator for the connetion with the
following subcondition. vcAnd binds stronger than vcOr.
Data Type Explanation
Possible Values:
vcAnd 1 And operator
vcInvalidConnOp 0 invalid operator
vcOr 2 Or operator
DataFieldIndex
Property of VcFilterSubCondition
This property lets you set or retrieve the index of the data field the content of
which is to be compared. The data field type has to match the type of the
comparison value and the operator.
Special values:
This property can also bet set in the Edit filter dialog.
Data Type Explanation
FilterName
Read Only Property of VcFilterSubCondition
This property lets you enquire the name of the filter to which this
subcondition belongs to.
Data Type Explanation
Index
Read Only Property of VcFilterSubCondition
This property lets you enquire the index of this subcondition in the
corresponding filter.
Data Type Explanation
Operator
Property of VcFilterSubCondition
This property lets you set or retreive the comparison operator. The operators
that are available in the API correspond to the operators in the Edit Filter
dialog. The operator type has to match the types of the data field and of the
comparison value.
Data Type Explanation
Possible Values:
vcDateEarlier 27 date earlier than
vcDateEarlierOrEqual 28 date earlier than or equal
vcDateEqual 25 date equal
vcDateIn 31 date in
vcDateLater 29 date later than
vcDateLaterOrEqual 30 date later than or equal
vcDateNotEqual 26 date not equal
vcDateNotIn 32 date not in
vcIntEqual 9 integer equal
vcIntGreater 13 integer greater
vcIntGreaterOrEqual 14 integer greater or equal
vcIntIn 15 integer in
vcIntLess 11 integer smaller than
vcIntLessOrEqual 12 integer smaller than or equal
vcIntNotEqual 10 integer not equal
vcIntNotIn 16 integer not in
vcInvalidOp 0 invalid operator
vcStringBeginsWith 3 string begins with
vcStringContains 5 string contains
vcStringEqual 1 string equal
vcStringIn 7 string contains
vcStringNotBeginsWith 4 string does not begin with
vcStringNotContains 6 string does not contain
vcStringNotEqual 2 string is not equal
vcStringNotIn 8 string is not in
Methods
IsValid
Method of VcFilterSubCondition
Return value Boolean Filter subcondition correct (True)/ not correct (False)
7.37 VcGantt
Properties
• ActiveNodeFilter
• AllowMultipleBoxMarking
• AllowNewBoxes
• AllowNewNodes
• AllowNumericScaleRescale
• AllowTableColumnWidthOptimization
• AllowTimescaleRescale
• AllowVerticalNodeMovement
• AllowVerticalNodeMovementViaTable
• Arrangement
• ArrowKeyMode
• ArrowKeyStepSizeMultiplier
• AssignCalendarToNodes
• BarSeparationGroupBy
• BorderArea
• BoxCollection
• BoxFormatCollection
• CalendarCollection
• CalendarGridCollection
• CalendarProfileCollection
• ConfigurationName
• ConsiderLinkRelationTypesOnNodeDragging
• ContextMenuForBoxesEnabled
• CtrlCXVProcessing
• CurrentVersion
• DataDefinition
• DataTableCollection
• DateLineCollection
• DateLineGridCollection
• DateOutputFormat
• DiagramAlternatingRowBackColor
• DiagramBackColor
• DiagramHistogramHeightRatio
• DiagramHistogramHeightRatioEx
• DiagramVisible
• DialogFont
• DirectDataWritingModeEnabled
• DoubleOutputFormat
• EditNewNode
• Enabled
• EnableSupplyTextEntryEvent
• EventReturnStatus
• EventsSecurityCheck
• EventText
• ExtendedDataTables
• ExtendedEditingBehavior
• FilePath
• FilterCollection
• FontAntiAliasingEnabled
• GroupCollection
• GroupingField
• GroupingModificationsAllowed
• GroupingOrderField
• GroupingSortOrder
• GroupLevelLayoutCollection
• GroupOptimizationOnInteractionsEnabled
• HierarchyDataFieldIndex
• HierarchyLevelLayout
• HistogramCollection
• HistogramSeparationLineColor
• hWnd
• InfoWindow
• InPlaceEditingOnGroupsInDiagramEnabled
• InPlaceEditingOnGroupsInTableEnabled
• InPlaceEditingOnNodesInDiagramEnabled
• InPlaceEditingOnNodesInTableEnabled
• InteractionMode
• LayerCollection
• LegendView
• LineFormatCollection
• LinkAppearanceCollection
• LinkCollection
• LinkPredecessorDataFieldIndex
• LinksDataTableName
• LinkSuccessorDataFieldIndex
• LinkTypeDataFieldIndex
• MapCollection
• MinimumRowHeight
• MouseProcessingEnabled
• MoveAllSelectedNodes
• MoveLayersAsNodeWithShiftKey
• MoveNodeAlways
• MoveNodeWhenMarked
• NewNodesViaDoubleClick
• NodeCalendarNameDataFieldIndex
• NodeCollection
• NodeDurationDataFieldIndex
• NodeEndDateDataFieldIndex
• NodeLevelLayout
• NodeRowNumberDataFieldIndex
• NodesDataTableName
• NodeStartDateDataFieldIndex
• NodeTooltipTextField
• NoOfInitialRows
• OLEDragHorizontalMovementAllowed
• OLEDragMode
• OLEDragWithOwnMouseCursor
• OLEDragWithPhantom
• OLEDropMode
• OverlapLayerEnabled
• OverlapLayerName
• PartialLoadThreshold
• PhantomLayerHeight
• Printer
• ResourceScheduler2
• RightTable
• RightTableDiagramWidthRatio
• RightTableDiagramWidthRatioEx
• RoundedLinkSlantsEnabled
• RowHeightReductionEnabled
• RowMargins
• Scheduler
• ScrollEventsEnabled
• SelectedRowBackColorAsARGB
• ShowNonWorkInterval
• ShowTimeScaleDialog
• ShowToolTip
• SortField
• SortOrder
• SubRowMargins
• SummaryBarsVisible
• Table
• TableCollection
• TableDiagramWidthRatio
• TableDiagramWidthRatioEx
• TimeScaleCollection
• TimeScaleEnd
• TimeScaleStart
• TimeUnit
• TimeUnitsPerStep
• ToolTipChangeDuration
• ToolTipDuration
• ToolTipPointerDuration
• ToolTipShowAfterClick
• TrackingSpaceBackColorAsARGB
• TrackingSpacePattern
• TrackingSpacePatternColorAsARGB
• UpdateBehaviorCollection
• UseHigherDiagramHistogramHeightRatioPrecision
• UseHigherTableDiagramWidthRatioPrecision
• WaitCursorEnabled
• WorldView
• ZoomFactor
• ZoomingPerMouseWheelAllowed
Methods
• AboutBox
• Clear
• ClearAll
• ConvertDistance
• DeleteLinkRecord
• DeleteNodeRecord
• DetectDataTableFieldName
• DetectDataTableName
• DetectFieldIndex
• DumpConfiguration
• EditGroup
• EditLink
• EditNode
• EndLoading
• ExportGraphicsToFile
• FitChartIntoView
• FitHistogramsIntoView
• FitRangeIntoView
• GetAValueFromARGB
• GetBValueFromARGB
• GetCurrentComponentStart
• GetCurrentViewDates
• GetCurrentViewDatesAsString
• GetCurrentViewDatesAsVariant
• GetDate
• GetDateAsString
• GetGValueFromARGB
• GetLinkByID
• GetLinkByIDs
• GetNodeByID
• GetRValueFromARGB
• GetViewComponentSize
• GetViewComponentSizeAsVariant
• GroupNodes
• HistogramSetMaxYValue
• IdentifyField
• IdentifyLayerAt
• IdentifyLayerAtAsVariant
• IdentifyObject
• IdentifyObjectAt
• IdentifyObjectAtAsVariant
• InsertLinkRecord
• InsertNodeRecord
• MakeARGB
• Open
• OptimizeTimeScaleStartEnd
• PageLayout
• PrintDirectEx
• PrinterSetup
• PrintIt
• PrintPreview
• PrintToFile
• RecalculateAllStructureCodes
• Reset
• SaveAsEx
• Schedule
• ScrollComponentStartTo
• ScrollToDate
• ScrollToGroupLine
• ScrollToNode
• ScrollToNodeLine
• ShowExportGraphicsDialog
• SortGroups
• SortNodes
• SuspendUpdate
• UpdateLinkRecord
• UpdateNodeRecord
• UpdateRowNumberFields
• Zoom
Events
• Error
• ErrorAsVariant
• KeyDown
• KeyPress
• KeyUp
• OLECompleteDrag
• OLEDragDrop
• OLEDragOver
• OLEGiveFeedback
• OLESetData
• OLEStartDrag
• OnBoxCreate
• OnBoxCreateComplete
• OnBoxLClick
• OnBoxLDblClick
• OnBoxModify
• OnBoxModifyCompleteEx
• OnBoxRClick
• OnCalendarGridRClick
• OnCurveLClick
• OnCurveLDblClick
• OnCurveModifyComplete
• OnCurveModifyEx
• OnCurveModifyEx2
• OnCurveModifyExAsString
• OnCurveRClick
• OnDataRecordCreate
• OnDataRecordCreateComplete
• OnDataRecordDelete
• OnDataRecordDeleteComplete
• OnDataRecordModify
• OnDataRecordModifyComplete
• OnDataRecordNotFound
• OnDateLineModify
• OnDateLineRClick
• OnDeleteCurvePoint
• OnDeleteCurvePointEx
• OnDiagramLClick
• OnDiagramLDblClick
• OnDiagramRClick
• OnGroupDelete
• OnGroupLClick
• OnGroupLDblClick
• OnGroupModify
• OnGroupModifyComplete
• OnGroupModifyEx
• OnGroupRClick
• OnGroupsMark
• OnGroupsMarkComplete
• OnHelpRequested
• OnHistogramLClick
• OnHistogramLDblClick
• OnHistogramRClick
• OnHistogramsHeight
• OnHistogramsHeightChanged
• OnHistogramsHeightModifyEx
• OnInsertCurvePoint
• OnInsertCurvePointEx
• OnLegendViewClosed
• OnLinkCreate
• OnLinkCreateComplete
• OnLinkDelete
• OnLinkDeleteComplete
• OnLinkLClickCltn
• OnLinkLDblClickCltn
• OnLinkRClickCltn
• OnModifyComplete
• OnMouseDblClk
• OnMouseDown
• OnMouseMove
• OnMouseUp
• OnNodeCreate
• OnNodeCreateCompleteEx
• OnNodeDelete
• OnNodeDeleteCompleteEx
• OnNodeLClick
• OnNodeLDblClick
• OnNodeModifyComplete
• OnNodeModifyCompleteEx
• OnNodeModifyEx
• OnNodeRClick
• OnNodeResizeStart
• OnNodesMarkComplete
• OnNodesMarkEx
• OnNumericScaleLClick
• OnNumericScaleLDblClick
• OnNumericScaleRClick
• OnNumericScaleRescale
• OnObjectDrawCompleteEx
• OnObjectDrawEx
• OnOptimizeTableColumnWidth
• OnPreScrollComponent
• OnPreScrollDiagramHor
• OnResourceSchedulingProgress
• OnResourceSchedulingWarning
• OnScrollComponent
• OnScrollDiagramHor
• OnSelectField
• OnShowCurveNameInMenu
• OnShowDate
• OnShowInPlaceEditor
• OnStatusLineText
• OnSupplyTextEntry
• OnSupplyTextEntryAsVariant
• OnTableCaptionLClick
• OnTableCaptionLDblClick
• OnTableCaptionRClick
• OnTableColumnWidth
• OnTableColumnWidthModifyComplete
• OnTableWidth
• OnTableWidthModifyEx
• OnTimeScaleChangeComplete
• OnTimeScaleEndModifyComplete
• OnTimeScaleLClick
• OnTimeScaleLDblClick
• OnTimeScaleRClick
• OnTimeScaleSectionRescaleCompleteEx
• OnTimeScaleSectionRescaleEx
• OnTimeScaleSectionStartModify
• OnTimeScaleStartModifyComplete
• OnToolTipText
• OnToolTipTextAsVariant
• OnViewComponentsSizeModifyComplete
• OnWorldViewClosed
• OnZoomFactorModifyComplete
Properties
ActiveNodeFilter
Property of VcGantt
This property lets you set or retrieve a filter that selects the nodes to be
displayed.
Data Type Explanation
Example Code
Set VcGantt1.ActiveNodeFilter = VcGantt1.FilterCollection. _
FilterByName("Milestone")
AllowMultipleBoxMarking
Property of VcGantt
This property lets you specify or retrieve whether at run time several boxes
can be marked simultaneously. If the property is not activated, the user has to
keep the CTRL key pressed in order to mark several boxes. You can also set
this property on the General property page
Data Type Explanation
Example Code
VcGantt1.AllowMultipleBoxMarking = True
AllowNewBoxes
Property of VcGantt
This property permits (True) or prohibits (False) the user to create new
boxes. If this property is set to False, the user cannot activate the Mode:
Create box and it is not possible to set the InteractionMode to
VcCreateBox. This property also can be set on the General property page.
Example Code
VcGantt1.AllowNewBoxes = False
AllowNewNodes
Property of VcGantt
This property permits (True) or prohibits (False) the user to create new
nodes. If this property is set to False, the user cannot activate the
CreateNode mode. This property also can be set on the Nodes property page.
Data Type Explanation
Example Code
VcGantt1.AllowNewNodes = False
AllowNumericScaleRescale
Property of VcGantt
This property lets you set or retrieve whether the numeric scale resolution can
be modified at run time.
Example Code
VcGantt1.AllowNumericScaleRescale = True
AllowTableColumnWidthOptimization
Property of VcGantt
This property permits (True) or prohibits (False) the user to let the column
width rescale automatically. The optimization will be triggered when the user
double-clicks on the separation line between the column to be optimized and
Example Code
VcGantt1.AllowTableColumnWidthOptimization = False
AllowTimescaleRescale
Property of VcGantt
This property permits (True) or prohibits (False) the user to rescale the time
scale. If the user is allowed to rescale the time scale, the event
OnTimeScaleRescale is triggered after rescaling the time scale.
Example Code
VcGantt1.AllowTimescaleRescale = False
AllowVerticalNodeMovement
Property of VcGantt
This property lets you set or retrieve whether nodes are allowed to be moved
vertically in the diagram. This property also can be set on the Nodes property
page.
Data Type Explanation
AllowVerticalNodeMovementViaTable
Property of VcGantt
This property lets you set or retrieve whether nodes are allowed to be moved
vertically in the table. This property also can be set on the Nodes property
page.
Data Type Explanation
Arrangement
Property of VcGantt
By this property you can set or retrieve whether the activities are arranged in
a hierarchy or in groups. You can also set this property on the Sorting
property page, by ticking the check box Hierarchy. This property is only
effective if the property HierarchyDataFieldIndex or
GroupDataFieldIndex was set, respectively.
Data Type Explanation
Parameter:
Property value VcArrangementType Arrangement of activities groupwise or
hierarchical
Default value:
vcArrangementTypeGroupwise
Possible Values:
vcArrangementTypeGroupwise 1 Groupwise Arrangement of activities
vcArrangementTypeHierarchical 2 Hierarchical Arrangement of activities
Example Code
VcGantt1.GroupLevelLayoutCollection.FirstGroupLevelLayout().GroupDataFieldIndex
= VcGantt1.DetectFieldIndex("Maindata", "Department")
VcGantt1.Arrangement = VcArrangementType.vcArrangementTypeGroupwise
VcGantt1.GroupNodes(True)
// alternativ:
VcGantt1.HierarchyDataFieldIndex = VcGantt1.DetectFieldIndex("Maindata",
"StructureCode")
VcGantt1.Arrangement = VcArrangementType.vcArrangementTypeHierarchical
VcGantt1.GroupNodes(True)
ArrowKeyMode
Property of VcGantt
By this property you can set the mode of the <left> and <right> arrow keys.
Usually, the arrow keys are reserved for various interactions, such as
scrolling the diagram, moving a marked field within a node or within the
table. These navigating functions you can change by this property into
modifying functions, so the user can move, enlarge or reduce the size of a
node by them. A window displaying information on the position will remain
on the screen for a few more seconds after the interaction finished to let the
user read its content.
If the node being moved arrives at a border of the view, the diagram will
automatically start scrolling (autoscroll).
By simply striking the arrow keys, a node will move; if the user in addition
presses the <Shift> key, he or she can change the size of the node.
Property value Integer Mode of the <left> and <right> arrow keys
Default value: 0
Possible Values:
vcStandard 127 The arrow keys <left> and <right> are in their
default mode
vcResizeOrMoveNode 384 The arrow keys <left> and <right> are in the mode
to modify nodes
Example Code
'Assigning the function to an option button
Private Sub OptionEditNode_Click()
If OptionStandard.Value = True Then
VcGantt1.ArrowKeyMode = vcStandard
Else
VcGantt1.ArrowKeyMode = vcResizeOrMoveNode
End If
End Sub
ArrowKeyStepSizeMultiplier
Property of VcGantt
This property lets you set or retrieve the value of the arrow keys step size
multiplier. When moving the cursor by mouse or by arrow keys (see property
VcGantt.ArrowKeyMode), the properties VcGantt.TimeUnit and
VcGantt.TimeUnitsPerStep will determine the step size, multiplying their
values. If for example the time unit was set to a day and the units per step
were set to 2, the step size will be 2 days. Since by the mouse farther motion
can be obtained simply by continued dragging, but keys do not offer anything
comparable, this additional multiplier exists for the arrow keys. The user can
activate it by pressing the <Ctrl> key in addition to the arrow key. If you set
the value of the multiplier to 10, the step size in the above example will be 20
days per key stroke.
Data Type Explanation
Example Code
'Reducing the time scale resolution and enlarging the step size
Private Sub CommandExtendScale_Click()
'Filling up the available space for the Gantt graph by extending the time
scale
VcGantt1.TimeScaleEnd = DateSerial(2012, 1, 1)
‘ Reducing the resolution of the time scale by the factor 10
VcGantt1.TimeScaleCollection.Active.Section(0).UnitWidth =
VcGantt1.TimeScaleCollection.Active.Section(0).UnitWidth / 10
' Increasing the multiplier for the arrow keys to advance in larger steps
VcGantt1.ArrowKeyStepSizeMultiplier = 25
End Sub
AssignCalendarToNodes
Property of VcGantt
Example Code
VcGantt1.AssignCalendarToNodes = False
BarSeparationGroupBy
Property of VcGantt
This property lets you set or retrieve the data field that controls the node
separation of groups.This property only is available if nodes are grouped
(property page objects, button Grouping, frame groupwise), where the
grouping options nodes in separate lines and nodes optimized were
activated. Then you can select a data field to control the separation.
Consequently, all nodes of a group that have the same value in this data field
will be put in one line, even if they overlap each other.
Tip: Please note that in order to achieve a satisfactory result, the fields have
to have the data type Integer or Alphanumeric and have to lie within the
range of 1 - long_MAX (2147483647). If a field has the value 0 the node will
not be kept together with the other nodes.
Data Type Explanation
Property value Integer Number of the field that should be used for the
separation of nodes in groups
Example Code
VcGantt1.BarSeparationGroupBy = 3
BorderArea
Read Only Property of VcGantt
This property gives access to the BorderArea object, i. e. the title and legend
area.
Data Type Explanation
Example Code
Dim borderArea As VcBorderArea
BoxCollection
Read Only Property of VcGantt
This property gives access to the BoxCollection object that contains all boxes
available.
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
Dim box As VcBox
BoxFormatCollection
Read Only Property of VcGantt
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormat As VcBoxFormat
CalendarCollection
Read Only Property of VcGantt
This property gives access to the calendar collection object that contains all
calendars available.
Data Type Explanation
Example Code
Dim calendarCltn As VcCalendarCollection
Dim calendar As VcCalendar
CalendarGridCollection
Read Only Property of VcGantt
This property gives access to the calendar grid collection object that contains
all calendar grids available.
Data Type Explanation
Example Code
Dim calendarGridCltn As VcCalendarGridCollection
Dim calendarGrid As VcCalendarGrid
CalendarProfileCollection
Read Only Property of VcGantt
Example Code
Dim calendarProfileCltn As VcCalendarProfileCollection
Dim calendarProfile As VcCalendarProfile
ConfigurationName
Property of VcGantt
This property enables a configuration file (*.ini) to be loaded that all settings
are adopted from, including the corresponding data interface.
You can specify either a local file including the path or an URL.
local file: The default configuration file vcgantt.ini should be stored in the
directory where the vcgantt.ocx is registered. If you specify the file name
without path, vcgantt.ini will be expected to exist in the installation directory.
If the specified file does not exist, the default configuration will be loaded,
which does not necessarily exist at the end user.
Note: When loading a new configuration file, existing data will be lost and
may have to be re-loaded again.
Data Type Explanation
Example Code
VcGantt1.ConfigurationName = "c:\VARCHART\XGantt\sample.ini"
' or:
VcGantt1.ConfigurationName = "http://members.tripod.de/netronic_te/ _
xgantt_sample.ini"
ConsiderLinkRelationTypesOnNodeDragging
Property of VcGantt
When this property is set to <b>True</b>, the phantom lines that represent
the links will be displayed indicating their type if dragged, and if links are
switched on at all. The phantom lines will not start off from the center of the
node, but from the left and right side of the node.
Example Code
VcGantt1.ConsiderLinkRelationTypesOnNodeDragging = True
ContextMenuForBoxesEnabled
Property of VcGantt
By this property you can set or retrieve whether the context menu for boxes is
enabled.
Property value Boolean Contex menu for box is/is not enabled
CtrlCXVProcessing
Property of VcGantt
Example Code
VcGantt1.CtrlCXVProcessing = False
CurrentVersion
Read Only Property of VcGantt
This property lets you retrieve the number of the current version of the
VARCHART XGantt object. This is an easy way to identify the version on
your customer's system at runtime, and to probably request the installation to
be repaired, if a version is identified which is too old. The version number
can alternatively be found by the property page of the file vcgantt.ocx in the
section version or it can be read by the FILEVERSION resource of that file.
Data Type Explanation
Example Code
MsgBox VcGantt1.CurrentVersion
DataDefinition
Read Only Property of VcGantt
This property gives access to the current data definition object, in order to
e.g. enquire field names or field types. The data definition of VcGantt has got
two data definition tables: vcMaindata and vcRelations.
Data Type Explanation
Example Code
Dim dataDefinition As VcDataDefinition
DataTableCollection
Read Only Property of VcGantt
This property gives access to the DataTableCollection object that contains the
existing data tables.
Data Type Explanation
Example Code
Dim dataTableCltn As VcDataTableCollection
Dim dataTable As VcDataTable
DateLineCollection
Read Only Property of VcGantt
Example Code
Dim dateLineCltn As VcDateLineCollection
Dim dateLine As VcDateLine
DateLineGridCollection
Read Only Property of VcGantt
Example Code
Dim dateLineGridCltn As VcDateLineGridCollection
Dim dateLineGrid As VcDateLineGrid
DateOutputFormat
Property of VcGantt
This property lets you specify or enquire the date output format. To compose
the date you can use the below codes:
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in ''\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
This setting is valid for the table area and for layer annotations in the node
area. This property also can be set on the General property page.
Data Type Explanation
{DMYhms:;/}
Example Code
VcGantt1.DateOutputFormat = "DD.MM.YY"
DiagramAlternatingRowBackColor
Property of VcGantt
This property lets you set or retrieve a second background color to the
diagram, which forms a linewise alternating pattern with the color set by the
property DiagramBackColor. This property also can be set on the Layout
property page.
Data Type Explanation
({0...255},{0...255},{0...255})
Default value: (255,255,255)
Example Code
VcGantt1.DiagramAlternatingRowBackColor = RGB(255, 0, 0)
DiagramBackColor
Property of VcGantt
This property lets you set or retrieve the diagram background color. If you
combine this property with the property DiagramAlternatingRowBack-
Color you can generate a color pattern that alternates linewise. This property
also can be set on the Layout property page.
({0...255},{0...255},{0...255})
Default value: (255,255,255)
Example Code
VcGantt1.DiagramBackColor = RGB(255, 0, 0)
DiagramHistogramHeightRatio
Property of VcGantt
By this property you can set or retrieve ratio (in %) of the height of the
diagram area (without histogram) to the height of the histogram at the start of
the program. If the ratio is -1 or 0, the histogram will be displayed completely
at the start. This property also can be set on the Layout property page.
Data Type Explanation
Property value Integer {-1, 0, 1, ..., Ratio between diagram height and histogram height
1000}
Example Code
Dim ratio As Integer
ratio = VcGantt1.DiagramHistogramHeightRatio
DiagramHistogramHeightRatioEx
Property of VcGantt
This property lets you set or retrieve the ratio between the total height of the
diagram (in %) and the height of the histogram.
Example Code
VcGantt1.DiagramHistogramHeightRatioEx = 40
DiagramVisible
Property of VcGantt
This property lets you set or retrieve whether the diagram section (table and
Gantt graph) should be visible. This property also can be set on the Layout
property page.
Data Type Explanation
Example Code
VcGantt1.DiagramVisible = False
DialogFont
Property of VcGantt
This property lets you set or retrieve the font name and font size in the
dialogs of the VARCHART XGantt control that appear at run time. The
object expected is a font object of your programming environment, e.g. in
Visual Basic an object of the class Stdfont.
Data Type Explanation
Example Code
Dim newFont As New StdFont
newFont.Size = 14
newFont.Name = "Verdana"
DirectDataWritingModeEnabled
Property of VcGantt
If this property is set to "True", data modifications that are carried out by
using VcNode/VcLink/VcDataRecord/.set_DataField or .AllData are
directly stored to the data pool WITHOUT being evaluated (e.g. by filter
analysis, mapping etc.).
DoubleOutputFormat
Property of VcGantt
This property lets you set or retrieve the output format of numbers as a
double value in the Gantt diagram. The format is composed by the below
characters:
Text
plus the separators comma and period. Text represents a character string; I
represents the figures before the decimal separator and D represents the
figures after the decimal separator. The overall sequence is Text I D Text,
where a comma and a period can be inserted in the places desired. An
example be the number -284901,3458. By the format I,DDDD ppm it will be
output as -284901,3458 ppm. By the format $I,III.DD it will be output as $-
284,901.35.
Property value String Character string which describes the double format,
for example "I,DDDD ppm"
Example Code
VcGantt1.DoubleOutputFormat = "I,DDDD ppm"
EditNewNode
Property of VcGantt
This property specifies whether or not the Edit Data dialog box appears
when a new node is created. The AllowNewNodes property must be set to
True to enable the user to create new nodes. This property also can be set on
the Nodes property page.
Data Type Explanation
Property value Boolean the Edit Data dialog appears/does not appear.
Default value: False
Example Code
VcGantt1.EditNewNode = True
Enabled
Property of VcGantt
This property lets you disable the VARCHART XGantt control so that it will
not react to mouse or keyboard commands.
Data Type Explanation
Example Code
VcGantt1.Enabled = False
EnableSupplyTextEntryEvent
Property of VcGantt
This property lets you activate the OnSupplyTextEntry event. This event
lets you modify the texts of context menus, dialog boxes, error messages,
months' and days' names etc. that occur during run time, for example for
translation into different languages.
Example Code
VcGantt1.EnableSupplyTextEntryEvent = True
EventReturnStatus
Property of VcGantt
You will need this property only in a development environment which does
not allow the setting of a return value in an event procedure as e.g. javascript.
With this property the default returnStatus is overwritten within the event
method by the desired value.The setting is valid only for the event in which it
was made.
Data Type Explanation
Possible Values:
vcRetStatDefault 2 The default behavior remains unchanged.
vcRetStatFalse 0 The default behavior will not be performed.
vcRetStatNoPopup 4 The popup of the right-click mouse menu is
inhibited.
vcRetStatOK 1 The default behavior will be performed.
Example Code
Private Sub VcGantt1_OnDiagramRClick(ByVal x As Long, ByVal y As Long,
returnStatus As Variant)
VcGantt1.EventReturnStatus = vcRetStatNoPopup
End Sub
EventsSecurityCheck
Property of VcGantt
This property lets you activate/deactivate the event security check. You also
can set this property on the General property page.
Data Type Explanation
Example Code
VcGantt1.EventsSecurityCheck = False
EventText
Read Only Property of VcGantt
You will need this property only in a development environment which does
not allow the setting of the delivery parameter in an event procedure as e.g.
javascript.
This property sets the ToolTipText. The setting is only valid for the
corresponding event.
Data Type Explanation
Example Code
Private Sub VcGantt1_OnSupplyTextEntry(ByVal controlIndex As
VcGanttLib.TextEntryIndexEnum, TextEntry As String, returnStatus As Variant)
VcGantt1.EventText = "Order189"
End Sub
ExtendedDataTables
Property of VcGantt
This property allows to choose between using merely two data tables
(Maindata and Relations) and the advanced use of up to 90 data tables. The
latter option is recommended. This property needs to be set at the beginning
of your program, before data tables and data records are created.
Property value Boolean True: only two data tables (Maindata and Relations)
Example Code
VcGantt1.ExtendedDataTables = True
ExtendedEditingBehavior
Property of VcGantt
This property lets you set or retrieve whether at run time the user is allowed
to apply enhanced options for editiing the table. You can also set this
property on the General property page.
Data Type Explanation
Example Code
VcGantt1.ExtendedEditingBehavior = True
FilePath
Property of VcGantt
This property lets you set the file path so that graphics files will be found in
the directory specified, even if only a relative file name was specified.
Otherwise the file will be searched in the current directory of the application
and in the installation directory of the VARCHART ActiveX control.
This property should be set when the application is started during the
initializing procedure of the VARCHART ActiveX control. We recommend
to set the file path to the path of the application or to a subdirectory of the
application. The advantage of this action is that the application can be stored
in any directory.
Data Type Explanation
Example Code
Dim graphicsPath As String
FilterCollection
Read Only Property of VcGantt
This property gives access to the FilterCollection object that contains all
filters available.
Example Code
Dim filterCltn As VcFilterCollection
Dim filter As VcFilter
FontAntiAliasingEnabled
Property of VcGantt
This property lets you set or retrieve whether fonts can be anti-aliased with
GDI+. If the legibility of certain fonts - in particular non- latin ones - changes
for the worse, the property should be set to False.
The anti-aliasing with GDI+ has yet another effect: regardless of the selected
zoom factor, texts keep their relative dimension so that the number of
characters that fits in a table field will always be the same. If the option is
switched off the settings of the operating system are applied instead (the
settings can be found in the Control Panel, dialog box Display, Tab
Appearance: Effects). Thus, if the option Smooth edges is switched on in
the Control Panel, the texts might still be anti-aliased, notwithstanding the
settings of the General property page. In this case, at some zoom levels more
text could be visible than at others, since the native edge smoothing does not
guarantee that the same relative dimension is always kept.
GroupCollection
Read Only Property of VcGantt
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
GroupingField
Property of VcGantt
This property lets you set or retrieve the field in the data definition table that
is to be used as a grouping criterion of a defined level. The groups by default
will be sorted in the order of reading, by which the first activity of the group
was loaded. The sorting order can be modified by the property
GroupingOrderField).
Parameter:
GroupingLevel Integer Grouping level (starting by 0)
Example Code
Dim definitionTable As VcDataDefinitionTable
GroupingModificationsAllowed
Property of VcGantt
This property lets you specify whether the user can collapse expanded groups
or expand collapsed groups. The user can collapse/expand groups by double-
clicking on the group heading in the table section, by clicking on the minus
or plus symbol next to the group heading or by the context menu for groups.
This property also can be set in the Grouping dialog.
Parameter:
groupingLevel Integer Grouping level
Example Code
VcGantt1.GroupingModificationsAllowed(0) = False
GroupingOrderField
Property of VcGantt
This property lets you specify what field of the data definition table is to be
used for sorting the groups. By using GroupingOrderField, the groups will
be sorted in ascending or descending alphabetical order by this field. This
property also can be set in the Grouping dialog.
Data Type Explanation
Parameter:
groupingLevel Integer Grouping level
Example Code
VcGantt1.GroupingOrderField (0) = 12
VcGantt1.GroupingSortOrder (0) = vcDescending
VcGantt1.SortGroups
GroupingSortOrder
Property of VcGantt
This property lets you specify the sorting order of groups (ascending or
descending). By the property GroupingOrderField you can specify the field
by that the groups are sorted. This property also can be set in the Grouping
dialog.
Data Type Explanation
Parameter:
groupingLevel Integer Grouping level
Possible Values:
vcAscending 1 ascending order
Example Code
VcGantt1.GroupingOrderField (0) = 12
VcGantt1.GroupingSortOrder (0) = vcAscending
VcGantt1.SortGroups
GroupLevelLayoutCollection
Read Only Property of VcGantt
Example Code
Dim groupLevelLayoutCltn As VcGroupLevelLayoutCollection
Dim groupLevelLayout As VcGroupLevelLayout
GroupOptimizationOnInteractionsEnabled
Property of VcGantt
If this property is set to True, the nodes of the target group automatically are
optimized on interactions such as creating nodes, moving nodes or modifying
their start or end date, if they had been in the optimized state of display
before. If this property is set to False, on the interactions mentioned the node
will be placed at the cursor, if this doesn't cause nodes to overlap. If it does,
the node will be placed with other nodes in the next line, if this doesn't cause
overlaps. If it does, a new line will be created below the one where the cursor
is and the node will be put there.
This property can also be set at design time on the General property page.
HierarchyDataFieldIndex
Property of VcGantt
This property lets you set or retrieve the index of the data field which defines
the hierarchical order of activities. This can be done even after having loaded
data already. The modifications only become effective after having set the
arrangement of activities to hierarchical with the property
VcGantt.Arrangement (vcArrangementTypeHierarchical and having
carried out an update with the method VcGantt.GroupNodes.
Data Type Explanation
Property value Long Data field which defines the hierarchical order of
activities
Example Code
VcGantt1.HierarchyDataFieldIndex = VcGantt1.DetectFieldIndex("Maindata",
"Hierarchy")
VcGantt1.Arrangement = vcArrangementTypeHierarchical
VcGantt1.GroupNodes True
HierarchyLevelLayout
Read Only Property of VcGantt
HistogramCollection
Read Only Property of VcGantt
This property gives access to the HistogramCollection object that contains all
histograms available.
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
HistogramSeparationLineColor
Property of VcGantt
This property lets you set/retrieve the color of the separation lines between
histograms. This property also can be set on the Layout property page.
Data Type Explanation
({0...255},{0...255},{0...255})
Default value: (255,255,255)
hWnd
Read Only Property of VcGantt
Note: Because the value of this property can change while a program is
running, never store the hWnd value in a variable.
Data Type Explanation
Example Code
MsgBox (Me.hWnd)
InfoWindow
Read Only Property of VcGantt
This property gives access to the InfoWindow object that designates the
information window of a node appearing in a Gantt chart when a node is
created or modified.
Data Type Explanation
InPlaceEditingOnGroupsInDiagramEnabled
Property of VcGantt
This property lets you set or retrieve whether at run time the in-line editing of
group data fields in the diagram should be permitted to the user. For this, the
group data have to use their own data tables. You also can set this property
on the General property page.
Note: If certain data fields are not to be editable, the Editable check box in
the Administrate Data Tables dialog must not be ticked.
Property value Boolean In-line editing enabled (True) / not enabled (False)
Default value: True
Example Code
VcGantt1.InPlaceEditingOnGroupsInDiagramEnabled = True
InPlaceEditingOnGroupsInTableEnabled
Property of VcGantt
This property lets you set or retrieve whether at run time the in-line editing of
group data fields in the table should be permitted to the user. c You also can
set this property on the General property page.
Note: If certain data fields are not to be editable, the Editable check box in
the Administrate Data Tables dialog must not be ticked.
Property value Boolean In-line editing enabled (True) / not enabled (False)
Default value: True
Example Code
VcGantt1.InPlaceEditingOnGroupsInTableEnabled = True
InPlaceEditingOnNodesInDiagramEnabled
Property of VcGantt
This property lets you set or retrieve whether at run time the in-line editing of
node data fields in the diagram should be permitted to the user. You also can
set this property on the General property page.
Note: If certain data fields are not to be editable, the Editable check box in
the Administrate Data Tables dialog must not be ticked.
Property value Boolean In-line editing enabled (True) / not enabled (False)
Default value: True
Example Code
VcGantt1.InPlaceEditingOnNodesInDiagramEnabled = True
InPlaceEditingOnNodesInTableEnabled
Property of VcGantt
This property lets you set or retrieve whether at run time the in-line editing of
node data fields in the table should be permitted to the user. You also can set
this property on the General property page.
Note: If certain data fields are not to be editable, the Editable check box in
the Administrate Data Tables dialog must not be ticked.
Property value Boolean In-line editing enabled (True) / not enabled (False)
Default value: True
Example Code
VcGantt1.InPlaceEditingOnNodesInTableEnabled = True
InteractionMode
Property of VcGantt
Property value InteractionModeEnum Modes create link, delete link, create node, delete
node, pointer
Default value: vcPointer
Possible Values:
vcCreateBox 36 Box creating mode
vcCreateLink 4 Link creating mode
vcCreateNode 2 Node creating mode
vcDeleteLink 5 Link deleting mode
vcDeleteNode 3 Node deleting mode
vcPointer 0 Select mode
Example Code
VcGantt1.InteractionMode = vcCreateNode
LayerCollection
Read Only Property of VcGantt
This property gives access to the layer collection that contains all layers
available.
Data Type Explanation
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
LegendView
Read Only Property of VcGantt
This property gives access to the LegendView object that lets you define the
legend view of the diagram.
Data Type Explanation
Example Code
Dim legendview As VcLegendView
LineFormatCollection
Read Only Property of VcGantt
LinkAppearanceCollection
Read Only Property of VcGantt
Example Code
Dim linkAppCltn As VcLinkAppearanceCollection
Dim linkApp As VcLinkAppearance
Next
LinkCollection
Read Only Property of VcGantt
This property gives access to the link collection that contains all links
defined.
Data Type Explanation
Example Code
Dim linkCltn As VcLinkCollection
Dim link As VcLink
LinkPredecessorDataFieldIndex
Property of VcGantt
This property lets you set or retrieve the index of the data field which holds
the identification of the predecessor node of the link. You can only set this
property if data was not yet loaded.
Parameter:
identifierIndex Integer Index of predecessor node {0...2}
Example Code
Dim dataTable As VcDataTable
Dim dataRecord As VcDataRecord
VcGantt1.LinkPredecessorDataFieldIndex(0) =
VcGantt1.DetectFieldIndex("LinkDataTable", "Id")
VcGantt1.LinkSuccessorDataFieldIndex(0) =
VcGantt1.DetectFieldIndex("LinkDataTable", "Id")
'Load Data
Set dataTable = VcGantt1.DataTableCollection.DataTableByName("LinkDataTable")
Set dataRecord = dataTable.DataRecordCollection.Add("1;1;2;")
VcGantt1.EndLoading
LinksDataTableName
Property of VcGantt
This property lets you set or retrieve the name of the data table which
contains the fields for the links. This is only possible as long as no data has
been loaded.
Property value String Name of the data table which provides the fields for
the links
Example Code
Dim dataTable As VcDataTable
Dim dataRecord As VcDataRecord
VcGantt1.LinkPredecessorDataFieldIndex(0) =
VcGantt1.DetectFieldIndex("LinkDataTable", "Id")
VcGantt1.LinkSuccessorDataFieldIndex(0) =
VcGantt1.DetectFieldIndex("LinkDataTable", "Id")
'Load Data
Set dataTable = VcGantt1.DataTableCollection.DataTableByName("LinkDataTable")
Set dataRecord = dataTable.DataRecordCollection.Add("1;1;2;")
VcGantt1.EndLoading
LinkSuccessorDataFieldIndex
Property of VcGantt
This property lets you set or retrieve the index of the data field which holds
the identification of the successor node of the link. This is only possible as
long as no data has been loaded.
Parameter:
identifierIndex Integer Index of predecessor node {0...2}
Example Code
Dim dataTable As VcDataTable
Dim dataRecord As VcDataRecord
VcGantt1.LinkPredecessorDataFieldIndex(0) =
VcGantt1.DetectFieldIndex("LinkDataTable", "Id")
VcGantt1.LinkSuccessorDataFieldIndex(0) =
VcGantt1.DetectFieldIndex("LinkDataTable", "Id")
'Load Data
Set dataTable = VcGantt1.DataTableCollection.DataTableByName("LinkDataTable")
Set dataRecord = dataTable.DataRecordCollection.Add("1;1;2;")
VcGantt1.EndLoading
LinkTypeDataFieldIndex
Property of VcGantt
This property lets you set or retrieve the index of the data field which
contains the link type. This is only possible as long as no data has been
loaded.
Property value Long Data field which contains the link type
Example Code
Dim dataTable As VcDataTable
MapCollection
Read Only Property of VcGantt
This property gives access to the map collection that contains a defined
number of maps. The maps contained are selected by the method VcMap-
Collection.SelectMaps.
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
MinimumRowHeight
Property of VcGantt
By this property you can assign a minimum height (unit: 1/100 mm) to a row.
The height chosen should correspond to the average height of an activity.
This property can also be set on the Layout property page.
The minimum row height only becomes effective if there is no activity in the
row or if existing activities do not exceed the minimum row height. In all
other cases the row height automatically adapts to the space required by the
activities. The values permitted range between 2 and 1000.
Data Type Explanation
Example Code
VcGantt1.MinimumRowHeight = 100
MouseProcessingEnabled
Property of VcGantt
This property allows you to process mouse events in your own way. If you
want your own processing method between the OnMouseDown event and
the OnMouseUp event, then set the MouseProcessingEnabled property to
False for this time interval. Then VARCHART XGantt will ignore all mouse
movements and clicks until this property is set to True again.
Example Code
Private Sub VcGantt1_OnMouseDown(ByVal button As Integer, ByVal Shift As
Integer, ByVal x As Long, ByVal y As Long)
VcGantt1.MouseProcessingEnabled = False
End Sub
MoveAllSelectedNodes
Property of VcGantt
This property lets you set or retrieve whether the user can move the marked
nodes collectively. If it is disabled, only single nodes (depending on whether
on the Nodes property page the Move node when marked check box was
ticked) or layers can be moved by the mouse, even if several nodes where
marked.
Example Code
VcGantt1.MoveAllSelectedNodes = True
MoveLayersAsNodeWithShiftKey
Property of VcGantt
This property lets you set or retrieve whether the layers of a marked node are
moved as a whole when the shift key is being pressed while dragging (True).
Otherwise the layers can be moved individually only (False). This property
also can be set on the Nodes property page.
Example Code
VcGantt1.MoveLayersAsNodeWithShiftKey = False
MoveNodeAlways
Property of VcGantt
This property lets you set or retrieve whether a node and hence all ist layers
can be moved without having to be marked before. This property also can be
set on the Nodes property page.
Data Type Explanation
Example Code
VcGantt1.MoveNodeAlways = True
MoveNodeWhenMarked
Property of VcGantt
This property lets you set or retrieve whether a marked node can be
interactively moved as a whole (True). Otherwise single layers can be moved
only (False). This property also can be set on the Nodes property page.
Data Type Explanation
Example Code
VcGantt1.MoveNodeWhenMarked = True
NewNodesViaDoubleClick
Property of VcGantt
This property lets you enable the user to create a new node by double-
clicking in the diagram area. Note: The AllowNewNodes property must be
set to True. This property also can be set on the Nodes property page.
Data Type Explanation
Example Code
VcGantt1.NewNodesViaDoubleClick = True
NodeCalendarNameDataFieldIndex
Property of VcGantt
This property lets you set or retrieve the index of the data field to store the
name of the calendar if you wish to use an individual calendar for a node.
This is only possible as long as no data has been loaded. This property also
can be set on the Nodes property page.
Data Type Explanation
Property value Long Index of the data field which contains the name of a
node calendar
NodeCollection
Read Only Property of VcGantt
Example Code
Dim nodeCltn As VcNodeCollection
NodeDurationDataFieldIndex
Property of VcGantt
This property lets you set or retrieve the the index of the data field that
contains the duration of an interactively created node. This is only possible as
long as no data has been loaded. This property also can be set on the Nodes
property page.
Data Type Explanation
Property value Long Index of the data field which holds the duration of an
interactively created node
NodeEndDateDataFieldIndex
Property of VcGantt
This propery lets you set or retrieve the the index of the data field to store the
end date of an interactively created activity. This is only possible as long as
no data has been loaded. This property also can be set on the Nodes property
page.
Data Type Explanation
Property value Long Index of the data field which holds the end date of
an interactively created activity
NodeLevelLayout
Read Only Property of VcGantt
This property gives access to the NodeLevelLayout object. This object lets
you set or retrieve the properties of the hierarchical arrangement of activites.
Data Type Explanation
NodeRowNumberDataFieldIndex
Property of VcGantt
This property lets you set or retrieve the index of the data field which stores
the row number of each activity. The modifications only become effective
Property value Long Index of the data field which holds the row number
of an activity
Example Code
Private Sub Form_Load()
VcGantt1.NodeRowNumberDataFieldIndex =
VcGantt1.DetectFieldIndex("NodeDataTable", "SortNumber")
'Load data
Call loadData
VcGantt1.UpdateRowNumberFields
VcGantt1.SaveAsEx "C:\ProjectData.txt", vcUnicodeEncoding
End Sub
NodesDataTableName
Property of VcGantt
This property lets you set or retrieve the name of the data table which
provides the fields for the nodes. This is only possible as long as no data has
been loaded. This property also can be set on the Nodes property page.
Data Type Explanation
Property value String Name of the data table which provides the fields for
the nodes
Example Code
Dim dataTable As VcDataTable
Dim dataRecord As VcDataRecord
NodeStartDateDataFieldIndex
Property of VcGantt
This property lets you set or retrieve the index of the data field to store the
start date of an interactively created activity. This is only possible as long as
no data has been loaded. This property also can be set on the Nodes property
page.
Data Type Explanation
Property value Long Index of the data field which holds the start date of
an interactively created activity
NodeTooltipTextField
Property of VcGantt
This property lets you require/set the index of the data field of a node to store
the tooltip texts for VMF files. This text appears when in the WebViewer the
right mouse button is pressed.
Property value Integer Index of the node data field for tooltip texts
Default value: 4
Example Code
VcGantt1.NodeTooltipTextField = 1
NoOfInitialRows
Property of VcGantt
This property lets you set or retrieve the number of node rows at the program
start. This property also can be set on the Layot property page.
Data Type Explanation
Example Code
VcGantt1.NoOfInitialRows = 1
OLEDragHorizontalMovementAllowed
Property of VcGantt
This property lets you set or retrieve whether a node can be moved if the
control is the target component of an ongoing OLE Drag&Drop action. The
property does not affect activities moved within the same Gantt chart.
Data Type Explanation
Property value Boolean OLE drag&drop action allowed (true) / not allowed
(False)
Default value: False
Example Code
VcGantt1.OLEDragHorizontalMovementAllowed = True
OLEDragMode
Property of VcGantt
By this property you can set or retrieve, whether dragging a node beyond the
limits of the current VARCHART XGantt control is allowed.
On the start, the source component will fill the DataObject with the data it
contains and will set the effects parameter before initiating the OLEStartDrag
event, as well as other source-level OLE Drag & Drop events. This gives you
control over the drag/drop operation and allows you to intercede by adding
other data formats.
While dragging, the user can decide whether to shift or to copy the object by
using the Ctrl key.
OLE Drag & Drop operations in VARCHART XGantt are compatible to the
ones in Visual Basic. Methods, properties and events have the same names
and results as the default objects of Visual Basic.
Data Type Explanation
Property value OLEDragModeEnum Dragging mode for objects to leave the VARCHART
ActiveX control
Default value: vcOLEDragManual
Possible Values:
vcOLEDragAutomatic 1 Method OLEDrag is invoked automatically
vcOLEDragManual 0 Method OLEDrag needs to be invoked separately.
Example Code
VcGantt1.OLEDragMode = vcOLEDragAutomatic
OLEDragWithOwnMouseCursor
Property of VcGantt
This property lets you disable the mouse cursor in the target control during an
OLE drag operation. OLE Drag & Drop allows to set the cursor in the source
control by the event OLEGiveFeedback. If you do this, two competing
cursors will exist in the target control, that may appear to flicker. You can
avoid the flickering by disabling the target cursor by this property. This
property also can be set on the Nodes property page.
Data Type Explanation
Property value Boolean Cursor occurs/does not occur in the target control
Default value: True
Example Code
VcGantt1.OLEDragWithOwnMouseCursor = False
OLEDragWithPhantom
Property of VcGantt
This property lets you disable the display of an OLE drag phantom. Disabling
the phantom is useful when generating a new object is omitted but merely the
attributes of the object in the target control are modified. This property also
can be set on the Nodes property page.
Example Code
VcGantt1.OLEDragWithPhantom = False
OLEDropMode
Property of VcGantt
By this property you can set or retrieve, whether a node from a different
VARCHART XGantt control can be dropped in the current control.
OLE Drag & Drop operations in VARCHART XGantt are compatible to the
ones in Visual Basic. Methods, properties and events have the same names
and results as the default objects of Visual Basic.
Data Type Explanation
Possible Values:
vcOLEDropAutomatic 2 The data of the object received are automatically
processed and a node corresponding to the data
received is displayed in the place of the dropping.
vcOLEDropManual 1 The event OLEDragDrop is invoked for the
programmer to process the data of the object
received.
vcOLEDropNone 0 Dropping of objects that do not originate from the
current VARCHART ActiveX control is not allowed.
Example Code
VcGantt1.OLEDropMode = vcOLEDropAutomatic
OverlapLayerEnabled
Property of VcGantt
This property lets you activate the overlap layer of the diagram. Please also
see the property OverlapLayerName and the property UsedAsOverlap-
Layer at the layer object.
Data Type Explanation
OverlapLayerName
Property of VcGantt
This property lets you set or retrieve by ist name the layer that is designed to
occur as the overlap layer in the diagram. The overlap layer needs to be
created and described by methods an properties of the layer object and needs
to be marked by the layer property UsedAsOverlap Layer. Finally, it needs
to be activated by the property OverlapLayerEnabled of the Gantt object.
Data Type Explanation
PartialLoadThreshold
Read Only Property of VcGantt
This property lets you set or retrieve a value up to which he loading of nodes
will be performed by an optimized partial update and not by a complete
update of the data records.
If data records are added, a default loading cycle is started that is optimized
for the loading of large amounts of data: structures as grouping and sorting,
the calculating of summary bars etc. are being removed and created anew
completely. This is convenient when large amounts of data are loaded into an
empty chart. If, however, only few records are being loaded into an existing
data strucure the reloading of only few nodes could take just as long as the
The property should mainly be used when the chart contains already many
nodes and only few shall be added at runtime.
Tip: The optimization can currently only be used for the Maindata table.
Hence the setting will be ignored if data from other tables or links are being
loaded in a loading cycle.
Data Type Explanation
PhantomLayerHeight
Property of VcGantt
By this property you can set or retrieve the height of the layer phantom (in
1/100 mm ) that appears when a node is created interactively.
Data Type Explanation
Example Code
Dim phantomLayerHeight As Integer
phantomLayerHeight = VcGantt1.PhantomLayerHeight
Printer
Read Only Property of VcGantt
This property gives access to the printer object. This object lets you set or
retrieve the properties of the printer currently used.
Data Type Explanation
Example Code
Dim printerZoomfactor As Integer
Dim printerCuttingMarks As String
printerZoomfactor = VcGantt1.Printer.ZoomFactor
printerCuttingMarks = VcGantt1.Printer.CuttingMarks
ResourceScheduler2
Property of VcGantt
Example Code
VcGantt1.ResourceScheduler2.TaskDataTableName = "Task"
VcGantt1.ResourceScheduler2.TaskDueDateFieldIndex = 1
VcGantt1.ResourceScheduler2.TaskReleaseDateFieldIndex = 2
'...
VcGantt1.ResourceScheduler2.Process
RightTable
Read Only Property of VcGantt
This property lets you or retrieve the table object on the right of the Gantt
graph in order to access the formats used or to modify the table columns and
headings.
Data Type Explanation
Example Code
Dim rightTable As VcTable
RightTableDiagramWidthRatio
Property of VcGantt
This property lets you set or retrieve the ratio between the width of the right
table and the width of the diagram (in %). If this property is set to -1, the
table will always be displayed completely.
Data Type Explanation
{-1, 1...100}
Example Code
VcGantt1.RightTableDiagramWidthRatio = 40
RightTableDiagramWidthRatioEx
Property of VcGantt
This property lets you set or retrieve the ratio between the width of the right
table and the width of the diagram (in %). If this property is set to -1, the
table will always be displayed completely.
Example Code
VcGantt1.RightTableDiagramWidthRatioEx = 40
RoundedLinkSlantsEnabled
Read Only Property of VcGantt
This property lets you set or retrieve whether the slants of links of the routing
type vcLRTOrthogonal are to be displayed as quarter circles instead of
straigt lines. This property can also be set on the General property page.
Data Type Explanation
Example Code
VcGantt1.RoundedLinkSlantsEnabled = True
RowHeightReductionEnabled
Read Only Property of VcGantt
This property controls the way of calculating the row height in the diagram.
If it is set to false, the vertical offsets of the layers are applied by using an
imaginary zero line in the vertical center of a node line. To keep the zero line
always in the center of the row, it thus may happen that either the top or the
bottom row margin will seem rather broad. The layers with a vertical offset
of 0, however, stay always vertically centered .
If this property is set to true, the imaginary zero line is still used, but its
position is no longer necessarily in the center of the row but in a position that
allows the row height to be as low as possible. Thus it may happen that layers
with a vertical offset of 0 are not on the same level as the vertical centered
text of the corresponding table row.
Example Code
VcGantt1.RowHeightReductionEnabled = True
RowMargins
Property of VcGantt
This property lets you set or retrieve the width between the upper/ lower node
margins and the upper/lower margins of the node rows. This property can
also be set on the Layout property page.
Data Type Explanation
Property value Long width between the upper/ lower node margins and
the upper/lower margins of the node rows by 1/100
mm
Example Code
VcGantt1.RowMargins = 100
Scheduler
Read Only Property of VcGantt
ScrollEventsEnabled
Property of VcGantt
This property lets you enable or disable the scroll events. This feature can
also be set by the General property page.
Example Code
VcGantt1.ScrollEventsEnabled = True
SelectedRowBackColorAsARGB
Property of VcGantt
By this property you can assign a color to a selected row. You can use an
alpha value that sets the degree of transparency to the color, in order to put a
colored fog on the background color of the row (see properties Diagram-
BackColor and DiagramAlternatingRowBackColor).
The color is disabled by default since the default value is fully transparent.
The color value is composed by four parts: A (alpha), R (red), G (green) and
B (blue). R, G and B cannot (!) be put together by the commonly used RGB
macro. The most simple way is to use hexadecimal notation, for example in
VB6 &haarrggbb or in C++ 0xaarrggbb, where aa, rr, gg and bb may range
between 00..FF (corresponding to the decimal values of 0..255). A value of 0
in the alpha position will result in complete transparency whereas 255
represents a completely solid color. Ascending values of R, G and B will
show increasingly lightening colors, the ultimate values 0,0,0 and 255,255,
255 representing black and white, respectively.
Example Code
VcGantt1.SelectedRowBackgroundColorAsARGB = &h77503DFF
ShowNonWorkInterval
Property of VcGantt
This property lets you set or retrieve whether workfree intervals are to be
displayed in the nodes. This property also can be set on the Nodes property
page.
Property value Boolean Show workfree intervals (true)/do not show workfree
intervals (false/
Example Code
VcGantt1.ShowNonWorkInterval = False
ShowTimeScaleDialog
Property of VcGantt
This property lets you set or retrieve whether the Edit Time scale dialog box
is to appear when the user double-clicks on the time scale. This property also
can be set on the General property page.
Data Type Explanation
Example Code
VcGantt1.ShowTimeScaleDialog = False
ShowToolTip
Property of VcGantt
Example Code
VcGantt1.ShowToolTip = True
SortField
Property of VcGantt
This property lets you specify the fields that the nodes are to be sorted by.
Three sorting levels exist. For each one the field index can be specified. The
Parameter:
sortLevel Integer Sorting level
{0...2}
Example Code
VcGantt1.SortField (0) = 11
VcGantt1.SortOrder (0) = vcDescending
VcGantt1.SortNodes
SortOrder
Property of VcGantt
This property specifies the sorting order (ascending or descending) for each
of the three sorting levels. The sorting is triggered by the method SortNodes.
This property also can be set in the Grouping dialog.
Data Type Explanation
Possible Values:
vcAscending 1 ascending order
vcDescending 2 descending order
Example Code
VcGantt1.SortField (0) = 11
VcGantt1.SortOrder (0) = vcDescending
VcGantt1.SortNodes
SubRowMargins
Property of VcGantt
This property lets you set or retrieve the vertical offset between sub rows
(unit: 1/100 mm). Sub rows only come into existence if groups are displayed
in an optimized way. Then nodes of the group are distributed to sub rows to
prevent them from overlapping. This property can also be set on the Layout
property page.
Data Type Explanation
({0...200})
Default value: 50
Example Code
VcGantt1.SubRowMargins = 100
SummaryBarsVisible
Property of VcGantt
This property lets you set or retrieve whether summary bars are visible or not.
Data Type Explanation
Parameter:
GroupingLevel Integer (Not for hierarchy) grouping level (GroupingLevel = -
1: reading: all levels, writing: at least one level )
Example Code
VcGantt1.SummaryBarsVisible (-1) = False
Table
Read Only Property of VcGantt
This property gives access to the table object in order to access the formats
used to modify its table columns and their headings.
Data Type Explanation
Example Code
Dim table As VcTable
TableCollection
Read Only Property of VcGantt
This property gives access to the table collection object that contains all
tables available.
Data Type Explanation
Example Code
Dim tableCltn As VcTableCollection
Dim table As VcTable
TableDiagramWidthRatio
Read Only Property of VcGantt
This property lets you set or retrieve the ratio between the width of the left
table and the width of the diagram (in %). If this property is set to -1, the
table will always be displayed completely.
Data Type Explanation
{-1, 1...100}
Example Code
VcGantt1.LeftTableDiagramWidthRatio = 40
TableDiagramWidthRatioEx
Property of VcGantt
This property lets you set or retrieve the ratio between the width of the left
table and the width of the diagram (in %). If this property is set to -1, the
table will always be displayed completely.
Example Code
VcGantt1.LeftTableDiagramWidthRatioEx = 40
TimeScaleCollection
Read Only Property of VcGantt
This property gives access to the time scale collection that contains all time
scales available.
Data Type Explanation
Example Code
Dim timeScaleCltn As VcTimeScaleCollection
Dim timeScale As VcTimeScale
TimeScaleEnd
Property of VcGantt
This property lets you set or retrieve the end of the time scale. The date of the
end needs to be later than the date of the start (also see the TimeScaleStart
property), otherwise the setting will be ignored. At the same time the
sequence of the statements set needs to be vice versa. We recommend to use
the sequence of statements as shown in the source code sample below.
{1.1.1980...31.12.2035}
Example Code
' Timescale from 1.10.2014 to 30.11.2014
VcGantt1.TimeScaleEnd = "01.12.14"
VcGantt1.TimeScaleStart = "01.10.14"
VcGantt1.TimeScaleEnd = "01.12.14"
TimeScaleStart
Property of VcGantt
This property lets you set or retrieve the start of the time scale. When setting,
the date of the start needs to be earlier than the date of the end (also see the
TimeScaleEnd property), otherwise the setting will be ignored by XGantt.
At the same time the sequence of the statements set needs to be vice versa.
We recommend to use the sequence of statements as shown in the source
code example below.
Data Type Explanation
{1.1.1980...31.12.2035}
Example Code
' Timescale from 1.10.2014 to 30.11.2014
VcGantt1.TimeScaleEnd = "01.12.14"
VcGantt1.TimeScaleStart = "01.10.14"
VcGantt1.TimeScaleEnd = "01.12.14"
TimeUnit
Property of VcGantt
This property lets you set or retrieve the time unit used for the calculation of
the duration (see "Layers") and for generating and modifying nodes
interactively. If for example you have chosen the unit of a day, nodes can be
generated or shifted by steps of days only, and the duration of nodes will also
be calculated in days. This property can be set on the General property page.
Note:If you want to change the time unit, you should do this before reading
data because later modifications are not effective.
Data Type Explanation
Possible Values:
vcDay 5 Time unit day
vcHour 6 Time unit hour
Example Code
Dim timeUnit As TimeUnitEnum
timeUnit = VcGantt1.TimeUnit
TimeUnitsPerStep
Property of VcGantt
This property lets you specify the number of time units covered by minimum
interactive shifting of a node. This property also can be set on the General
property page (Smallest time interval).
Data Type Explanation
Example Code
VcGantt1.TimeUnitsPerStep = 4
ToolTipChangeDuration
Property of VcGantt
By this property you can set the duration that elapses before a subsequent
tool tip window appears when the pointer moves to a different object. Unit:
milliseconds. To reset this delay time to its default value of 98 msec, please
set it to -1.
Data Type Explanation
Example Code
VcGantt1.ToolTipText = "Object"
VcGantt1.ToolTipChangeDuration = 1000
ToolTipDuration
Property of VcGantt
By this property you can set the duration of the tool tip window to remain
visible if the pointer is stationary within the bounding rectangle of an object.
Unit: milliseconds. To reset this delay time to its default value of 5,000 msec,
please set it to -1.
Data Type Explanation
Example Code
VcGantt1.ToolTipText = "Object"
VcGantt1.ToolTipDuration = 1000
ToolTipPointerDuration
Property of VcGantt
By this property you can set the duration during which the pointer must
remain stationary within the bounding rectangle of an object before the tool
tip window appears. Unit: milliseconds. To reset this delay time to its
maximum value of 480 msec, please set it to -1.
Data Type Explanation
Example Code
VcGantt1.ToolTipText = "Object"
VcGantt1.ToolTipPointerDuration = 1000
ToolTipShowAfterClick
Property of VcGantt
By this property you can set whether a tool tip window should disappear
when its object is clicked (default behavior) or whether it should remain for
the times set to it.
Property value Boolean Tool tip window disappears (false) or remains (true)
Default value: False
Example Code
VcGantt1.ToolTipShowAfterClick = True
TrackingSpaceBackColorAsARGB
Property of VcGantt
This property lets you set or retrieve the tracking space background color.
This property also can be set on the Layout property page.
Data Type Explanation
({0...255},{0...255},{0...255})
Default value: (255,255,255)
Example Code
VcGantt1.TrackingSpaceBackgroundColor = System.Drawing.Color.Blue
TrackingSpacePattern
Property of VcGantt
This property lets you set or retrieve the background pattern of the tracking
space.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
TrackingSpacePatternColorAsARGB
Property of VcGantt
This property lets you set or retrieve the pattern color of the tracking space.
Color values have a transparency or alpha value, followed by a value for a
red, a blue and a green partition (ARGB). The values range between 0..255.
An alpha value of 0 equals complete transparency, whereas 255 represents a
completely solid color.
Data Type Explanation
({0...255},{0...255},{0...255},{0...255})
UpdateBehaviorCollection
Read Only Property of VcGantt
This property gives access to the update behavior collection object that
contains all update behaviors available.
Data Type Explanation
Example Code
Dim updBehCltn As VcUpdateBehaviorCollection
Dim updBeh As VcUpdateBehavior
UseHigherDiagramHistogramHeightRatioPrecision
Property of VcGantt
Set this property to "True" to enable the usage of the more accurate method
DiagramHistogramHeightRatioEx or the event OnHistogramHeight-
ModifyEx that return a value of the type "Double" to calculate the height
ratio between diagram and histogram.
If this property is set to the default value "False", the method Diagram-
HistogramHeightRatio or the event OnHistogramHeight are used.
UseHigherTableDiagramWidthRatioPrecision
Property of VcGantt
Set this property to "True" to enable the usage of the more accurate methods
LeftTableDiagramWidthRatioEx and RightTableDiagramWidthRatioEx
If this property is set to the default value "False" then the methods Left-
TableDiagramWidthRatio and RightTableDiagramWidthRatio or the
event OnTableWidth are used.
WaitCursorEnabled
Property of VcGantt
This property lets you set or returns whether a wait cursor appears on time
critical operations (like SheduleProject).
WorldView
Read Only Property of VcGantt
This property gives access to the VcWorldView object that defines the world
view (complete view) of the diagram.
Data Type Explanation
Example Code
Dim worldview As VcWorldView
ZoomFactor
Property of VcGantt
This property lets you set or retrieve the absolute zoom factor in percent
(zoom factor = 100: original size, zoom factor > 100: enlargement, zoom
factor < 100: reduction).
The absolute zoom factor is a rounded value and thus may display some
inaccuracy.
Example Code
VcGantt1.ZoomFactor = 150
ZoomingPerMouseWheelAllowed
Property of VcGantt
This property lets you set or retrieve whether zooming by the mouse wheel
should be allowed to the user. This property also can be set on the General
property page.
Data Type Explanation
Example Code
VcGantt1.ZoomingPerMouseWheelAllowed = True
Methods
AboutBox
Method of VcGantt
This method lets you open the About box. It contains an overview of the
program and the library files currently used with the absolute path and
version numbers. This feature makes the hotline support more comfortable.
Example Code
VcGantt1.AboutBox
Clear
Method of VcGantt
This method lets you delete all API objects created so far and restore the
settings of the property pages carried out at design time.
Data Type Explanation
{True}
Example Code
VcGantt1.Clear
ClearAll
Method of VcGantt
This method lets you delete all objects created so far and restore the settings
of the property pages carried out at design time except for the calendars.
Data Type Explanation
{True}
Example Code
VcGantt1.ClearAll
ConvertDistance
Method of VcGantt
By this method you can convert distances from the unit of 1/100 mm into the
unit of pixels, or vice versa. You can choose between x- and y-direction of
the distance. The conversion takes into account the zoom factor set at a time
(also see property VcGantt.ZoomFactor).
Data Type Explanation
Parameter:
conversionType DistanceConversionTypeEnum Conversion type
Possible Values:
vcXCentiMillimetersToPixels 1 Conversion of a distance in x-direction, from
1/100 millimeters to pixels.
vcXPixelsToCentiMillimeters 3 Conversion of a distance in x-direction, from
pixels to 1/100 millimeters.
vcYCentiMillimetersToPixels 2 Conversion of a distance in y-direction, from
1/100 millimeters to pixels.
vcYPixelsToCentiMillimeters 4 Conversion of a distance in y-direction, from
pixels to 1/100 millimeters.
DeleteLinkRecord
Method of VcGantt
This method lets you delete a link between two nodes. The link record will be
identified by the primary keys set in the Administrate Data Tables dialog.
Data Type Explanation
Parameter:
linkRecordContent Object Content of the link record
Return value Boolean Link record was (True) / was not (False) deleted
successfully.
Example Code
VcGantt1.DeleteLinkRecord ("A100;A105;;")
DeleteNodeRecord
Method of VcGantt
This method lets you delete a node. The node will be identified by the
primary key in the node record. The data field that is used for the
identification of nodes is set in the Administrate Data Tables dialog.
Data Type Explanation
Parameter:
nodeRecordContent Object Content of the node record
Return value Boolean Node record was (True) / was not (False) deleted
successfully.
Example Code
VcGantt1.DeleteNodeRecord "A100;;;;;;"
DetectDataTableFieldName
Method of VcGantt
This method lets you retrieve the name of a data table field by its index.
Data Type Explanation
Parameter:
fieldIndex Long Index of the data table field of which the name is to
be retrieved
Example Code
'Find the name of a DataTableField
Dim fieldName As String
fieldName = VcGantt1.DetectDataTableFieldName(0)
DetectDataTableName
Method of VcGantt
This method lets you retrieve the name of a data table by its index.
Data Type Explanation
Parameter:
fieldIndex Long Index of the data table of which the name is to be
retrieved
Example Code
'Find the name of a DataTable
Dim tableName As String
tableName = VcGantt1.DetectDataTableName(0)
DetectFieldIndex
Method of VcGantt
This method lets you retrieve the index of a data table field by its name and
the name of the data table.
Data Type Explanation
Parameter:
dataTableName String Name of the data table that holds the field of which
the index is to be retrieved
dataTableFieldName String Name of the data table field of which the index is to
be retrieved
Example Code
'Find the index of a DataTableField
Dim fieldIndex As Integer
DumpConfiguration
Method of VcGantt
This method lets you save the configuration that consist of the .INI and the
.IFD file.
Parameter:
FileName String File name (including a path, if necessary)
Possible Values:
vcANSIEncoding 1 If a file was saved in ANSI encoding, it depends on
the local settings of the Windows operating system.
The file then contains characters which can be read
correctly only if the language settings are the same
as the ones that it was stored by.
Return value Boolean File was (True)/was not (False) stored successfully.
EditGroup
Method of VcGantt
This method invokes the Edit Group data dialog box for the group passed.
Data Type Explanation
Parameter:
group VcGroup group whose data are to be edited
EditLink
Method of VcGantt
This method invokes the Edit Link dialog box for the link passed.
Data Type Explanation
Parameter:
link VcLink Link the data of which are to be edited
Example Code
Private Sub VcGantt1_OnLinkLClickCltn(ByVal linkCltn As _
VcGanttLib.VcLinkCollection, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
End Sub
EditNode
Method of VcGantt
This method invokes the Edit Data dialog box for the node passed.
Data Type Explanation
Parameter:
node VcNode Node whose data are to be edited
Example Code
Private Sub VcGantt1_OnNodeLClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As VcGanttLib.LocationEnum, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
VcGantt1.EditNode node
End Sub
EndLoading
Method of VcGantt
This method indicates the finish of the loading procedure on the methods
InsertNodeRecord and InsertLinkRecord, simultaneously triggering an
update of the chart.
Data Type Explanation
Return value Boolean Loading was (True) / was not (False) finished.
Example Code
VcGantt1.EndLoading
ExportGraphicsToFile
Method of VcGantt
This method lets you store a Gantt diagram to a file without generating an
Save as dialog box. You can store the files to the formats:
EMF, EMF+, VMF and WMF are vector formats that allow to store a file
independent of pixel resolution. All other formats are pixel-oriented and
confined to a limited resolution.
The VMF format basically has been deprecated, but it will still be supported
for some time to maintain compatibility with existing applications.
Further details on the different formats please find in the chapter Important
Concepts: Graphics Formats.
PNG: a resolution of 100 dpi and a zoom factor of 100% are assumed. If
alternatively a value of <= -50 is specified in the parameter SizeX, the
absolute number will be used as DPI input. The number of DPIs will be
stored to the PNG file, so with a given zoom factor display software can
find the correct size for display.
GIF, TIFF, BMP, JPEG: a resolution of 100 dpi and a zoom factor of
100% are assumed. If alternatively a value of <= -50 is specified in the
parameter SizeX, the absolute number will be used as DPI input. In
addition, an internal limit of 50 MBs of memory size is required for the
uncompressed source bit map in the memory; so larger diagrams may
have a smaller resolution than expected.
To formats of vector graphics, no pixel number can be set, but the below
coodinate spaces:
For further details on the different formats please read the chapter "Important
Concepts: Graphics Formats".
Data Type Explanation
Parameter:
FileName String File name (including a path, if necessary)
Possible Values:
vcBMP 2 File will be written in the format BMP.
vcEMF 9 File will be written in the format EMF.
vcEMFPlus 12 File will be written in the format EMF+, the
standard extension is EMF.
vcEMFWithEMFPlusIncluded 11 File will be written in the format EMF,
additionally including the format EMF+. The
standard extension is EMF.
vcEPS 3 Deprecated
vcGIF 4 File will be written in the format GIF.
vcJPG 5 File will be written in the format JPG.
vcPCX 6 Deprecated
vcPNG 7 File will be written in the format PNG.
vcTIF 8 File will be written in the format TIF.
vcVMF 0 File will be written in the format VMF.
vcWMF 1 File will be written in the format WMF.
vcWMFWithEMFIncluded 10 File will be written in the format WMF
additionally including the format EMF. The
standard extension is WMF.
Return value Boolean File was (True) / was not (False) stored
successfully.
Example Code
VcGantt1.ExportGraphicsToFile"C:\temp\export", vcVMF, 0, 0
FitChartIntoView
Method of VcGantt
This method allows you to adjust the diagram to the control size while
keeping the width-to-height-ratio so that either the height or the width of the
diagram is completely visible. The method returns the relative enlargement or
reduction in percent * 1000.
Please see also the property ZoomFactor and the method Zoom() of
VcGantt.
Data Type Explanation
Parameter:
fitMode FitModeEnum Selection of zoom factor
Possible Values:
vcFitHeight 23 The diagram is adjusted height-wise to the
window size.
vcFitMaximumOfWidthAnd The largest dimension of the diagram is
Height 1051 adjusted to the window size.
vcFitMinimumOfWidthAnd The smallest dimension of the diagram is
Height 1052 adjusted to the window size.
vcFitWidth 24 The diagram is adjusted width-wise to the
window size.
vcUseLargerZoomFactor 1053 The larger of the zoom factors is used. The
corresponding dimension of the diagram does
not fit into the window.
vcUseSmallerZoomFactor 1054 The smaller of the zoom factors is used and
the corresponding dimension of the diagram
fits completely into the window.
Example Code
Dim myZoomfactor As Integer
VcGantt1.(FitChartIntoView(VcFitMode.vcFitWidth) / 1000)
FitHistogramsIntoView
Method of VcGantt
This method matches the visible histograms of the Gantt object into a view.
For this, the histograms are re-scaled proportionally, so that their size ratio is
maintained.
Data Type Explanation
Return value Boolean The histograms had to (True) / did not have to
(False) be re-scaled.
Example Code
VcGantt1.FitHistogramsIntoView = True
FitRangeIntoView
Method of VcGantt
This method lets you match an arbitrary section of the time scale into a
window to make the section visible.The size of the time units displayed will
change in accordance with the window size and the size of the section
defined. The beginning and the end are set by the startVAlue and endValue
parameter, respectively. The parameter gapAsNoOfTimeUnits lets you set
the number of time units, by which the visible section is to differ from the
date at the beginning of the section displayed and by which the true end of
the time scale is to differ from the end of the section displayed. The time unit
itself you can set on the General property page.
Data Type Explanation
Parameter:
startDate Date/Time Start date of the area to be matched
Example Code
VcGantt1.FitRangeIntoView "14.09.14", "21.09.14", 1
GetAValueFromARGB
Method of VcGantt
Parameter:
argb Long ARGB value, from which the alpha value is to be
identified
Example Code
Dim alpha As Integer
Dim red As Integer
Dim green As Integer
Dim blue As Integer
Dim argb As Long
alpha = alpha + 11
red = red + 11
green = green + 11
blue = blue + 11
argb = VcGantt1.MakeARGB(alpha,red,green,blue)
alpha = VcGantt1.GetAValueFromARGB(argb)
GetBValueFromARGB
Method of VcGantt
Parameter:
argb Long ARGB value, from which the "blue" value is to be
identified
Example Code
Dim alpha As Integer
Dim red As Integer
Dim green As Integer
Dim blue As Integer
Dim argb As Long
alpha = alpha + 11
red = red + 11
green = green + 11
blue = blue + 11
argb = VcGantt1.MakeARGB(alpha,red,green,blue)
blue = VcGantt1.GetBValueFromARGB(argb)
GetCurrentComponentStart
Method of VcGantt
This method lets you retrieve the scroll value in 1/100 mm of a graphical
element of the VARCHART XGantt control (time scale, diagram, histogram,
table, table caption etc.) in any direction.
Data Type Explanation
Parameter:
component ComponentTypeEnum Type of graphical element
Possible Values:
vcAdditionalListComponent 1 additional table
vcBottomListTitleComponent 14 bottom title bar
vcBottomRightListTitleComponent 17 bottom right table
vcBottomTimeScaleComponent 15 bottom time scale
vcDiagramComponent 4 diagram
vcHistogramComponent 8 histogram
vcHistogramVerScaleComponent 7 numeric scale (vertical histogram scale)
vcLegendComponent 10 legend (currently functionless; return
values 00)
vcListComponent 0 table
vcListTitleComponent 2 table title
vcRightListComponent 5 table
vcRightListTitleComponent 16 table title of the right table
vcTimeScaleComponent 3 upper time scale
vcTopTitleComponent 11 upper title bar
GetCurrentViewDates
Method of VcGantt
This method lets you enquire the start and end dates of the visible section of
the time scale.
Note: If you use VBScript, you can only use the analogue method Get-
CurrentViewDatesAsVariant because of the parameters by Reference.
Data Type Explanation
Parameter:
leftDate Date Start date of the visible section of the time scale
rightDate Date End date of the visible section of the time scale
Return value Boolean Start/end dates of the visible section of the time
scale are returned/not returned.
Example Code
Dim bGetCurrentViewDates As Boolean
Dim leftdate As Date
Dim rightdate As Date
GetCurrentViewDatesAsString
Method of VcGantt
This method lets you enquire the start and end dates of the visible section of
the time scale. This method is identical with the method GetCurrentView-
Dates except the parameter format (string).
Parameter:
leftDate String Start date of the visible section of the time scale
rightDate String End date of the visible section of the time scale
Return value Boolean Start/end dates of the visible section of the time
scale are returned/not returned.
Example Code
Dim bGetCurrentViewDates As Boolean
Dim leftdate As String
Dim rightdate As String
GetCurrentViewDatesAsVariant
Method of VcGantt
GetDate
Method of VcGantt
This method lets you retrieve the date that corresponds to a x coordinate in
the diagram section.
Data Type Explanation
Parameter:
x Long X coordinate in the Gantt diagram, the
corresponding date of which is to be retrieved
Example Code
Private Sub VcGantt1_OnDiagramLClick(ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
Label1.Caption = VcGantt1.GetDate(x)
End Sub
GetDateAsString
Method of VcGantt
This method lets you retrieve the date that corresponds to a x coordinate in
the diagram section.
Data Type Explanation
Parameter:
x Long X coordinate in the Gantt diagram, the
corresponding date of which is to be retrieved
Example Code
Private Sub VcGantt1_OnDiagramLClick(ByVal x As Long, ByVal y As Long,
returnStatus As Variant)
MsgBox VcGantt1.GetDateAsString(x)
End Sub
GetGValueFromARGB
Method of VcGantt
Parameter:
argb Long ARGB value, from which the "green" value is to be
identified
Example Code
Dim alpha As Integer
Dim red As Integer
Dim green As Integer
Dim blue As Integer
Dim argb As Long
alpha = alpha + 11
red = red + 11
green = green + 11
blue = blue + 11
argb = VcGantt1.MakeARGB(alpha,red,green,blue)
green = VcGantt1.GetGValueFromARGB(argb)
GetLinkByID
Method of VcGantt
This method gives access to a link by its identification which was specified
on the Administrate Data Tables dialog. If the identification consists of
more than one field (composite primary key), the multipart ID has to be noted
as shown below:
ID=ID1|ID2|ID3
Data Type Explanation
Parameter:
linkID Variant Link identification
Example Code
Dim link1 As VcLink
GetLinkByIDs
Method of VcGantt
This method gives access to a link by the IDs of its predecessor node and its
successor node. If the identification consists of more than one field
(composite primary key), the multipart ID has to be noted as shown below:
ID=ID1|ID2|ID3
Data Type Explanation
Parameter:
predecessorID String Identification of the predecessor node
Example Code
Dim link As VcLink
GetNodeByID
Method of VcGantt
This method gives access to a node by its identification, which was specified
on the Administrate Data Tables dialog. If the identification consists of
several fields (composite primary key), this multipart ID has to be specified
as follows:
ID=ID1|ID2|ID3
Data Type Explanation
Parameter:
nodeID Variant Node identification
Example Code
Dim node As VcNode
GetRValueFromARGB
Method of VcGantt
Parameter:
argb Long ARGB value, from which the "red" value is to be
identified
Example Code
Dim alpha As Integer
Dim red As Integer
Dim green As Integer
Dim blue As Integer
Dim argb As Long
alpha = alpha + 11
red = red + 11
green = green + 11
blue = blue + 11
argb = VcGantt1.MakeARGB(alpha,red,green,blue)
red = VcGantt1.GetRValueFromARGB(argb)
GetViewComponentSize
Method of VcGantt
This method lets you require at run time the size and position of a graphical
element of the VARCHART ActiveX control (time scale, diagram,
histogram, table, table caption etc.) (see event OnViewComponentsSize-
ModifyComplete).
Note:
3. If you use VBScript, due to the by-reference parameters you can only use
the analogous method GetViewComponentSizeAsVariant.
Parameter:
viewComponent ComponentTypeEnum Component type
Possible Values:
vcAdditionalListComponent 1 additional table
vcBottomListTitleComponent 14 bottom title bar
vcBottomRightListTitleComponent 17 bottom right table
vcBottomTimeScaleComponent 15 bottom time scale
vcDiagramComponent 4 diagram
vcHistogramComponent 8 histogram
vcHistogramVerScaleComponent 7 numeric scale (vertical histogram scale)
vcLegendComponent 10 legend (currently functionless; return
values 00)
vcListComponent 0 table
vcListTitleComponent 2 table title
vcRightListComponent 5 table
vcRightListTitleComponent 16 table title of the right table
vcTimeScaleComponent 3 upper time scale
vcTopTitleComponent 11 upper title bar
Example Code
Private Sub handleHideHistogram()
Dim x As Long
Dim y As Long
Dim width As Long
Dim height As Long
Dim scMod As Long
scMod = ScaleMode
ScaleMode = vbPixels
VcGantt1.GetViewComponentSize vcHistogramVerScaleComponent, x, y, _
width, height
GetViewComponentSizeAsVariant
Method of VcGantt
GroupNodes
Method of VcGantt
This methods lets you activate/deactivate the grouping. If you have set a
grouping field by the GroupingField property or if you have set the grouping
order by the GroupingOrderField property, you need to activate the
grouping by GroupNodes.
Data Type Explanation
Parameter:
onOff Boolean Grouping on/off
Return value Boolean Nodes were (True) / were not (False) grouped
successfully.
Example Code
VcGantt1.GroupingField = 11
VcGantt1.GroupingOrderField = 12
VcGantt1.GroupNodes (True)
HistogramSetMaxYValue
Method of VcGantt
This method lets you specify the maximum value of the numeric scale of the
(first) histogram. This value also can be set in the Administrate Histograms
dialog (End value).
Data Type Explanation
Parameter:
yValue Long Maximum y value
Example Code
VcGantt1.HistogramSetMaxYValue (40)
IdentifyField
Method of VcGantt
This method lets you identify the table field at a given cursor position.
Data Type Explanation
Parameter:
x Long X coordinate of the cursor
Example Code
Private Sub VcGantt1_OnNodeRClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As VcGanttLib.LocationEnum, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
Dim field As VcField
Dim objtype As Long
IdentifyLayerAt
Method of VcGantt
This method lets you identify a layer. When a node was identified by the
method IdentifyObjectAt, you can use it as a reference object for identifying
its layer at the same position by a call of IdentifyLayerAt.
Note: If you are coding in VBScript, you will have to use the analogous
method IdentifyLayerAtAsVariant because of the by-reference parameters.
Data Type Explanation
Parameter:
x Long X coordinate of the cursor
Example Code
Private Sub VcGantt1_DragDrop(Source As Control, X As Single, Y As Single)
xPix = X / Screen.TwipsPerPixelX
yPix = Y / Screen.TwipsPerPixelY
Case vcObjTypeNodeInTable
MsgBox ("The Node """ + identifiedObj.DataField(0) + _
""" was identified via the table.")
Case Else
MsgBox ("No node was identified.")
End Select
End Sub
IdentifyLayerAtAsVariant
Method of VcGantt
IdentifyObject
Method of VcGantt
This method lets you identify an object that is located in the table or diagram
section. The object type will be returned. When a node was identified by this
method, you can use it as a reference object for identifying its layer at the
same position by a second call of IdentifyObject.
Parameter:
x Long X coordinate of the cursor
Possible Values:
vcObjTypeBox 15 object type box
vcObjTypeCalendarGrid 18 object type calendar grid
vcObjTypeCurve 12 object type curve
vcObjTypeDateLine 9 object type date line
vcObjTypeGroup 7 object type group
vcObjTypeGroupInDiagram 11 object type group in diagram area
vcObjTypeGroupInTable 7 object type group in table area
vcObjTypeHistogram 13 object type histogram
vcObjTypeLayer 8 object type layer
vcObjTypeLinkCollection 3 object type link collection
vcObjTypeNodeInDiagram 2 object type node in diagram area
vcObjTypeNodeInLegend 17 object type node in legend area
vcObjTypeNodeInTable 1 object type node in table area
vcObjTypeNone 0 no object
vcObjTypeNumericScale 10 object type numeric scale
vcObjTypeSummaryNode 14 object type summary bar
vcObjTypeTable 4 object type table
vcObjTypeTableCaption 5 object type table caption
vcObjTypeTimeScale 6 object type time scale
Example Code
Private Sub VcGantt1 _DragDrop(Source As Control, X As Single, Y As Single)
Dim label As Label
Dim identifiedObj As Object
Dim referenceObj As Object
Dim identifiedObjType As Long
Dim xPix, yPix As Long
Dim colorValue As String
xPix = X / Screen.TwipsPerPixelX
yPix = Y / Screen.TwipsPerPixelY
identifiedLayer, identifiedSubObjType)
If identifiedSubObjType = VcGanttLib.VcObjectTypeEnum. _
vcObjTypeLayer Then
Dim node As VcNode
Dim layer As VcLayer
Set node = identifiedObj
IdentifyObjectAt
Method of VcGantt
This method lets you identify any object in VARCHART XGantt. The object
type will be returned. When a node was identified by this method, you can
use it as a reference object for identifying its layer at the same position by a
call of IdentifyLayerAt. If you want to identify a curve in a histogram you
have to use the method IdentifyObject.
Note: If you use VBScript, you can only use the analogous method
IdentifyObjectAtAsVariant because of the parameters by Reference.
Parameter:
x Long X coordinate of the cursor
Possible Values:
vcObjTypeBox 15 object type box
vcObjTypeCalendarGrid 18 object type calendar grid
vcObjTypeCurve 12 object type curve
vcObjTypeDateLine 9 object type date line
vcObjTypeGroup 7 object type group
vcObjTypeGroupInDiagram 11 object type group in diagram area
vcObjTypeGroupInTable 7 object type group in table area
vcObjTypeHistogram 13 object type histogram
vcObjTypeLayer 8 object type layer
vcObjTypeLinkCollection 3 object type link collection
vcObjTypeNodeInDiagram 2 object type node in diagram area
vcObjTypeNodeInLegend 17 object type node in legend area
vcObjTypeNodeInTable 1 object type node in table area
vcObjTypeNone 0 no object
vcObjTypeNumericScale 10 object type numeric scale
vcObjTypeSummaryNode 14 object type summary bar
vcObjTypeTable 4 object type table
vcObjTypeTableCaption 5 object type table caption
vcObjTypeTimeScale 6 object type time scale
Example Code
Private Sub VcGantt1_OnMouseMove(ByVal button As Integer, ByVal Shift As
Integer, ByVal x As Long, ByVal y As Long)
End Sub
IdentifyObjectAtAsVariant
Method of VcGantt
InsertLinkRecord
Method of VcGantt
This method lets you load the data of a link that connects two nodes. The data
will be passed as a CSV string or as a data field in accordance with the
structure defined in the Administrate Data Tables dialog in the Relations
table. The method EndLoading should be invoked when the process of
loading (links and nodes) is completed.
Data Type Explanation
Parameter:
linkRecordContent Object Content of the link record
Example Code
VcGantt1.InsertNodeRecord ("A100;Activity 1;12.09.14;17.09.14;5;Planning")
VcGantt1.InsertNodeRecord ("A105;Activity 5;13.09.14;18.09.14;7;Testing")
VcGantt1.InsertLinkRecord ("A100;A105;FS;0")
VcGantt1.EndLoading
' or:
linkRecord = Array("A100","A105","FS",0)
VcGantt1.InsertLinkRecord (linkRecord)
VcGantt1.EndLoading
InsertNodeRecord
Method of VcGantt
The data will be passed as a CSV string or as a data field in accordance with
the structure defined in the Administrate Data Tables dialog in the
Maindata table. The method EndLoading should be invoked when the
process of loading (links and nodes) is completed.
Data Type Explanation
Parameter:
nodeRecordContent Data field Content of the node record
Example Code
Dim nodeRecord As String
' data format: "Number;Name;Start date;Finish date;Group code;Group name"
nodeRecord = "A100;Activity 1;12.09.14;17.09.14;5;Planning"
VcGantt1.InsertNodeRecord (nodeRecord)
VcGantt1.EndLoading
' or
VcGantt1.InsertNodeRecord (nodeRecord)
VcGantt1.EndLoading
MakeARGB
Method of VcGantt
This method lets you compose an ARGB value from the four single values of
a color.
Data Type Explanation
Parameter:
alpha Integer Alpha value
Example Code
Dim alpha As Integer
Dim red As Integer
Dim green As Integer
Dim blue As Integer
Dim argb As Long
alpha = FF
red = A0
green = 34
blue = AB
argb = VcGantt1.MakeARGB(alpha,red,green,blue)
Open
Method of VcGantt
This method lets you load the records of the data tables of the selected file
which had been saved earlier with the method SaveAsEx(...) in CSV format.
CSV-Files may be retrieved and written in ANSI as well as in Unicode
coding which is automatically recognized when read. The records are
allocated to the corresponding data tables by using an appropriate
identification line.
Example:
**** Maindata ****
1;Node 1;07.05.2007;;5
2;Node 2;14.05.2007;;5
3;Node 3;21.05.2007;;5
**** Relations ****
1;1;2
2;2;3
Records of non existing tables are ignored when read. The contents of the
data tables is replaced completely.
Data Type Explanation
Parameter:
fileName String Name of the file to be opened
Return value Boolean File was (True) / was not (False) opened
successfully.
Example Code
VcGantt1.Open "C:\Data\project1.csv"
OptimizeTimeScaleStartEnd
Method of VcGantt
This method lets you define the start and the end date of the time scale so that
all nodes are completely visible. The start and end date are set in dependency
on the displayed nodes. The parameter NoOfUnits lets you specify by how
many time units the scale is to start on the left before the earliest start and by
how many time units it is to end on the right after latest finish of all activities.
This property also can be set on the General property page.
Data Type Explanation
Parameter:
noOfUnits Integer Number of time units
Return value Boolean Timescale was (True) / was not (False) optimized
successfully.
Example Code
VcGantt1.OptimizeTimeScaleStartEnd (5)
PageLayout
Method of VcGantt
Return value Boolean Dialog box was (True) / was not (False) opened
successfully.
Example Code
VcGantt1.PageLayout
PrintDirectEx
Method of VcGantt
This method lets you print the diagram directly. A dialog box will not be
displayed. If the printing was not successful the return value indicates the
reason. This could be e.g. an entry in a log file.
Example Code
PrintStatusResultEnum status = VcGantt1.PrintDirectEx()
If status <> vcPrintingSucceeded Then
Debug.Print "Printing failed: " & status & vbCrLf
End If
PrinterSetup
Method of VcGantt
This method lets you invoke the Windows Print Setup dialog box.
Data Type Explanation
Return value Boolean Dialog box was (True) / was not (False) opened
successfully.
Example Code
VcGantt1.PrinterSetup
PrintIt
Method of VcGantt
This method triggers the printing of the diagram. The Windows Print dialog
will open, using the parameters defined in the PageLayout.
Data Type Explanation
Return value Boolean Chart was (True) / was not (False) printed
successfully.
Example Code
VcGantt1.PrintIt
PrintPreview
Method of VcGantt
Return value Boolean Dialog box was (True) / was not (False) opened
successfully.
Example Code
VcGantt1.PrintPreview
PrintToFile
Method of VcGantt
This method lets you print the diagram directly to a file. Whether the printing
is successful, depends on the printer driver since many PDF printer drivers do
not accept file names.
Data Type Explanation
Parameter:
fileName String File name
Example Code
VcGantt1.PrintToFile
RecalculateAllStructureCodes
Method of VcGantt
By this method you can recalculate the structure code of the node hierarchy.
The code is recalculated automatically after any modification. To avoid the
recalculation for a set of actions, you can put them between the methods
VcGantt.SuspendUpdate(true) and VcGantt.SuspendUpdate(false).
Data Type Explanation
Reset
Method of VcGantt
This methods lets you either delete objects (nodes, links, calendars etc.) from
the diagram, the extent depending on the selected value of resetAction, or
restore the settings of the property pages carried out at design time
Data Type Explanation
Parameter:
resetAction ResetActionEnum Objects to be initialized or deleted
Possible Values:
vcEmptyAllDataTables 4 The contents of all data tables are deleted but the
data tables are kept.
vcReloadConfiguration 2 Complete reinitialization. All settings and created
objects are discarded.
vcRemoveGroups 0 All groups and dependent objects, and thus all
nodes and links are deleted.
vcRemoveNodes 1 All nodes and dependent objects and thus also
existing links are deleted.
(True)
Example Code
VcGantt1.Reset(vcRemoveNodes) = True
SaveAsEx
Method of VcGantt
This method lets you save the records of all data tables to a file of CSV
format, using the structure defined on the property page Data Tables invoked
by the property page Objects. Data tables that do not contain records will not
be saved. If no file name was specified, the file most recently used by the
Open method will be overwritten (correponding to the common Save
function).
Data Type Explanation
Parameter:
fileName String Name of the file to be saved
Possible Values:
vcANSIEncoding 1 If a file was saved in ANSI encoding, it depends on
the local settings of the Windows operating system.
The file then contains characters which can be read
correctly only if the language settings are the same
as the ones that it was stored by.
vcUnicodeEncoding 2 Saving a file in Unicode encoding makes it
independent of whatever settings and hence should
be the preferred mode if possible. If a file that was
saved in Unicode encoding is to be loaded in Visual
Basic 6 independently of the VARCHART
component, it has to be treated in a special way.
Return value Boolean File was (True)/was not (False) stored successfully.
Example Code
VcGantt1.SaveAsEx "C:\Data\project1.csv" , vcANSIEncoding
Schedule
Method of VcGantt
Parameter:
startDate Date/Time Start date
Return value Boolean Forward scheduling was (True) / was not (False)
successful
Example Code
VcGantt1.ScheduleProject("21.06.14", "")
ScrollComponentStartTo
Method of VcGantt
This method lets you scroll a graphical element of the VARCHART XGantt
control (time scale, diagram, histogram, table, table caption etc.) in any
direction to the indicated scroll value (the start coordinate) in 1/100 mm.
Data Type Explanation
Parameter:
component ComponentTypeEnum Type of graphical element
Possible Values:
vcAdditionalListComponent 1 additional table
vcBottomListTitleComponent 14 bottom title bar
vcBottomRightListTitleComponent 17 bottom right table
vcBottomTimeScaleComponent 15 bottom time scale
vcDiagramComponent 4 diagram
vcHistogramComponent 8 histogram
vcHistogramVerScaleComponent 7 numeric scale (vertical histogram scale)
vcLegendComponent 10 legend (currently functionless; return
values 00)
vcListComponent 0 table
vcListTitleComponent 2 table title
vcRightListComponent 5 table
vcRightListTitleComponent 16 table title of the right table
vcTimeScaleComponent 3 upper time scale
vcTopTitleComponent 11 upper title bar
ScrollToDate
Method of VcGantt
This method allows you to scroll to a particular date in the time scale. The
gapAsNoOfTimeUnits parameter sets the number of time units that the gap
between the specified date and the left or right edge of the time scale consists
of (vcLeftAligned or vcRightAligned). By the parameter horAlignment
you can specify if the date is to occur on the left or on the right side of the
visible section of the time scale.
N.B: In case workfree times were collapsed, the collapsed times will be
included in time calculations correctly, but they will not be displayed, which
may lead to a seeming deviation from the values set.
Data Type Explanation
Parameter:
date Date/Time Date
Possible Values:
vcHorCenterAligned -1 horizontally centered
vcLeftAligned -3 left aligned
vcRightAligned -2 right aligned
Return value Boolean Scrolling was (True) / was not (False) performed
successfully.
Example Code
Call VcGantt1.ScrollToDate("20.10.14", vcLeftAligned, 2)
ScrollToGroupLine
Method of VcGantt
This method allows to scroll to the row containing a particular group and to
specify whether that group should be displayed at the top, in the center or at
the bottom of the screen.
Data Type Explanation
Parameter:
group VcGroup Group to be scrolled to
Possible Values:
vcBottomAligned 2 bottom aligned
vcTopAligned 1 top aligned
vcVerCenterAligned -1 vertically centered
Return value Boolean Scrolling was (True) / was not (False) performed
successfully.
ScrollToNode
Method of VcGantt
This method allows to scroll to a particular node and to specify whether that
node should be displayed at the top, in the center or at the bottom of the
screen.
Data Type Explanation
Parameter:
node VcNode Node
Possible Values:
vcBottomAligned 2 bottom aligned
vcTopAligned 1 top aligned
vcVerCenterAligned -1 vertically centered
Return value Boolean Scrolling was (True) / was not (False) performed
successfully.
Example Code
Dim node As VcNode
ScrollToNodeLine
Method of VcGantt
This method allows to scroll to the row containing a particular node and to
specify whether that node should be displayed at the top, in the center or at
the bottom of the screen.
Note: If you choose the option In one line, all activities in a group will be
displayed in one line. If the activities in the group coincide, they will be
automatically displayed underneath one another in expanded mode to prevent
overlapping. In this case using the ScrollToNodeLine method scrolls to the
appropriate group row containing the selected node. Then it may happen that
the selected node is not displayed in the center of the screen and is not
visible.
Data Type Explanation
Parameter:
node VcNode Node
Possible Values:
vcBottomAligned 2 bottom aligned
vcTopAligned 1 top aligned
vcVerCenterAligned -1 vertically centered
Return value Boolean Scrolling was (True) / was not (False) performed
successfully.
Example Code
Imports NETRONIC.XGantt
...
Dim i As Integer
Dim objDataRecord(2) As Object
Dim dataRecordCol As VcDataRecordCollection
VcGantt1.ExtendedDataTablesEnabled = True
dataRecordCol =
VcGantt1.DataTableCollection.DataTableByName("Maindata").DataRecordCollection
For i = 1 To 100
objDataRecord(0) = i
objDataRecord(1) = "Node " + i.ToString()
dataRecordCol.Add(objDataRecord)
Next
VcGantt1.EndLoading()
VcGantt1.ScrollToNodeLine(VcGantt1.GetNodeByID("50"),
VcVerticalAlignment.vcTopAligned)
ShowExportGraphicsDialog
Method of VcGantt
This method lets you invoke the Save As dialog for saving the diagram.
Possible formats for saving:
EMF, EMF+, VMF and WMF are vector formats that allow to store a file
independent of pixel resolution. All other formats are pixel-oriented and
confined to a limited resolution.
The VMF format basically has been deprecated, but will be supported for
some time to maintain compatibility with existing applications.
Further details on the different formats please find in the chapter Important
Concepts: Graphics Formats.
When exporting, the size of the exported diagram will be calculated this way:
PNG: a resolution of 100 dpi and a zoom factor of 100% are assumed. If
alternatively a value of <= -50 is specified in the parameter SizeX, the
absolute number will be used as DPI input.
GIF, TIFF, BMP, JPEG: a resolution of 100 dpi and a zoom factor of
100% are assumed. If alternatively a value of <= -50 is specified in the
parameter SizeX, the absolute number will be used as DPI input. In
addition, an internal limit of 50 MBs of memory size is required for the
uncompressed source bit map in the memory; so larger diagrams may
have a smaller resolution than expected.
Return value Boolean Chart was successfully (True) / was not successfully
(False) exported
Example Code
VcGantt1.ShowExportGraphicsDialog
SortGroups
Method of VcGantt
This method lets you start the sorting of groups in a grouped diagram in
accordance with the defined sorting parameter GroupingOrderField
(GroupingLevel).
Data Type Explanation
Example Code
VcGantt1.GroupingOrderField(0) = 12
VcGantt1.SortGroups
SortNodes
Method of VcGantt
This method lets you start the sorting of the activities in accordance with the
defined sorting parameters (SortField (sortLevel) and SortOrder
(sortLevel)). If a grouping is activated, the sorting will be done separately for
each group.
Data Type Explanation
Example Code
VcGantt1.SortField (0) = 3
VcGantt1.SortOrder (0) = vcAscending
VcGantt1.SortNodes
SuspendUpdate
Method of VcGantt
For projects comprising many nodes, updating procedures may be very time
consuming if actions are repeated for each node. You can accelerate the
updating procedure by using the SuspendUpdate method. Bracket the code
that describes the repeated action between SuspendUpdate (True) and
SuspendUpdate (False) as in the below code example. This will get the
nodes to be updated all at once and improve the performance.
Parameter:
suspendFlag Boolean SuspendUpdate(True): Start of the SuspendUpdate
method/ SuspendUpdate(False): end of the
SuspendUpdate method
Example Code
VcGantt1.SuspendUpdate (True)
If updateFlag Then
For Each node In nodeCltn
If node.DataField(2) < "07.09.14" Then
node.DataField(13) = "X"
node.UpdateNode
counter = counter + 1
End If
Next node
Else
For Each node In nodeCltn
If node.DataField(2) < "07.09.14" Then
node.DataField(13) = ""
node.UpdateNode
counter = counter + 1
End If
Next node
End If
VcGantt1.SuspendUpdate (False)
UpdateLinkRecord
Method of VcGantt
This method lets you modify the data of an existing link record. The link
record will be identified by the primary key set in the Administrate Data
Tables dialog. This method is used when external modifications of link data
have to be carried out by the diagram. If the link updated does not exist, it
will be generated.
Data Type Explanation
Parameter:
linkRecordContent Object Content of the link record
Example Code
VcGantt1.UpdateLinkRecord ("A100;A105;FS;0")
UpdateNodeRecord
Method of VcGantt
This method lets you modify the data of an existing node record. The node
record will be identified by the primary key defined in the Administrate
Data Tables dialog. This method is used when external modifications of the
data have to be carried out by the diagram.
Data Type Explanation
Parameter:
nodeRecordContent Object Content of the node record
Return value VcNode Node record was (True) / was not (False) updated
successfully.
Example Code
VcGantt1.UpdateNodeRecord ("A100;Activity 1;12.09.14;18.09.14;6;Planning")
UpdateRowNumberFields
Method of VcGantt
This method updates the field that stores the row number of the node. This
field you can select on the Nodes property page from the Row number field
combo box. Using this method is useful only if neither a hierarchical
arrangement nor grouping are applied.
Data Type Explanation
Example Code
VcGantt1.UpdateRowNumberFields
VcGantt1.SaveAs ("C:\tmp\data.bar")
Zoom
Method of VcGantt
This method lets you enlarge/reduce the diagram on the display by the
specified percentage factor (enlarging the diagram: zoom factor > 100,
reducing the diagram: zoom factor < 100).
Please see also the VcGantt method FitChartIntoView() and the property
ZoomFactor.
Parameter:
zoomFactor Integer Relative zoom factor
Return value Boolean Zooming was (True) / was not (False) performed
successfully.
Example Code
VcGantt1.Zoom 120
Events
Error
Event of VcGantt
Parameter:
Description String Error description
Example Code
Private Sub VcGantt1_Error(Number As Integer, Description As String, _
Scode As Long, Source As String, HelpFile As String, HelpContext _
As Long, CancelDisplay As Boolean)
End Sub
ErrorAsVariant
Event of VcGantt
This method is identical with the method Error except for the parameters. It
was necessary to implement this event because some languages (e.g.
VBScript) can use parameters by Reference (indicated by ) only if the type
of these parameters is VARIANT.
KeyDown
Event of VcGantt
This event occurs when the user presses a key while VARCHART XGantt
has the focus. Key events allow to trigger VARCHART ActiveX functions
by the keyboard. (For the interpretation of ANSI symbols please use the
KeyPress event.)
Data Type Explanation
Parameter:
KeyCode Integer Key code, e.g. vbKeyF1 (F1 key) or vbKeyHome
(POS1 key)
Shift Integer Number that indicates which one of the Shift, Ctrl,
and Alt keys was pressed. 1 corresponds to the
Shift key, 2 to the Ctrl key and 4 to the Alt key.
Some, all, or none of the numbers may have been
set, indicating that some, all, or none of the keys are
depressed, respectively. When more than one key is
in depressed state, their values add up. For
example, if both the Ctrl and Alt keys are depressed,
the value of shift would be "6".
Example Code
Private Sub VcGantt1_KeyDown(KeyCode As Integer, Shift As Integer)
MsgBox "key pressed"
End Sub
KeyPress
Event of VcGantt
This event occurs when the user presses and releases an ANSI key while
VARCHART XGantt has the focus. Key events allow to trigger
VARCHART ActiveX functions by the keyboard.
Parameter:
KeyAscii Integer An integer that returns the numerical key code of an
default ANSI key. KeyAscii is returned as reference.
If the parameter will be changed, another symbol will
be returned to the object. If KeyAscii is set to 0,
pressing a key will have no effect, i.e. no symbol will
be passed to the object.
Example Code
Private Sub VcGantt1_KeyPress(KeyAscii As Integer)
MsgBox "Key pressed and released."
End Sub
KeyUp
Event of VcGantt
This event occurs when the user releases a key while VARCHART XGantt
has the focus. Key events allow to trigger VARCHART ActiveX functions
by using the keyboard. (To interprete ANSI symbols please use the KeyPress
event.)
Data Type Explanation
Parameter:
KeyCode Integer Key code, e.g. vbKeyF1 (F1 key) or vbKeyHome
(POS1 key)
Shift Integer Number that indicates which one of the Shift, Ctrl,
and Alt keys was pressed. 1 corresponds to the
Shift key, 2 to the Ctrl key and 4 to the Alt key.
Some, all, or none of the numbers may have been
set, indicating that some, all, or none of the keys are
depressed, respectively. When more than one key is
in depressed state, their values add up. For
example, if both the Ctrl and Alt keys are depressed,
the value of shift would be "6".
Example Code
Private Sub VcGantt1_KeyUp(KeyCode As Integer, Shift As Integer)
MsgBox "key released"
End Sub
OLECompleteDrag
Event of VcGantt
Parameter:
effect Long Operation performed in the target component
Possible Values:
vcDropEffectCopy 1 Drop results in a copy of data from the source to the
target. The original data is unaltered by the drag
operation.
vcDropEffectMove 2 Drop results in data being moved from the source to
the target. The source should remove the data from
itself after the move.
vcDropEffectNone 0 Target cannot accept the data.
Example Code
Private Sub VcGantt1_OLECompleteDrag(ByVal effect As Long)
MsgBox effect
End Sub
OLEDragDrop
Event of VcGantt
Occurs when during OLE Drag & Dropping a source component is dropped
onto a target component and if the OLEDropMode property of the target
component is set to vcOLEDropManualand source and target component
are not identical. If they are identical you will receive either the event
OnNodeModifyEx or OnNodeCreate.
Data Type Explanation
Parameter:
data DataObject Object data passed
Possible Values:
vcDropEffectCopy 1 Drop results in a copy of data from the source to the
target. The original data is unaltered by the drag
operation.
vcDropEffectMove 2 Drop results in data being moved from the source to
the target. The source should remove the data from
itself after the move.
vcDropEffectNone 0 Target cannot accept the data.
shift Integer Number that indicates which one of the Shift, Ctrl,
and Alt keys was pressed. 1 corresponds to the
Shift key, 2 to the Ctrl key and 4 to the Alt key.
Some, all, or none of the numbers may have been
set, indicating that some, all, or none of the keys are
depressed, respectively. When more than one key is
in depressed state, their values add up. For
example, if both the Ctrl and Alt keys are depressed,
the value of shift would be "6".
x Long X coordinate of the mouse cursor
y Long Y coordinate of the mouse cursor
OLEDragOver
Event of VcGantt
This event occurs when data are dragged over a target and the
OLEDropMode property of the drop target was set to vcOLEDropManual.
Data Type Explanation
Parameter:
data DataObject Object data passed
Possible Values:
vcDropEffectCopy 1 Drop results in a copy of data from the source to the
target. The original data is unaltered by the drag
operation.
vcDropEffectMove 2 Drop results in data being moved from the source to
the target. The source should remove the data from
itself after the move.
vcDropEffectNone 0 Target cannot accept the data.
OLEGiveFeedback
Event of VcGantt
This event occurs after every OLEDragOver event on the target component.
OLEGiveFeedback allows the source component to provide visual feedback
to the user, such as changing the mouse cursor to indicate what will happen if
the user drops the object, or provide visual feedback on the selection (in the
source component) to indicate what will happen.
Data Type Explanation
Parameter:
effect Long Set by the target component in the OLEDragOver
event specifying the action to be performed if the
user drops the selection on it. This allows the source
to take the appropriate action (such as giving visual
feedback).
Possible Values:
vcDropEffectCopy 1 Drop results in a copy of data from the source to the
target. The original data is unaltered by the drag
operation.
vcDropEffectMove 2 Drop results in data being moved from the source to
the target. The source should remove the data from
itself after the move.
vcDropEffectNone 0 Target cannot accept the data.
OLESetData
Event of VcGantt
Parameter:
data DataObject Object data passed
dataFormat Integer Specifies the format of the data that the target
component is requesting. The source component
uses this value to determine what to fill the
DataObject object.
OLEStartDrag
Event of VcGantt
This event occurs at the source when the VARCHART XGantt control
initiates an OLE Drag & Drop operation when the OLEDragMode property
is set to vcOLEAutomatic.
This event specifies the data formats and drop effects that the source
component supports. It can also be used to insert data into the DataObject
object.
The source component should use the logical Or operator against the
supported values and place the result in the allowedEffect parameter. The
target component can use this value to determine the appropriate action (and
what the appropriate user feedback should be).
You should defer putting data into the DataObject until the target
component requests it. This allows the source component to save time by not
loading multiple data formats. When the target performs the GetData method
on the DataObject, the source’s OLESetData event will occur if the
requested data are not contained in the DataObject. At this point, the data
can be loaded into the DataObject, which will in turn provide the data to the
target.
If the user does not load any formats into the DataObject, then the
drag&drop operation is canceled.
Data Type Explanation
Parameter:
data DataObject Object data passed
Possible Values:
vcDropEffectCopy 1 Drop results in a copy of data from the source to the
target. The original data is unaltered by the drag
operation.
OnBoxCreate
Event of VcGantt
The data passed by this event can be read, but must not be modified. For
modifying them please use the event OnBoxCreateComplete.
Parameter:
XOffset Long X position of the box
Possible Values:
vcRetStatFalse 0 The box will be created.
vcRetStatOK 1 The box will not be created.
Example Code
Private Sub VcGantt1_OnBoxCreate(ByVal XOffset As Long, ByVal YOffset As Long,
ByVal Width As Long, ByVal Height As Long, returnStatus As Variant)
MsgBox "XOffset " & XOffset & " - " & "YOffset " & YOffset
End Sub
OnBoxCreateComplete
Event of VcGantt
This event occurs when the interactive creation of a box is completed. The
box object is returned.
Data Type Explanation
Parameter:
box VcBox Box created
Example Code
Private Sub VcGantt1_OnBoxCreateComplete(ByVal box As VcGanttLib.VcBox)
box.LineColor = RGB(255, 0, 0)
End Sub
OnBoxLClick
Event of VcGantt
This event occurs when the user clicks the left mouse button on a box. The
box object hit and the position of the mouse (x,y-coordinates) are handed
over as parameters.
Data Type Explanation
Parameter:
box VcBox Box hit
Example Code
Private Sub VcGantt1_OnBoxLClick(ByVal box As VcGanttLib.VcBox, _
ByVal x As Long, ByVal y As Long, returnStatus As Variant)
Text1.Text = box.FieldText(1)
End Sub
OnBoxLDblClick
Event of VcGantt
This event occurs when the user double-clicks the left mouse button on a box.
The VcBox object hit and the mouse position (x,y-coordinates) are returned.
Data Type Explanation
Parameter:
box VcBox Box hit
Example Code
Private Sub VcGantt1_OnBoxLDblClick(ByVal box As VcGanttLib.VcBox, _
OnBoxModify
Event of VcGantt
This event occurs when the user has modified a box interactively. The
modified VcBox object and the modification type are passed as parameters.
The data passed by this event can be read, but must not be modified. For
modifying them please use OnBoxModifyComplete.
Parameter:
box VcBox Box modified
Possible Values:
vcBMTAnchoringModified 16 Anchoring of the box modified
vcBMTAnything 1 any modification
vcBMTNothing 0 no modification
vcBMTSizeModified 8 Size of the box modified
vcBMTTextModified 4 text modified
vcBMTXYOffsetModified 2 Offset modified
Example Code
Private Sub VcGantt1_OnBoxModify(ByVal box As VcGanttLib.VcBox, _
ByVal modificationType As _
VcGanttLib.BoxModificationTypeEnum, _
returnStatus As Variant)
End Sub
OnBoxModifyCompleteEx
Event of VcGantt
This event occurs when the modification of the box is finished. The modified
VcBox object and the modification type are passed as parameters.
Data Type Explanation
Parameter:
modificationType BoxModificationTypeEnum Modification type
Possible Values:
vcBMTAnchoringModified 16 Anchoring of the box modified
vcBMTAnything 1 any modification
vcBMTNothing 0 no modification
vcBMTSizeModified 8 Size of the box modified
vcBMTTextModified 4 text modified
vcBMTXYOffsetModified 2 Offset modified
Example Code
Private Sub VcGantt1_OnBoxModifyCompleteEx(ByVal box As _
VcGanttLib.VcBox)
End Sub
OnBoxRClick
Event of VcGantt
This event occurs when the user clicks the right mouse button on a box. The
box object and the position of the mouse (x,y-coordinates) are returned. By
setting the return status you can inhibit the integrated context menu to pop up
and replace it by a context menu of your own at the coordinates delivered.
Data Type Explanation
Parameter:
box VcBox Box hit
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnBoxRClick(ByVal box As VcGanttLib.VcBox, _
' Start own popup menu at the current mouse cursor position
PopupMenu mnuBoxPopup
End Sub
OnCalendarGridRClick
Event of VcGantt
This event occurs when the user clicks the right mouse button on a calendar
grid. Thecalendar grid object and the mouse position (x,y-coordinates) are
returned. By setting the return status you can inhibit the integrated context
menu to pop up and replace it by a context menu of your own at the
coordinates delivered.
This event will only be triggered if the calendar grid could be identified, i.e.
if the calendar grid property Identifiable had been set to True.
Data Type Explanation
Parameter:
dateLine VcDateLine Calendar grid
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnCalendarGridRClick(ByVal group As
VcGanttLib.VcCalendarGrid, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
' Start own popup menu at the current mouse cursor position
PopupMenu mnuCalendarGridPopup
End Sub
OnCurveLClick
Event of VcGantt
This event occurs when the user clicks the left mouse button on a histogram
curve, and before a curve is marked. By setting the VcReturnStatus to
vcRetStatFalse marking of the curve can be prohibited. In spite of this, the
curve values can be modified. At the moment, there is no option to suppress
the option of modifying. The curve object hit and the position of the mouse
(x,y-coordinates) are returned.
Data Type Explanation
Parameter:
curve VcCurve Curve hit in histogram
Possible Values:
vcRetStatFalse 0 The curve will not be marked.
vcRetStatOK 1 The curve will be marked.
Example Code
Private Sub VcGantt1_OnCurveLClick(ByVal curve As _
VcGanttLib.VcCurve, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
curve.LineColor = vbRed
End Sub
OnCurveLDblClick
Event of VcGantt
This event occurs when the user double-clicks the left mouse button on a
histogram curve. The VcCurve object hit and the mouse position (x,y-
coordinates) are returned.
Data Type Explanation
Parameter:
curve VcCurve Curve hit in histogram
Example Code
Private Sub VcGantt1_OnCurveLDblClick(ByVal curve As _
VcGanttLib.VcCurve, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
Call MsgBox("x: " & x & vbCrLf & "y: " & y)
End Sub
OnCurveModifyComplete
Event of VcGantt
Parameter:
curve VcCurve Curve modified
OnCurveModifyEx
Event of VcGantt
This event occurs when the user has modified a histogram curve
interactively. This is valid for histogram curves generated by API commands
and for histogram curves generated by layers. The modified curve object, the
beginning and the end of the section changed, as well as the value that the
curve was changed by in y direction are returned. The curve type can be
retrieved by the VcCurve property CurveSource.
Parameter:
curve VcCurve Curve modified
Example Code
Private Sub VcGantt1_OnCurveModifyEx(ByVal curve As _
VcGanttLib.VcCurve, ByVal date1 As Date, _
ByVal date2 As Date, ByVal increment As Long, _
returnStatus As Variant)
Select Case curve.CurveSource
Case 1
MsgBox "The curve is calculated from layers." & vbCrLf _
& "Increment: " & increment & vbCrLf _
& "Changed start date: " & date1 & vbCrLf _
& "Changed end date: " & date2
Case 3
MsgBox "Curve set via API." & vbCrLf _
& "Increment: " & increment & vbCrLf _
& "Changed start date: " & date1 & vbCrLf _
& "Changed end date: " & date2
End Select
End Sub
OnCurveModifyEx2
Event of VcGantt
This event occurs when the user has modified a histogram curve
interactively. This is valid for histogram curves generated by API commands
and for histogram curves generated by layers. The modified curve object, the
beginning and the end of the section changed, as well as the value that the
curve was changed by in y direction are returned. The curve type can be
retrieved by the VcCurve property CurveSource.
Please note: For each modified layer that contributes to the modification of a
histogram curve the event OnCurveModifyEx will occur twice (once for the
start date and once for the end date of the modified curve section).
Example Code
Private Sub VcGantt1_OnCurveModifyEx(ByVal curve As _
VcGanttLib.VcCurve, ByVal date1 As Date, _
ByVal date2 As Date, ByVal increment As Double,
_
returnStatus As Variant)
Select Case curve.CurveSource
Case 1
OnCurveModifyExAsString
Event of VcGantt
This event occurs after a histogram curve was modified interactively. The
event applies to histogram curves generated by API calls as well as to
histogram curves generated by layers. The modified curve object, the
beginning and the end of the section modified, and the value by which the
curve was modified in y direction are returned. The curve type can be
retrieved by the VcCurve property CurveSource.
Note: For a modified layer that contributes to the modification of a curve, the
event OnCurveModifyExAsString will occur twice: once for the start date
and once for the end date of the modified curve section.
Parameter:
curve VcCurve Curve modified
OnCurveRClick
Event of VcGantt
This event occurs when the user clicks the right mouse button on a curve.
The curve object and the position of the mouse (x,y-coordinates) are
returned. By setting the return status you can inhibit the integrated context
menu to pop up and replace it by a context menu of your own at the
coordinates delivered.
Parameter:
curve VcCurve Curve hit
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnCurveRClick(ByVal curve As _
VcGanttLib.VcCurve, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
End Sub
OnDataRecordCreate
Event of VcGantt
This event occurs when the user creates an object that generates a data
record. The generated data record object is returned, so that the data can be
validated.
The data passed by this event can be read, but must not be modified. For
modifying them please use the event VcDataRecordCreateComplete.
If a link or a node was created, you can in addition react to the analogous link
or node event and check additional graphical data (see OnNodeCreate and
OnLinkCreate).
Data Type Explanation
Parameter:
node VcNode Data record created
Possible Values:
vcRetStatFalse 0 The data record will be created.
vcRetStatOK 1 The data record will not be created.
Example Code
Private Sub VcGantt1_OnDataRecordCreate(ByVal node As VcGanttLib.VcDataRecord, _
returnStatus As Variant)
addDataRecord dataRecord.AllData
Exit Sub
CancelError:
returnStatus = vcRetStatFalse
End Sub
OnDataRecordCreateComplete
Event of VcGantt
This event occurs when the interactive creation of a data record is completed.
The data record object, the creation type (vcDataRecordCreated and
vcDataRecordCreatedByResourceScheduling only) and the information
whether the data record created is the only one or the last one of a data record
collection (momentarily always True) are returned, so that depending data
can be validated.
If a link or a node was created, you can in addition react to the analogous link
or node event and verify additional graphical data (s. events OnNodeCreate-
Complete and OnLinkCreateComplete).
Data Type Explanation
Parameter:
node VcNode Data record created
Possible Values:
vcDataRecordCreated 6 Data record created by
interaction
vcDataRecordCreatedByResourceScheduling 5 Data record automatically
created by resource
scheduling
vcLinkCreated 2 Link created by linking two
nodes
vcNodeCreated 1 node created via mouse-click
Example Code
Private Sub VcGantt1_OnDataRecordCreateComplete(ByVal dataRecord As _
VcGanttLib.VcDataRecord, ByVal creationType As
_
VcGanttLib.CreationTypeEnum, _
ByVal isLastDataRecordInSeries As Boolean)
addDataRecord dataRecord.AllData
End Sub
OnDataRecordDelete
Event of VcGantt
This event occurs when a user deletes an object by the context menu if the
object was based on a data record. The data record object to be deleted is
returned, so that you can still verify its data and inhibit the deletion on a
negative result by setting the return status.
Data Type Explanation
Parameter:
node VcNode Data record deleted
Possible Values:
vcRetStatFalse 0 The data record will not be deleted.
Example Code
Private Sub VcGantt1_OnDataRecordDelete(ByVal node As VcGanttLib.VcNode, _
returnStatus As Variant)
'deny the deletion of the last data record in the chart
If VcGantt1.DataRecordCollection.Count = 1 Then
returnStatus = vcRetStatFalse
MsgBox ("The last data record cannot be deleted.")
End If
End Sub
OnDataRecordDeleteComplete
Event of VcGantt
This event occurs when the deletion of an object based on a data record is
completed. The data record and the information whether the deleted data
record is the only one or the last one of a data record collection are returned,
so that depending data can be validated.
If a link or a node was deleted, you can in addition react to the analogous link
or node event and verify additional graphical data (s. OnNodeDelete-
Complete and OnLinkDeleteComplete).
Data Type Explanation
Parameter:
node VcNode Data record deleted
isLastNodeInSeries Boolean True:The data record deleted is the only one or the
last one of a data record collection.
OnDataRecordModify
Event of VcGantt
The data passed by this event can be read, but must not be modified. For
modifying them please use the event OnDataRecordModifyComplete.
Parameter:
dataRecord VcBox Box modified
Possible Values:
vcAnything 1 modification type not determined
vcChangedGroup 16 group of the node changed
vcEndModified 4 The end date of the node has changed.
vcHierarchyModified 64 Hierarchy of the nodes was changed
vcModifiedByResourceScheduling 128 Modification by resource scheduling
(occurs with data records only)
vcModifiedBySchedule 32 Modification by new date calculation
vcMoved 8 Object was moved
vcNothing 0 no modification
vcStartModified 2 The start date of the node changed
OnDataRecordModifyComplete
Event of VcGantt
This event occurs when the modification of the data record is finished.
Data Type Explanation
Parameter:
dataRecord VcDataRecord Data record modified
Example Code
Private Sub VcGantt1_OnDataRecordModifyComplete(ByVal box As _
VcGanttLib.VcBox)
End Sub
OnDataRecordNotFound
Event of VcGantt
This event occurs if a depending data record was not found. The index of the
field of the current data record, which holds the key to the depending data
record, is returned and thus offers some information on the data record not
found.
Parameter:
index Long Index of the field that contains the key of the
depending data record
OnDateLineModify
Event of VcGantt
This event occurs when the user has modified a date line interactively. The
modified VcDateLine object is passed as a parameter.
Parameter:
dateLine VcDateLine Date line
Possible Values:
vcRetStatFalse 0 The modification will be revoked.
vcRetStatOK 1 The modification will be accepted.
Example Code
Private Sub VcGantt1_OnDateLineModify(ByVal dateLine As _
VcGanttLib.VcDateLine, _
returnStatus As Variant)
MsgBox dateLine.Date
End Sub
OnDateLineRClick
Event of VcGantt
This event occurs when the user clicks the right mouse button on a date line.
The date line object and the position of the mouse (x,y-coordinates) are
captured and returned. By setting the return status you can inhibit the
integrated context menu to pop up and replace it by a context menu of your
own at the coordinates delivered.
Data Type Explanation
Parameter:
dateLine VcDateLine Date line
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnDateLineRClick(ByVal dateLine As _
VcGanttLib.VcDateLine, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
MsgBox dateLine.Name
End Sub
OnDeleteCurvePoint
Event of VcGantt
This event occurs when the user deletes a curve point of an histogram curve
set by the API. It returns the histogram curve, the date and the y value of the
deleted curve point. By setting the return status the deleting operation can be
inhibited.
Please Note: The event OnDeleteCurvePointEx lets you pass floating point
numbers as y values.
Data Type Explanation
Parameter:
curve VcCurve Histogram curve hit
Possible Values:
vcRetStatFalse 0 The curve point will not be deleted.
vcRetStatOK 1 The curve point will be deleted.
Example Code
Private Sub VcGantt1_OnDeleteCurvePoint(ByVal curve As VcGanttLib.VcCurve, _
ByVal pointDate As Date, ByVal value As Long, _
returnStatus As Variant)
If MsgBox("Do you want to delete this curve point (date:" & pointDate & _
", y value: " & value & ")?", vbYesNo, _
"Deleting curve point") = vbNo Then
returnStatus = vcRetStatFalse
End If
End Sub
OnDeleteCurvePointEx
Event of VcGantt
This event occurs when the user deletes a curve point of an histogram curve
set by the API. It returns the histogram curve, the date and the y value of the
deleted curve point. By setting the return status the deleting operation can be
inhibited.
Parameter:
curve VcCurve Histogram curve hit
Possible Values:
vcRetStatFalse 0 The curve point will not be deleted.
vcRetStatOK 1 The curve point will be deleted.
Example Code
Private Sub VcGantt1_OnDeleteCurvePointEx(ByVal curve As VcGanttLib.VcCurve, _
ByVal pointDate As Date, ByVal value As Double,
_
returnStatus As Variant)
If MsgBox("Do you want to delete this curve point (date:" & pointDate & _
", y value: " & value & ")?", vbYesNo, _
"Deleting curve point") = vbNo Then
returnStatus = vcRetStatFalse
End If
End Sub
OnDiagramLClick
Event of VcGantt
This event occurs when the user clicks the left mouse button on the diagram
in an empty space. The position of the mouse (x,y-coordinates) is returned.
Data Type Explanation
Parameter:
x Long X coordinate of the mouse cursor
Example Code
Private Sub VcGantt1_OnDiagramLClick(ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
MsgBox "x: " & x & vbNewLine & "y: " & y
End Sub
OnDiagramLDblClick
Event of VcGantt
This event occurs when the user double-clicks the left mouse button on the
diagram in an empty space. The position of the mouse (x,y-coordinates) is
returned.
Data Type Explanation
Parameter:
x Long X coordinate of the mouse cursor
Example Code
Private Sub VcGantt1_OnDiagramLDblClick(ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
VcGantt1.Zoom (90)
End Sub
OnDiagramRClick
Event of VcGantt
This event occurs when the user clicks the right mouse button on a diagram
in an empty space. The position of the mouse (x,y-coordinates) is returned.
By setting the return status you can inhibit the integrated context menu to pop
up and replace it by a context menu of your own at the coordinates delivered.
Parameter:
x Long x Coordinate of the mouse cursor
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnDiagramRClick(ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
' Start own popup menu at the current mouse cursor position
PopupMenu mnuDiagramPopup
End Sub
OnGroupDelete
Event of VcGantt
This event occurs when the user deletes a group. It returns the group object.
By setting the return status the deleting operation can be inhibited. The user
can delete only empty groups that do not contain any elements.
Data Type Explanation
Parameter:
group VcGroup Group deleted
Possible Values:
vcRetStatFalse 0 The group will not be deleted.
vcRetStatOK 1 The group will be deleted.
Example Code
Private Sub VcGantt1_OnGroupDelete(ByVal group As VcGanttLib.VcGroup, _
returnStatus As Variant)
If group.Name = "A" Then
returnStatus = vcRetStatFalse
MsgBox ("Group A cannot be deleted.")
End If
End Sub
OnGroupLClick
Event of VcGantt
This event occurs when the user clicks the left mouse button on a group
heading in the table. The group object and the mouse position (x,y-
coordinates) are returned.
Data Type Explanation
Parameter:
group VcGroup Group hit
Example Code
Private Sub VcGantt1_OnGroupLClick(ByVal group As VcGanttLib.VcGroup, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
MsgBox group.SubGroups.Count
End Sub
OnGroupLDblClick
Event of VcGantt
This event occurs when the user double-clicks the left mouse button on a
group heading in the table. The group object and the mouse position (x,y-
coordinates) are returned.
Parameter:
group VcGroup group hit
Example Code
Private Sub VcGantt1_OnGroupLDblClick(ByVal group As VcGanttLib.VcGroup, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
MsgBox group.Name
End Sub
OnGroupModify
Event of VcGantt
This event occurs when a user interactively modifies a group. The group
object, the type of modification and the return status are returned.
The data passed by this event can be read, but must not be modified. For
modifying them please use OnDataLineModifyComplete.
Parameter:
Group VcGroup Group modified
Possible Values:
vcGMTAnything 1 Modification type not determined
vcGMTEndModified 16 The end date was changed.
vcGMTMinusPressed 2 Modification type Minus symbol clicked on
vcGMTMoved 32 Object was moved
vcGMTNothing 0 Modification type nothing
vcGMTPlusPressed 4 Modification type Plus symbol clicked on
vcGMTStartModified 8 The start date was changed
Example Code
Private Sub VcGantt1_OnGroupModify(ByVal group As VcGanttLib.VcGroup, _
ByVal modificationType As _
VcGanttLib.GroupModificationTypeEnum, _
returnStatus As Variant)
End Sub
OnGroupModifyComplete
Event of VcGantt
Parameter:
Group VcGroup Group modified
Example Code
Private Sub VcGantt1_OnGroupModifyComplete(ByVal group As VcGanttLib.VcGroup)
MsgBox "The group has been modified."
End Sub
OnGroupModifyEx
Event of VcGantt
This event occurs when the user modifies a group. The data of the node
before and after the modification are passed. By the modificationType
parameter you get further information of the type of modification. If you set
the returnStatus to vcRetStatFalse, the modification will be revoked.
This event should be used only for reading data from the current group, but
not for modifying one. For modifying data please use OnGroupModify-
Complete.
Data Type Explanation
Parameter:
oldgroup VcGroup Group before the modification
Possible Values:
vcGMTAnything 1 Modification type not determined
vcGMTEndModified 16 The end date was changed.
vcGMTMinusPressed 2 Modification type Minus symbol clicked on
vcGMTMoved 32 Object was moved
vcGMTNothing 0 Modification type nothing
vcGMTPlusPressed 4 Modification type Plus symbol clicked on
vcGMTStartModified 8 The start date was changed
OnGroupRClick
Event of VcGantt
This event occurs when the user clicks the right mouse button on a group title
in the table. The group object and the mouse position (x,y-coordinates) are
returned. By setting the return status you can inhibit the integrated context
menu to pop up and replace it by a context menu of your own at the
coordinates delivered.
Data Type Explanation
Parameter:
group VcGroup Group hit
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnGroupRClick(ByVal group As VcGanttLib.VcGroup, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
' Start own popup menu at the current mouse cursor position
PopupMenu mnuGroupPopup
End Sub
OnGroupsMark
Event of VcGantt
This event occurs when the user selects groups for marking or when he
unmarks marked groups by a click into the empty diagram. If the user marked
groups, the GroupCollection contains the groups selected by the most recent
marking action. If the user unmarked groups by a click into the empty
diagram, the group collection will be empty.
If you set the return status to vcRetStatFalse, you have to mark or unmark
groups yourself.
The data passed by this event can be read, but must not be modified. For
modifying them please use OnGroupsMarkComplete.
Data Type Explanation
Parameter:
groupCollection VcGroupCollection GroupCollection that contains the groups selected
by the user. If the user clicked in the diagram, the
GroupCollection is empty.
shift Integer Number that indicates which one of the Shift, Ctrl,
and Alt keys was pressed. 1 corresponds to the
Shift key, 2 to the Ctrl key and 4 to the Alt key.
Some, all, or none of the numbers may have been
set, indicating that some, all, or none of the keys are
depressed, respectively. When more than one key is
in depressed state, their values add up. For
example, if both the Ctrl and Alt keys were
depressed, the value of shift would equal "6".
Example Code
Private Sub VcGantt1_OnNodesMarkEx(ByVal GroupCollection As _
VcGanttLib.VcGroupCollection, ByVal button _
As Integer, ByVal shift As Integer, _
returnStatus As Variant)
End Sub
OnGroupsMarkComplete
Event of VcGantt
Parameter:
(no parameter) No parameter
Example Code
Private Sub VcGantt1_OnGroupsMarkComplete()
MsgBox "Groups have been marked successfully."
End Sub
OnHelpRequested
Event of VcGantt
This event occurs if the user presses the F1 key on a dialog at run time. The
application can invoke its own help system, to offer information specific to
the dialog and to the application.
Data Type Explanation
Parameter:
dialogType DialogTypeEnum Dialog for which help was requested
Possible Values:
vcEditDataRecordDialog 5400 Help was requested for the Edit Data Record
dialog.
vcEditTimeScaleDialog 5409 Help was requested for the Edit Time Scale
dialog.
vcPageSetupDialog 4097 Help was requested for the Page Set Up
dialog.
vcPrintPreviewDialog 4096 Help was requested for the Print Preview
dialog.
OnHistogramLClick
Event of VcGantt
This event occurs when the user clicks the left mouse button on a histogram.
The histogram object and the mouse position (x,y-coordinates) are returned.
Parameter:
histogram VcHistogram Histogram hit
Example Code
Private Sub VcGantt1_OnHistogramLClick(ByVal Histogram As _
VcGanttLib.VcHistogram, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
End Sub
OnHistogramLDblClick
Event of VcGantt
This event occurs when the user double-clicks the left mouse button on a
histogram. The histogram object and the mouse position (x,y-coordinates) are
returned.
Data Type Explanation
Parameter:
histogram VcHistogram Histogram hit
Example Code
Private Sub VcGantt1_OnHistogramLDblClick(ByVal Histogram As _
VcGanttLib.VcHistogram, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
MsgBox Histogram.Name
End Sub
OnHistogramRClick
Event of VcGantt
This event occurs when the user clicks the right mouse button on a histogram.
The histogram object and the mouse position (x,y-coordinates) are returned.
By setting the return status you can inhibit the integrated context menu to pop
up and replace it by a context menu of your own at the coordinates delivered.
Parameter:
histogram VcHistogram Histogram hit
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnHistogramRClick(ByVal Histogram As _
VcGanttLib.VcHistogram, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
' Start own popup menu at the current mouse cursor position
PopupMenu mnuHistogramPopup
End Sub
OnHistogramsHeight
Event of VcGantt
This event occurs, when the user modifies the ratio of the diagram height to
the histogram height. The collection of the histograms and the diagram /
histogram height ratio are returned. If you set the return status to vcRetStat-
False, the modification will be revoked.
Parameter:
histogramCollection VcHistogramCollection Histogram collection
Possible Values:
vcRetStatFalse 0 The height will not change.
vcRetStatOK 1 The height will change.
Example Code
Private Sub VcGantt1_OnHistogramsHeight(ByVal HistogramCollection As
VcGanttLib.VcHistogramCollection, ByVal histogramsHeightRatio As Long,
returnStatus As Variant)
End Sub
OnHistogramsHeightChanged
Event of VcGantt
This event occurs, after the ratio of the diagram height to the histogram
height which was modified by the user was changed. The collection of the
histograms and the diagram / histogram height ratio are returned.
Data Type Explanation
Parameter:
histogramCollection VcHistogramCollection Histogram collection
Example Code
Private Sub VcGantt1_OnHistogramsHeightChanged(ByVal HistogramCollection As
VcGanttLib.VcHistogramCollection, ByVal histogramsHeightRatio As Long)
VcGantt1.FitHistogramsIntoView
End Sub
OnHistogramsHeightModifyEx
Event of VcGantt
This event occurs when the user interactively modifies the height of the
histogram. The histogram and the modified diagram/histogram aspect ratio
are returned. By setting the return status you can inhibit the modification.
Parameter:
histogramCollection VcHistogramCollection Histogram collection containing all histograms of this
Gantt instance
OnInsertCurvePoint
Event of VcGantt
This event occurs when the user has selected the histogram context menu
item Mode: Insert curve point and then inserts a curve point to a histogram
curve generated by API commands. It returns the histogram curve, the date
and the y value of the inserted curve point. If you set the returnStatus to
vcRetStatFalse, the inserting operation will be revoked.
Data Type Explanation
Parameter:
curve VcCurve Curve hit in histogram
Example Code
Private Sub VcGantt1_OnInsertCurvePoint(ByVal curve As VcGanttLib.VcCurve, _
ByVal pointDate As Date, ByVal value As Long, _
returnStatus As Variant)
If MsgBox("Do you want to insert this curve point (date:" & pointDate & ", _
y value: " & value & ")?", vbYesNo, _
"Deleting curve point") = vbNo Then
returnStatus = vcRetStatFalse
End If
End Sub
OnInsertCurvePointEx
Event of VcGantt
This event occurs when the user has selected the histogram context menu
item Mode: Insert curve point and then inserts a curve point to an
histogram curve set by API commands. It returns the histogram curve, the
date and the y value of the inserted curve point. If you set the returnStatus to
vcRetStatFalse, the inserting operation will be revoked.
Parameter:
curve VcCurve Curve hit in histogram
Example Code
Private Sub VcGantt1_OnInsertCurvePoint(ByVal curve As VcGanttLib.VcCurve, _
ByVal pointDate As Date, ByVal value As Long, _
returnStatus As Variant)
If MsgBox("Do you want to insert this curve point (date:" & pointDate & ", _
y value: " & value & ")?", vbYesNo, _
"Deleting curve point") = vbNo Then
returnStatus = vcRetStatFalse
End If
End Sub
OnLegendViewClosed
Event of VcGantt
This event occurs when the legend view popup window is closed.
Data Type Explanation
Parameter:
(no parameter)
Example Code
Private Sub VcGantt1_OnLegendViewClosed()
MsgBox "Do you want to close the legend view window?", vbOKCancel
End Sub
OnLinkCreate
Event of VcGantt
This event occurs when the user creates a link between two nodes. The
generated link object is returned, so that a validation and if necessary a data
base entry can be made.
The data passed by this event can be read, but must not be modified. For
modifying them please use the event OnLinkCreateComplete.
Parameter:
link VcLink Link created
Possible Values:
vcRetStatFalse 0 The link will not be created.
vcRetStatOK 1 The link will be created.
Example Code
Private Sub VcGantt1_OnLinkCreate(ByVal link As VcGanttLib.VcLink, _
returnStatus As Variant)
Exit Sub
CancelError:
returnStatus = vcRetStatFalse
End Sub
OnLinkCreateComplete
Event of VcGantt
This event occurs when the interactive creation of a link is completed. The
link object, the creation type (always VcLinkCreated) and the information
whether the created link is the only link or the last link of a link collection
(always True) are returned, so that a validation can be made.
Data Type Explanation
Parameter:
link VcLink Link created
Possible Values:
vcLinkCreated 2 Link created by linking two nodes
isLastLinkInSeries Boolean The created link is/is not the only link or the last link
of a link collection.
Example Code
Private Sub VcGantt1_OnLinkCreateComplete(ByVal link As VcGanttLib.VcLink, _
ByVal creationType As _
VcGanttLib.CreationTypeEnum, _
ByVal isLastLinkInSeries As Boolean)
End Sub
OnLinkDelete
Event of VcGantt
This event occurs when a user deletes a link by the context menu. The link
object to be deleted is returned, so that you can still check for - whatever -
conditions and prohibit the deletion on a negative result by setting the return
status.
Data Type Explanation
Parameter:
link VcLink Link deleted
Possible Values:
vcRetStatFalse 0 The link will not be deleted.
vcRetStatOK 1 The link will be deleted.
Example Code
Private Sub VcGantt1_OnLinkDelete(ByVal link As VcGanttLib.VcLink, _
returnStatus As Variant)
' deny deletion of link with a certain predecessor
If link.PredecessorNode.DataField(0) = "1" Then
returnStatus = vcRetStatFalse
End If
End Sub
OnLinkDeleteComplete
Event of VcGantt
This event occurs when the deletion of a link is completed. The link object
and the information whether the created link is the only link or the last link of
a link collection are returned, so that a validation can be made.
Data Type Explanation
Parameter:
link VcLink Link deleted
isLastLinkInSeries Boolean The deleted link is/is not the only link or the last link
of a link collection.
Example Code
Private Sub VcGantt1_OnLinkDeleteComplete(ByVal link As VcGanttLib.VcLink, ByVal
isLastLinkInSeries As Boolean)
MsgBox "The link " & link.AllData & " was deleted."
End Sub
OnLinkLClickCltn
Event of VcGantt
This event occurs when the user clicks the left mouse button on a link or on
several overlapping links. The LinkCollection object and the mouse position
(x,y-coordinates) are returned.
Data Type Explanation
Parameter:
linkCltn VcLinkCollection LinkCollection object hit
Example Code
Private Sub VcGantt1_OnLinkLClickCltn(ByVal linkCltn _
As VcGanttLib.VcLinkCollection, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
Dim link As VcLink
OnLinkLDblClickCltn
Event of VcGantt
This event occurs when the user double-clicks the left mouse button on a link
or on several overlapping links. The LinkCollection object and the mouse
position (x,y-coordinates) are returned.
Data Type Explanation
Parameter:
linkCltn VcLinkCollection LinkCollection object hit
Example Code
Private Sub VcGantt1_OnLinkLDblClickCltn(ByVal linkCltn As _
VcGanttLib.VcLinkCollection, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
End Sub
OnLinkRClickCltn
Event of VcGantt
This event occurs when the user clicks the right mouse button on a link or on
several overlapping links. The LinkCollection object and the mouse position
(x,y-coordinates) are returned. By setting the return status you can inhibit the
integrated context menu to pop up and replace it by a context menu of your
own at the coordinates delivered.
Data Type Explanation
Parameter:
linkCltn VcLinkCollection LinkCollection object hit
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnLinkRClickCltn(ByVal linkCltn As _
VcGanttLib.VcLinkCollection, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
' Start a popup menu at the current mouse cursor position
PopupMenu mnuLinkPopup
OnModifyComplete
Event of VcGantt
This event occurs when data have been modified interactively in the chart,
that means it occurs after the following events:
OnBoxModifyComplete
OnCurveModifyEx
OnDeleteCurvePoint
OnGroupModifyComplete
OnLinkCreateComplete
OnLinkDeleteComplete
OnNodeCreateCompleteEx
OnNodeDelete
OnNodeModifyComplete
This event allows you to set a mark in the application that reminds to save the
data before closing the program.
Parameter:
(no parameter) No parameter
OnMouseDblClk
Event of VcGantt
Parameter:
button Integer indicates the mouse button(s) pressed: 1 represents
the left button, 2 is the right button, and the middle
button is represented by 4.
Shift Integer Number that indicates which one of the Shift, Ctrl,
and Alt keys was pressed. 1 corresponds to the
Shift key, 2 to the Ctrl key and 4 to the Alt key.
Some, all, or none of the numbers may have been
set, indicating that some, all, or none of the keys are
depressed, respectively. When more than one key is
in depressed state, their values add up. For
example, if both the Ctrl and Alt keys are depressed,
the value of shift would be "6".
OnMouseDown
Event of VcGantt
Parameter:
button Integer Indicates the mouse button(s) pressed: 1 represents
the left button, 2 is the right button, and the middle
button is represented by 4.
Shift Integer Number that indicates which one of the Shift, Ctrl,
and Alt keys was pressed. 1 corresponds to the
Shift key, 2 to the Ctrl key and 4 to the Alt key.
Some, all, or none of the numbers may have been
set, indicating that some, all, or none of the keys are
depressed, respectively. When more than one key is
in depressed state, their values add up. For
example, if both the Ctrl and Alt keys are depressed,
the value of shift would be "6".
OnMouseMove
Event of VcGantt
Parameter:
button Integer indicates the mouse button(s) pressed: 1 represents
the left button, 2 is the right button, and the middle
button is represented by 4.
Shift Integer Number that indicates which one of the Shift, Ctrl,
and Alt keys was pressed. 1 corresponds to the
Shift key, 2 to the Ctrl key and 4 to the Alt key.
Some, all, or none of the numbers may have been
set, indicating that some, all, or none of the keys are
depressed, respectively. When more than one key is
in depressed state, their values add up. For
example, if both the Ctrl and Alt keys are depressed,
the value of shift would be "6".
OnMouseUp
Event of VcGantt
This event occurs when the user loosens the pressed left mouse button.
Parameter:
button Integer Indicates the mouse button(s) pressed: 1 represents
the left button, 2 is the right button, and the middle
button is represented by 4.
Shift Integer Number that indicates which one of the Shift, Ctrl,
and Alt keys was pressed. 1 corresponds to the
Shift key, 2 to the Ctrl key and 4 to the Alt key.
Some, all, or none of the numbers may have been
set, indicating that some, all, or none of the keys are
depressed, respectively. When more than one key is
in depressed state, their values add up. For
example, if both the Ctrl and Alt keys are depressed,
the value of shift would be "6".
OnNodeCreate
Event of VcGantt
This event occurs when the user creates a node. The node object is returned,
so that a validation can be made.
The data passed by this event can be read, but must not be modified. For
modifying them please use the event OnNodeCreateCompleteEx.
Parameter:
node VcNode Node to be created
Possible Values:
vcRetStatFalse 0 The node will not be created.
vcRetStatOK 1 The node will be created.
Example Code
Private Sub VcGantt1_OnNodeCreate(ByVal node As VcGanttLib.VcNode, _
returnStatus As Variant)
addDataRecord node.AllData
Exit Sub
CancelError:
returnStatus = vcRetStatFalse
End Sub
OnNodeCreateCompleteEx
Event of VcGantt
This event occurs when the interactive creation of a node is completed. The
node object, the creation type (here vcNodeCreated) and the information
whether the created node is the only node or the last node of a node
collection (always True) are returned, so that a validation can be made.
Data Type Explanation
Parameter:
node VcNode Node created
Possible Values:
vcDataRecordCreated 6 Data record created by
interaction
vcDataRecordCreatedByResourceScheduling 5 Data record automatically
created by resource
scheduling
vcNodeCreated 1 node created via mouse-click
Example Code
Private Sub VcGantt1_OnNodeCreateCompleteEx(ByVal node As _
VcGanttLib.VcNode, ByVal creationType As _
VcGanttLib.CreationTypeEnum, _
ByVal isLastNodeInSeries As Boolean)
'create a record in the underlying database of the application
addDataRecord node.AllData
End Sub
OnNodeDelete
Event of VcGantt
This event occurs when the user deletes a node by the context menu. The
node object to be deleted is returned, so that you can still check for -
whatever - conditions and prohibit the deletion on a negative result by setting
the return status.
Parameter:
node VcNode Node deleted
Possible Values:
vcRetStatFalse 0 The node will not be deleted.
vcRetStatOK 1 The node will be deleted.
Example Code
Private Sub VcGantt1_OnNodeDelete(ByVal node As VcGanttLib.VcNode, _
returnStatus As Variant)
'deny the deletion of the last node in the chart
If VcGantt1.NodeCollection.Count = 1 Then
returnStatus = vcRetStatFalse
MsgBox ("The last node in the chart cannot be deleted.")
End If
End Sub
OnNodeDeleteCompleteEx
Event of VcGantt
This event occurs when deleting a node interactively is completed. The node
object and the information whether the deleted node was the last one of a
batch are returned for data validation.
Data Type Explanation
Parameter:
node VcNode Node deleted
isLastNodeInSeries Boolean The deleted node is (True) / is not (False) the last
node of batch
Example Code
Private Sub VcGantt1_OnNodeDeleteCompleteEx(ByVal node As VcGanttLib.VcNode,
ByVal isLastNodeInSeries As Boolean)
MsgBox "The node " & node.AllData & " was deleted."
End Sub
OnNodeLClick
Event of VcGantt
This event occurs when the user clicks the left mouse button on a node
(location = vcInDiagram) or on a table entry related to an activity (location =
vcInTable). The node object and the cursor position (x,y-coordinates) are
captured and passed.
Parameter:
node VcNode Node hit
Possible Values:
vcInDiagram 1 Located in the node area
vcInTable 0 Located in the table area
Example Code
Private Sub VcGantt1_OnNodeLClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As VcGanttLib.LocationEnum, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
'change data field of the node
node.DataField(8) = 1 - CInt(node.DataField(8))
End Sub
OnNodeLDblClick
Event of VcGantt
This event occurs when the user double-clicks the left mouse button on a
node (location = vcInDiagram) or on a table entry related to an activity
(location = vcInTable). The node object and the cursor position (x,y-
coordinates) are captured and passed. By setting the returnStatus, the
integrated Edit Data dialog can be inhibited to appear.
Data Type Explanation
Parameter:
node VcNode Node hit
Possible Values:
vcInDiagram 1 Located in the node area
vcInTable 0 Located in the table area
Example Code
Private Sub VcGantt1_OnNodeLDblClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As VcGanttLib.LocationEnum, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
returnStatus = vcRetStatFalse
Exit Sub
CancelError:
returnStatus = vcRetStatFalse
End Sub
OnNodeModifyComplete
Event of VcGantt
This event occurs when the modification of the node specified is finished.
Data Type Explanation
Parameter:
node VcNode Node modified
isLastNodeInSeries Boolean The modified node is/is not the only node or the last
node of a node collection.
Example Code
Private Sub VcGantt1_OnNodeModifyComplete(ByVal node As _
VcGanttLib.VcNode, ByVal _
isLastNodeInSeries As Boolean)
End Sub
OnNodeModifyCompleteEx
Event of VcGantt
This event occurs after the user has modified the node.
Data Type Explanation
Parameter:
node VcNode Node modified
Possible Values:
vcAnything 1 modification type not determined
vcChangedGroup 16 group of the node changed
vcEndModified 4 The end date of the node has
changed.
vcHierarchyModified 64 Hierarchy of the nodes was changed
vcModifiedByResourceScheduling 128 Modification by resource scheduling
(occurs with data records only)
vcModifiedBySchedule 32 Modification by new date calculation
vcMoved 8 Object was moved
vcNothing 0 no modification
vcStartModified 2 The start date of the node changed
Example Code
Private Sub VcGantt1_OnNodeModifyCompleteEx(ByVal node As VcGanttLib.VcNode,
ByVal modificationType As VcGanttLib.ModificationTypeEnum, ByVal
isLastNodeInSeries As Boolean)
End Sub
OnNodeModifyEx
Event of VcGantt
This event occurs when the user modifies a node. In the course of this, the
length or the position of the node or a value in the Edit Data dialog may
have been changed. The data of the node before and after the modification
are passed. By the modificationType parameter you get further information
of the kind of modification. By setting the returnStatus to vcRetStatFalse,
the modification will be inhibited.
This event should be used only for reading data of the current node, but not
for modifying them. For modifying data please use OnNodeModify-
Complete.
Data Type Explanation
Parameter:
oldNode VcNode Node before the modification
Possible Values:
vcAnything 1 modification type not determined
vcChangedGroup 16 group of the node changed
vcEndModified 4 The end date of the node has changed.
vcHierarchyModified 64 Hierarchy of the nodes was changed
vcModifiedByResourceScheduling 128 Modification by resource scheduling
(occurs with data records only)
vcModifiedBySchedule 32 Modification by new date calculation
vcMoved 8 Object was moved
vcNothing 0 no modification
vcStartModified 2 The start date of the node changed
Example Code
Private Sub VcGantt1_OnNodeModifyEx(ByVal oldNode As _
VcGanttLib.VcNode, ByVal node As _
VcGanttLib.VcNode, ByVal modificationType As _
VcGanttLib.ModificationTypeEnum, returnStatus _
As Variant)
' Revoke the modification if the node would change the group
If modificationType And vcChangedGroup Then
MsgBox "The node cannot be moved into another group."
returnStatus = vcRetStatFalse
End If
End Sub
OnNodeRClick
Event of VcGantt
This event occurs when the user clicks the right mouse button on a node
(location = vcInDiagram) or on a table entry related to an activity (location =
vcInTable). The node object hit and the cursor position (x,y-coordinates) are
returned. By setting the return status you can inhibit the integrated context
menu to pop up and replace it by a context menu of your own at the
coordinates delivered.
Parameter:
node VcNode Node hit
Possible Values:
vcInDiagram 1 Located in the node area
vcInTable 0 Located in the table area
Example Code
Private Sub VcGantt1_OnNodeRClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As VcGanttLib.LocationEnum, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
' Start own popup menu at the current mouse cursor position
PopupMenu mnuNodePopup
returnStatus = vcRetStatNoPopup
End Sub
OnNodeResizeStart
Event of VcGantt
This event occurs when the user starts to interactively stretch or shorten a
node. It may serve to set smaller modifications to the XGantt, such as making
step size depend on nodes (TimeUnitsPerStep).
Data Type Explanation
Parameter:
layer VcLayer Layer that was dragged
OnNodesMarkComplete
Event of VcGantt
Parameter:
(no parameter) No parameter
Example Code
Private Sub VcGantt1_OnNodesMarkComplete()
MsgBox "Nodes have been marked successfully."
End Sub
OnNodesMarkEx
Event of VcGantt
This event occurs when the user selects nodes for marking or when he
unmarks marked nodes by a click into an empty section of the diagram. The
NodeCollection contains the nodes selected by the most recent marking
action of the user. If the user unmarked nodes by a click into an empty
section, the NodeCollection will be empty.
The parameters button and shift return the control and mouse buttons that
were pressed. If you set the return status to vcRetStatFalse, you have to
mark or unmark nodes yourself.
The data passed by this event can be read, but must not be modified. For
modifying them please use OnNodesMarkComplete.
Data Type Explanation
Parameter:
nodeCollection VcNodeCollection NodeCollection that contains the nodes selected by
the user. If the user clicked in the diagram, the
NodeCollection is empty.
shift Integer Number that indicates which one of the Shift, Ctrl,
and Alt keys was pressed. 1 corresponds to the
Shift key, 2 to the Ctrl key and 4 to the Alt key.
Some, all, or none of the numbers may have been
set, indicating that some, all, or none of the keys are
depressed, respectively. When more than one key is
in depressed state, their values add up. For
example, if both the Ctrl and Alt keys were
depressed, the value of shift would equal "6".
Possible Values:
vcRetStatFalse 0 Marking has to be done manually.
vcRetStatOK 1 Marking is done automatically.
Example Code
Private Sub VcGantt1_OnNodesMarkEx(ByVal NodeCollection As _
VcGanttLib.VcNodeCollection, ByVal button _
As Integer, ByVal shift As Integer, _
returnStatus As Variant)
End Sub
OnNumericScaleLClick
Event of VcGantt
This event occurs when the user clicks the left mouse button on the numeric
scale. The numeric scale object and the cursor position (x,y-coordinates) are
returned.
Data Type Explanation
Parameter:
numericScale VcNumericScale Numeric scale hit
Example Code
Private Sub VcGantt1_OnNumericScaleLClick(ByVal numericScale As _
VcGanttLib.VcNumericScale, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
numericScale.BackgroundColor = RGB(222, 211, 33)
End Sub
OnNumericScaleLDblClick
Event of VcGantt
This event occurs when the user double-clicks the left mouse button on the
numeric scale. The numeric scale object and the mouse position (x,y-
coordinates) are returned.
Data Type Explanation
Parameter:
numericScale VcNumericScale Numeric scale hit
Example Code
Private Sub VcGantt1_OnNumericScaleLDblClick(ByVal numericScale As _
VcGanttLib.VcNumericScale, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
numericScale.MajorTicks = Text1.Text
End Sub
OnNumericScaleRClick
Event of VcGantt
This event occurs when the user clicks the right mouse button on a numeric
scale. The numeric scale object and the mouse position (x,y-coordinates) are
returned. By setting the return status you can inhibit the integrated context
menu to pop up and replace it by a context menu of your own at the
coordinates delivered.
Parameter:
numericScale VcNumericScale Numeric scale hit
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnNumericScaleRClick(ByVal numericScale As _
VcGanttLib.VcNumericScale, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
End Sub
OnNumericScaleRescale
Event of VcGantt
This event occurs when the user rescales the numeric scale. The
NumericScale object and the new BasicUnitWidth are returned, so that you
can check whether the scaling is allowed. By setting the return status you can
inhibit the modification.
Data Type Explanation
Parameter:
numericScale VcNumericScale Numeric scale hit
Possible Values:
vcRetStatFalse 0 The numeric scale will not be modified.
vcRetStatOK 1 The numeric scale will be modified.
Example Code
Private Sub VcGantt1_OnNumericScaleRescale (ByVal numericScale As _
VcGanttLib.VcNumericScale, _
ByVal newBasicUnitWidth As Long, _
returnStatus As Variant)
OnObjectDrawCompleteEx
Event of VcGantt
This events only occurs after an object was drawn. It lets you complete or
modify the shape of objects drawn by VARCHART XGantt by programming
code of your own.
ObjectDraw events are only triggered after the corresponding option was set
to its special object type. The option is available for layers and user-defined
annotation ribbons.
design time, you tick the check box ObjectDraw Events for the according
layer in the Specify Bar Appearance dialog.
To draw a user-defined annotation ribbon, you have to tick the check box
ObjectDraw Events for the according ribbon in the Edit Histograms dialog
Parameter:
hDC Long Device context
Possible Values:
vcObjTypeNodeInDiagram 2 object type node in diagram area
vcObjTypeNodeInLegend 17 object type node in legend area
vcObjTypeNumericScale 10 object type numeric scale
vcObjTypeSummaryNode 14 object type summary bar
Example Code
Private Declare Function GetStockObject Lib "gdi32" (ByVal nIndex As Long) As
Long
Private Const WHITE_BRUSH = 0
OnObjectDrawEx
Event of VcGantt
This event is triggered before an object is drawn. It enables you to shape the
object by adding your own programming code. By setting the return status to
the drawing can be inhibited.
ObjectDraw events are only triggered after the corresponding option was set
to its special object type. The option is available for layers and user-defined
annotation ribbons.
To draw a user-defined annotation ribbon, you have to tick the check box
ObjectDraw Events for the according ribbon in the Edit Histograms dialog
Parameter:
hDC Long Device context
Possible Values:
vcObjTypeNodeInDiagram 2 object type node in diagram area
vcObjTypeNodeInLegend 17 object type node in legend area
vcObjTypeNumericScale 10 object type numeric scale
vcObjTypeSummaryNode 14 object type summary bar
OnOptimizeTableColumnWidth
Event of VcGantt
This event occurs after a double-click on the separation line between two
table columns, provided that on the General property page the Allow table
column width optimization check box was activated or the property
AllowTableColumnWidthOptimization was set. Then the width of the
column on the left will be adapted automatically to the length of the text
which it contains. The table and the index of the modified column are
returned. By setting the return status, you can inhibit the optimization.
Data Type Explanation
Parameter:
table VcTable Table
Possible Values:
vcRetStatFalse 0 The width of the table column will not be optimized.
vcRetStatOK 1 The width of the table column will be optimized.
Example Code
Private Sub VcGantt1_OnOptimizeTableColumnWidth(ByVal Table As
VcGanttLib.VcTable, ByVal Index As Integer, returnStatus As Variant)
End Sub
OnPreScrollComponent
Event of VcGantt
This event occurs when you have ordered a scroll action, but before the
integrated scrolling process is performed. This events lets you acquire for
each interactive scroll action:
Note: The actual scroll action results from the combination of the parameters
orientation and scrollAction, because in Windows programs the up/left- and
down/right actions have got the same numbers, e. g.:
vcScrollActionSBPageLeft = vcScrollActionSBPageUp = 2
The below example shows the difference when using the parameter
orientation with VcScrollActionSBPageLeft and with
vcScrollActionSBPageUp, which both have the value 2.
Data Type Explanation
Parameter:
component ComponentTypeEnum Component type
Possible Values:
vcAdditionalListComponent 1 additional table
vcBottomListTitleComponent 14 bottom title bar
vcBottomRightListTitleComponent 17 bottom right table
vcBottomTimeScaleComponent 15 bottom time scale
vcDiagramComponent 4 diagram
vcHistogramComponent 8 histogram
vcHistogramVerScaleComponent 7 numeric scale (vertical histogram scale)
vcLegendComponent 10 legend (currently functionless; return
values 00)
vcListComponent 0 table
vcListTitleComponent 2 table title
vcRightListComponent 5 table
vcRightListTitleComponent 16 table title of the right table
vcTimeScaleComponent 3 upper time scale
vcTopTitleComponent 11 upper title bar
Example Code
If orientation = vcHorizontal and scrollAction = vcScrollActionSBPageLeft _
Then MsgBox “Scolled left”
ElseIf orientation = vcHorizontal _
and scrollAction = vcScrollActionSBPageRight _
Then MsgBox “Scrolled right”
ElseIf orientation = vcVertical and scrollAction = vcScrollActionSBPageUp _
Then MsgBox “Scrolled up”
End If
OnPreScrollDiagramHor
Event of VcGantt
This event occurs when you have ordered a scroll action, but before the
integrated scrolling process is performed. The old start and end date of the
visible diagram area are returned. The scrollAction parameter provides
information about the type of the performed scrolling process. If you set the
returnStatus to vcRetStatFalse, the integrated scrolling process will be
suppressed, and in your application, you can react to the event by using your
own solution.
Parameter:
curStartDate Date/Time Current start date of the visible part of the
diagram
Possible Values:
vcScrollActionAutoscrollDown 102 The view was automatically scrolled
downward.
vcScrollActionAutoscrollLeft 101 The view was automatically scrolled
towards the right.
vcScrollActionAutoscrollRight 102 The view was automatically scrolled
towards the left.
vcScrollActionAutoscrollUp 101 The view was automatically scrolled
upward.
vcScrollActionMouseWheelDown 106 While the mouse wheel was pressed, the
mouse was moved downward.
vcScrollActionMouseWheelLeft 105 While the mouse wheel was pressed, the
mouse was moved towards the left.
vcScrollActionMouseWheelRight 106 While the mouse wheel was pressed, the
mouse was moved towards the right.
vcScrollActionMouseWheelUp 105 While the mouse wheel was pressed, the
mouse was moved upward.
vcScrollActionSBLineDown 1 The view was automatically scrolled to its
bottom limit
vcScrollActionSBLineLeft 0 The view was automatically scrolled to its
left limit
vcScrollActionSBLineRight 1 The view was automatically scrolled to its
right limit
vcScrollActionSBLineUp 0 The view was automatically scrolled to its
top limit
vcScrollActionSBNothing -1 The view was not scrolled
vcScrollActionSBPageDown 3 The view was scrolled downward by a
page
vcScrollActionSBPageLeft 2 The view was scrolled towards the left by
a page
vcScrollActionSBPageRight 3 The view was scrolled towards the right
by a page
vcScrollActionSBPageUp 2 The view was scrolled upward by a page
vcScrollActionSBThumbPosition 4 The scrolling by a step has been finished.
vcScrollActionSBThumbTrack 5 The view was scrolled by a step
vcScrollActionScrollEnd 104 Scrolling via the End button or the
context menu to the diagram end (right
down)
vcScrollActionScrollHome 103 Scrolling via the Pos 1 button or the
context menu to the upper left corner of
the diagram
vcScrollActionThumbTrackDown 108 Thumb (bar of the scrollbar) moved down
vcScrollActionThumbTrackLeft 107 Thumb (bar of the scrollbar) moved
toward the left
vcScrollActionThumbTrackRight 108 Thumb (bar of the scrollbar) moved
toward the right
vcScrollActionThumbTrackUp 107 Thumb (bar of the scrollbar) moved up
Example Code
Private Sub VcGantt1_OnPreScrollDiagramHor(ByVal curStartDate _
As Date, ByVal curEndDate As Date, _
ByVal scrollAction As _
VcGanttLib.ScrollActionEnum, _
returnStatus As Variant)
End Sub
OnResourceSchedulingProgress
Event of VcGantt
During the resource scheduling process, this event informs on the progress of
the scheduling procedure. The number of jobs scheduled and the total number
of jobs are reported. By setting the return status to vcRetStatFalse, the
scheduling procedure will be abandoned.
Data Type Explanation
Parameter:
ScheduledJobCount Long Number of scheduled jobs
Example Code
Private Sub VcGantt1_OnResourceSchedulingProgress(ByVal scheduledJobCount As
Long, ByVal totalJobCount As Long, returnStatus As Variant)
MsgBox scheduledJobCount & " of " & totalJobCount
End Sub
OnResourceSchedulingWarning
Event of VcGantt
Parameter:
warningType ResSchedWarningTypeEnum Warning type
Possible Values:
Example Code
Private Sub VcGantt1_OnResourceSchedulingWarning(ByVal warningType As
VcGanttLib.ResourceSchedulingWarningTypeEnum, ByVal DataRecord As
VcGanttLib.VcDataRecord, returnStatus As Variant)
End Sub
OnScrollComponent
Event of VcGantt
For each interactive scrolling action this event lets you identify the below
listed values:
Note: The actual scroll action results from the combination of the parameters
orientation and scrollAction, because in Windows programs the up/left- and
down/right actions have got the same numbers, e. g.:
vcScrollActionSBPageLeft = vcScrollActionSBPageUp = 2
The following example shows the distinction by the usage of the parameter
orientation for VcScrollActionSBPageLeft and vcScrollActionSBPageUp
which have both the value 2.
Data Type Explanation
Parameter:
component ComponentTypeEnum Component type
Possible Values:
vcAdditionalListComponent 1 additional table
vcBottomListTitleComponent 14 bottom title bar
vcBottomRightListTitleComponent 17 bottom right table
vcBottomTimeScaleComponent 15 bottom time scale
vcDiagramComponent 4 diagram
vcHistogramComponent 8 histogram
vcHistogramVerScaleComponent 7 numeric scale (vertical histogram scale)
vcLegendComponent 10 legend (currently functionless; return
values 00)
vcListComponent 0 table
vcListTitleComponent 2 table title
vcRightListComponent 5 table
vcRightListTitleComponent 16 table title of the right table
vcTimeScaleComponent 3 upper time scale
vcTopTitleComponent 11 upper title bar
Example Code
If orientation = vcHorizontal and scrollAction = vcScrollActionSBPageLeft _
Then MsgBox “Scolled left”
ElseIf orientation = vcHorizontal and _
scrollAction = vcScrollActionSBPageRight _
Then MsgBox “Scrolled right”
ElseIf orientation = vcVertical and scrollAction = vcScrollActionSBPageUp _
Then MsgBox “Scrolled up”
End If
OnScrollDiagramHor
Event of VcGantt
This event occurs after a scroll action was performed. The new start and end
date of the visible diagram area are captured and passed. The scrollAction
parameter provides information about the type of the performed scrolling
process.
Data Type Explanation
Parameter:
newStartDate Date/Time New start date of the visible part of the
diagram
Possible Values:
vcScrollActionAutoscrollDown 102 The view was automatically scrolled
downward.
vcScrollActionAutoscrollLeft 101 The view was automatically scrolled
towards the right.
vcScrollActionAutoscrollRight 102 The view was automatically scrolled
towards the left.
vcScrollActionAutoscrollUp 101 The view was automatically scrolled
upward.
vcScrollActionMouseWheelDown 106 While the mouse wheel was pressed, the
mouse was moved downward.
vcScrollActionMouseWheelLeft 105 While the mouse wheel was pressed, the
mouse was moved towards the left.
vcScrollActionMouseWheelRight 106 While the mouse wheel was pressed, the
mouse was moved towards the right.
vcScrollActionMouseWheelUp 105 While the mouse wheel was pressed, the
mouse was moved upward.
vcScrollActionSBLineDown 1 The view was automatically scrolled to its
bottom limit
vcScrollActionSBLineLeft 0 The view was automatically scrolled to its
left limit
Example Code
Private Sub VcGantt1_OnScrollDiagramHor(ByVal newStartDate _
As Date, ByVal newEndDate As Date, _
ByVal scrollAction As _
VcGanttLib.ScrollActionEnum)
End Sub
OnSelectField
Event of VcGantt
This event occurs, if a cell in a table or a field in a box was selected. The
selection can be inhibited by setting the return status.
Data Type Explanation
Parameter:
editObject Object editiertes Objekt
Possible Values:
OnShowCurveNameInMenu
Event of VcGantt
This event occurs when the names of histogram curves defined by API
commands are displayed in a context menu. If you set the returnStatus to
vcRetStatFalse, the names of the histogram curves are not displayed in a
context menu.
Data Type Explanation
Parameter:
Histogram VcHistogram Histogram hit
Example Code
Private Sub VcGantt1_OnShowCurveNameInMenu(ByVal Histogram As _
VcGanttLib.VcHistogram,_
ByVal curveName As String, _
returnStatus As Variant)
returnStatus = retStatFalse
End Sub
OnShowDate
Event of VcGantt
This event occurs when the user moves the mouse inside the diagram or the
time scale area. The date of the mouse position is returned.
Data Type Explanation
Parameter:
dateVal Date/Time Date
Example Code
Private Sub VcGantt1_OnShowDate(ByVal dateVal As Date)
Text1.Text = dateVal
End Sub
OnShowInPlaceEditor
Event of VcGantt
By setting the return status to False this event can be inhibited so that your
own editor can be started at the coordinates passed.
Data Type Explanation
Parameter:
editObject Object Object edited
Possible Values:
vcObjTypeBox 15 object type box
vcObjTypeNodeInLegend 17 object type node in legend area
vcObjTypeNodeInTable 1 object type node in table area
vcObjTypeNone 0 no object
Example Code
Private Sub VcGantt1_OnShowInPlaceEditor(ByVal editObject As Object, _
ByVal editObjectType As VcGanttLib.VcObjectTypeEnum, _
ByVal fieldIndex As Long, ByVal objRectComplete As _
VcGanttLib.VcRect, ByVal objRectVisible As _
VcGanttLib.VcRect, ByVal fldRectComplete As _
VcGanttLib.VcRect, ByVal fldRectVisible As _
VcGanttLib.VcRect, returnStatus As Variant)
Case 13 'Employee
Combo1.Left = fldRectVisible.Left + VcGantt1.Left
Combo1.Top = fldRectVisible.Top + VcGantt1.Top
Combo1.Width = fldRectVisible.Width
Combo1.Text = editObject.DataField(fieldIndex)
Combo1.Visible = True
Combo1.SetFocus
End Select
Me.ScaleMode = oldScaleMode
End If
End Sub
OnStatusLineText
Event of VcGantt
Parameter:
text String Information text
Example Code
Private Sub VcGantt1_OnStatusLineText(ByVal Text As String, _
ByVal paneNo As Integer)
Text1.Text = Text
End Sub
OnSupplyTextEntry
Event of VcGantt
Parameter:
controlIndex TextEntryIndexEnum Text constant the contents of which is to
be replaced
Possible Values:
vcTXECtxmenArrowMode 2116 Text in context menu:Pointer mode
vcTXECtxmenBarGroupSepLine 2111 Constant not longer in use but still visible
in the API
vcTXECtxmenCancelGrouping 2108 Constant not longer in use but still visible
in the API
vcTXECtxmenCreateBoxMode 2135 Text in context menu: Mode: Create box
vcTXECtxmenCreateLinkMode 2118 Text in context menu: Mode: Create link
vcTXECtxmenCreateNodeMode 2117 Text in context menu: Mode: Create
node
vcTXECtxmenDateLineGrid 2106 Text in context menu: Grid
vcTXECtxmenDeleteCurvePoint 2131 Text in context menu: Delete curve
point
vcTXECtxmenDeleteLink 2102 Text in context menu: Delete link
vcTXECtxmenDeleteNode 2101 Text in context menu: Delete nodes
vcTXECtxmenEditGroup 2160 Text in context menu of the group: Edit
group data
vcTXECtxmenEditLink 2154 Text in context menu: Edit Link
vcTXECtxmenEditNode 2100 Text in context menu: Edit data
vcTXECtxmenFilePrint 2122 Text in context menu: Print
Constants of the dialogs Edit data, Edit group and Edit link, here illustrated by the Edit data
dialog
Constant of the tooltip text that appears on resizing the basic unit width of the numeric scale in
the histogram
Constants of the tooltip text that appears on resizing the time scale section width
Constants of the tooltip text that appears on modifying the start date of a time scale section
Constants of the tooltip text that appears on modifying the start date of a node
Constants of the tooltip text that appears on modifying the end date of a node
Example Code
Private Sub VcGantt1_OnSupplyTextEntry(ByVal controlIndex As _
VcGanttLib.TextEntryIndexEnum, _
TextEntry As String, _
returnStatus As Variant)
Select Case controlIndex
Case vcTXEPrctBtNext
TextEntry = "Next page"
Case vcTXEPrctBtPrevious
TextEntry = "Previous page"
Case vcTXEErrTxtInvalidNodePosition
TextEntry = " Invalid Node Position !"
End Select
End Sub
OnSupplyTextEntryAsVariant
Event of VcGantt
This event is identical with the event OnSupplyTextEntry except for the
parameters. It was necessary to implement this event because some languages
(e.g. VBScript) can use parameters by Reference (indicated by ) only if the
type of these parameters is VARIANT.
OnTableCaptionLClick
Event of VcGantt
This event occurs when the user clicks the left mouse button on a table
caption. The table object, the column number and the cursor position (x,y-
coordinates) are returned. If the diagram is not grouped or hierachically
sorted, the activities will be sorted according to the table column hit.
Data Type Explanation
Parameter:
table VcTable Table hit
Example Code
Private Sub VcGantt1_OnTableCaptionLClick(ByVal Table As _
VcGanttLib.VcTable, ByVal columnNumber _
As Long, ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
For i = 1 To 2
VcGantt1.Table.FormatCollection.FirstFormat.FieldBackgroundColor(i) = _
RGB(222, 211, 33)
Next i
End Sub
OnTableCaptionLDblClick
Event of VcGantt
This event occurs when the user double-clicks the left mouse button on a
table heading. The table object, the column number and the cursor position
(x,y-coordinates) are returned.
Data Type Explanation
Parameter:
table VcTable Table hit
Example Code
Private Sub VcGantt1_OnTableCaptionLDblClick(ByVal Table As _
VcGanttLib.VcTable, ByVal columnNumber _
As Long, ByVal x As Long, _
ByVal y As Long, _
returnStatus As Variant)
VcGantt1.Table.Visible = False
End Sub
OnTableCaptionRClick
Event of VcGantt
This event occurs when the user presses the right mouse button on a table
title. The table object, the column number and the cursor position (x,y-
coordinates) are returned. By setting the return status you can inhibit the
integrated context menu to pop up and replace it by a context menu of your
own at the coordinates delivered.
Data Type Explanation
Parameter:
table VcTable Table hit
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnTableCaptionRClick(ByVal Table As _
VcGanttLib.VcTable, ByVal columnNumber _
As Long, ByVal x As Long, _
ByVal y As Long, _
returnStatus As Variant)
End Sub
OnTableColumnWidth
Event of VcGantt
This event occurs when the user modifies the width of a table column. The
table, the index and the current width (as 1/100 mm) of the modified column
are returned. By setting the return status, you can inhibit the modification.
Data Type Explanation
Parameter:
table VcTable Table
Possible Values:
vcRetStatFalse 0 The width of the table column will not be modified.
vcRetStatOK 1 The width of the table column will be modified.
Example Code
Private Sub VcGantt1_OnTableColumnWidth(ByVal Table As _
VcGanttLib.VcTable, ByVal index As Integer, _
ByVal currentWidth As Long, _
returnStatus As Variant)
End Sub
OnTableColumnWidthModifyComplete
Event of VcGantt
This event occurs when the user has modified the width of a table column.
The table, the index and the current width (as 1/100 mm) of the modified
column are returned. By setting the return status, you can inhibit the
modification.
Data Type Explanation
Parameter:
table VcTable Table
Possible Values:
vcRetStatFalse 0 The width of the table column will not be modified.
vcRetStatOK 1 The width of the table column will be modified.
OnTableWidth
Event of VcGantt
This event occurs when the user modifies the width of the table. The table
and the modified table/diagram aspect ratio are returned. By setting the return
status you can inhibit the modification.
Data Type Explanation
Parameter:
table VcTable Table
tableWidthRatio Long Ratio of the table width to the width of the the total
diagram (including table)
Possible Values:
vcRetStatFalse 0 The width of the table will not be modified.
vcRetStatOK 1 The width of the table will be modified.
Example Code
Private Sub VcGantt1_OnTableWidth(ByVal Table As VcGanttLib.VcTable, _
ByVal tableWidthRatio As Long, _
returnStatus As Variant)
VcGantt1.TableDiagramWidthRatio = 30
End If
End Sub
OnTableWidthModifyEx
Event of VcGantt
This event occurs when the user modifies the width of the table. The table
and the modified table/diagram aspect ratio are returned. By setting the return
status you can inhibit the modification.
Parameter:
table VcTable Table
tableWidthRatio Double Ratio of the table width to the width of the the total
diagram (including table)
OnTimeScaleChangeComplete
Event of VcGantt
This event occurs after zoomng of the time scale was completed.
Data Type Explanation
Parameter:
timeScale VcTimeScale Time scale modified
OnTimeScaleEndModifyComplete
Event of VcGantt
This event occurs after the modification of the end date of the time scale was
completed.
Parameter:
newEndDate Date New end date
OnTimeScaleLClick
Event of VcGantt
This event occurs when the user clicks the left mouse button on the time
scale. The TimeScale object and the mouse position (x,y-coordinates) are
returned.
Data Type Explanation
Parameter:
timeScale VcTimeScale Time scale hit
Example Code
Private Sub VcGantt1_OnTimeScaleLClick(ByVal timeScale As _
VcGanttLib.VcTimeScale, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
End Sub
OnTimeScaleLDblClick
Event of VcGantt
This event occurs when the user double-clicks the left mouse button on the
time scale. The TimeScale object and the mouse position (x,y-coordinates)
are returned. By setting the return status the appearance of the integrated
dialog can be inhibited.
Data Type Explanation
Parameter:
timeScale VcTimeScale Time scale hit
Possible Values:
vcRetStatFalse 0 The Edit time scale dialog will not appear.
vcRetStatOK 1 The Edit time scale dialog will appear.
Example Code
Private Sub VcGantt1_OnTimeScaleLDblClick(ByVal timeScale As _
VcGanttLib.VcTimeScale, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
returnStatus = vcRetStatFalse
Exit Sub
CancelError:
returnStatus = vcRetStatFalse
End Sub
OnTimeScaleRClick
Event of VcGantt
This event occurs when the user clicks the right mouse button on the time
scale. The TimeScale object and the mouse position (x,y-coordinates) are
returned. At this position you can show your customized context menu. If
you set the returnStatus to vcRetStatNoPopup, the integrated context menu
will be revoked.
Parameter:
timeScale VcTimeScale Time scale hit
Possible Values:
vcRetStatNoPopup 4 The context menu will be inhibited.
vcRetStatOK 1 The context menu will appear.
Example Code
Private Sub VcGantt1_OnTimeScaleRClick(ByVal timeScale As _
VcGanttLib.VcTimeScale, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
returnStatus = vcRetStatNoPopup
End Sub
OnTimeScaleSectionRescaleCompleteEx
Event of VcGantt
This event occurs when the user has finished rescaling a time scale section.
The time scale object, the section index and the new basicUnitWidth are
passed.
Data Type Explanation
Parameter:
timeScale VcTimeScale Timescale
OnTimeScaleSectionRescaleEx
Event of VcGantt
This event occurs when the user rescales a section of the time scale. The
TimeScale object, the section index and the current BasicUnitWidth are
returned. By setting the return status you can inhibit the modification.
Data Type Explanation
Parameter:
timeScale VcTimeScale Time scale
Example Code
Private Sub VcGantt1_OnTimeScaleSectionRescaleEx(ByVal timeScale As _
VcGanttLib.VcTimeScale, _
ByVal sectionIndex As Integer, _
ByVal newBasicUnitWidth As Long, _
returnStatus As Variant)
End Sub
OnTimeScaleSectionStartModify
Event of VcGantt
This event occurs when the user modifies the start date of a section
interactively. The TimeScale object, the section index and the current start
date are returned.
The data passed by this event can be read, but must not be modified. For
modifying them please use OnTimeScaleSectionStartModifyComplete.
Parameter:
timeScale VcTimeScale Time scale
Possible Values:
vcRetStatFalse 0 The modification will be revoked.
vcRetStatOK 1 The modification will be accepted.
Example Code
Private Sub VcGantt1_OnTimeScaleSectionStartModify(ByVal timeScale As _
VcGanttLib.VcTimeScale, _
ByVal sectionIndex As Integer, _
ByVal newStartDate As Date, _
returnStatus As Variant)
If MsgBox("Do you want to change the start of section No. " & sectionIndex _
& " to " & newStartDate & "?", vbOKCancel) _
= vbCancel Then
returnStatus = vcRetStatFalse
End If
End Sub
OnTimeScaleStartModifyComplete
Event of VcGantt
This event occurs after the modification of the start date of the time scale was
completed.
Data Type Explanation
Parameter:
newStartDate Date New start date
OnToolTipText
Event of VcGantt
This event only occurs when the VcGantt property ShowToolTip is set to
True or when the check box Show tooltip on the General property page is
activated. You can use this event for displaying information on the object hit
by tooltip texts. The event occurs when the cursor moves on a VcGantt
object. The event returns the object, the object type and the coordinates of the
mouse position. By setting the returnStatus to vcRetStatFalse you can
revoke the tooltip.
In case of a calendar grid, a tool tip text will only be retrieved if the calender
grid could be identified; i.e. if the calendar grid property Identifiable had
been set to True.
Data Type Explanation
Parameter:
hitObject Object Object hit
Possible Values:
vcObjTypeBox 15 object type box
vcObjTypeCalendarGrid 18 object type calendar grid
vcObjTypeCurve 12 object type curve
vcObjTypeDateLine 9 object type date line
vcObjTypeGroup 7 object type group
vcObjTypeGroupInDiagram 11 object type group in diagram area
vcObjTypeGroupInTable 7 object type group in table area
vcObjTypeHistogram 13 object type histogram
vcObjTypeLayer 8 object type layer
vcObjTypeLinkCollection 3 object type link collection
vcObjTypeNodeInDiagram 2 object type node in diagram area
vcObjTypeNodeInLegend 17 object type node in legend area
vcObjTypeNodeInTable 1 object type node in table area
vcObjTypeNone 0 no object
vcObjTypeNumericScale 10 object type numeric scale
vcObjTypeSummaryNode 14 object type summary bar
vcObjTypeTable 4 object type table
Example Code
Private Sub VcGantt1_OnToolTipText(ByVal hitObject As Object, _
ByVal hitObjectType As _
VcGanttLib.VcObjectTypeEnum, ByVal x As Long, _
ByVal y As Long, ToolTipText As String, _
returnStatus As Variant)
Case Else
End Select
End Sub
OnToolTipTextAsVariant
Event of VcGantt
This event is identical with the event OnToolTipText except for the
parameters. It was necessary to implement this event because some languages
(e.g. VBScript) can use parameters by Reference (indicated by ) only if the
type of these parameters is VARIANT.
Example Code
Private Sub VcGantt1_OnToolTipTextAsVariant(ByVal hitObject As Object, ByVal
hitObjectType As VcGanttLib.VcObjectTypeEnum, ByVal x As Long, ByVal y As Long,
ToolTipText As Variant, returnStatus As Variant)
Select Case hitObjectType
Case VcObjectTypeEnum.vcObjTypeNodeInDiagram
ToolTipText = hitObject.DataField(0)
End Select
End Sub
OnViewComponentsSizeModifyComplete
Event of VcGantt
This event occurs when at run time the size of a graphical element of the
VARCHART ActiveX control (time scale, diagram, histogram, table, table
caption etc.) was modified. To react to the event by API, you need to retrieve
the position and the size of all graphical elements of the VARCHART
ActiveX control.
Note:
Parameter:
(no parameter)
Example Code
Private Sub VcGantt1_OnViewComponentsSizeModifyComplete()
Dim x As Long
Dim y As Long
Dim width As Long
Dim height As Long
Dim scMod As Long
scMod = ScaleMode
ScaleMode = vbPixels
VcGantt1.GetViewComponentSize vcHistogramVerScaleComponent, x, y, _
width, height
OnWorldViewClosed
Event of VcGantt
Parameter:
(no parameter)
Example Code
Private Sub VcGantt1_OnWorldViewClosed()
MsgBox "Do you want to close the worldview window?", vbOKCancel
End Sub
OnZoomFactorModifyComplete
Event of VcGantt
This events occurs if the user modified the size of the rectangle in the world
view or if he zoomed marked objects. You can zoom smoothly by keeping
the Ctrl key pressed while turning the mouse wheel, or in discrete steps
while using the Plus or Minus keys in the number pad.
Data Type Explanation
Parameter:
(no parameter)
Example Code
Private Sub VcGantt1_OnZoomFactorModifyComplete()
MsgBox "Zoomfactor: " & VcGantt1.ZoomFactor
End Sub
7.38 VcGroup
A group contains all nodes that have the same value in the grouping field.
This value can be retrieved as group name. The nodes that form a group can
be accessed by the NodeCollection property.
Properties
• AllNodesInOneRow
• Collapsed
• DataField
• GroupingLevel
• ID
• MarkGroup
• Name
• NodeCollection
• NodesArrangedOptimized
• RowsBelowCollapsed
• SubGroups
• SuperGroup
• Visible
Methods
• DataRecord
• DeleteGroup
• RelatedDataRecord
• ReOptimizeNodes
• UpdateGroup
Properties
AllNodesInOneRow
Property of VcGroup
This property lets you set or retrieve whether (True) or not (False) the node
objects of the group are positioned the same row.
Data Type Explanation
Property value Boolean All nodes of the group are/are not in the same row
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
group.AllNodesInOneRow = True
Collapsed
Property of VcGroup
This property lets you set or retrieve, whether (True) or not (False) a group is
collapsed.
Data Type Explanation
Example Code
Private Sub VcGantt1_OnGroupLClick(ByVal group As VcGanttLib.VcGroup, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
End Sub
DataField
Property of VcGroup
This property lets you set or retrieve the contents of a DataField of the group
record. The group record is copy of the node record of the first node added to
the group. The data field is referred to by its field index. To update the group,
the UpdateGroup method needs to be invoked.
Data Type Explanation
Parameter:
index Integer Index of the data field
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
Dim nodeCltn As VcNodeCollection
Dim node As VcNode
group.UpdateGroup
Next group
GroupingLevel
Read Only Property of VcGroup
This property lets you enquire the grouping level of the group, if there are
several levels of grouping. At maximum, 25 grouping levels are possible.
Data Type Explanation
Example Code
Dim group As VcGroup
Dim superGroup As VcGroup
ID
Read Only Property of VcGroup
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
Dim groupName As String
Set groupCltn = VcGantt1.GroupCollection
Set group = groupCltn.FirstGroup
groupID = group.ID
MsgBox group.ID
MarkGroup
Property of VcGroup
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcNode
Set nodeCltn = VcGantt1.nodeCollection
nodeCltn.SelectNodes (vcSelected)
Name
Read Only Property of VcGroup
This property lets you retrieve the name of a group (= the value of the
grouping field GroupField).
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
Dim groupName As String
groupName = group.Name
NodeCollection
Read Only Property of VcGroup
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
Dim nodeCltn As VcNodeCollection
NodesArrangedOptimized
Property of VcGroup
This property lets you set or retrieve whether (True) the node layout is
optimized or if nodes overlap (False). The latter case may only occur when
the AllNodesInOne Row property was set to True.
Data Type Explanation
Property value Boolean The node layout is/is not at its optimum
Example Code
Dim group As VcGroup
For Each Group In VcGantt1.GroupCollection
group.AllNodesInOneRow = True
group.NodesArrangedOptimized = True
Next
RowsBelowCollapsed
Property of VcGroup
This property applies to multi-level grouping (n levels), that is, to the levels
from no.1 to (n-1). If you have chosen for the group all nodes in one row,
setting this property to True will collapse only the subgroups of the selected
group. If instead you collapse the group by the Collapsed property, in
addition groups that do not belong to a subgroup will be collapsed as well.
Data Type Explanation
Property value Boolean Rows below the top row are/are not collapsed
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
group.RowsBelowCollapsed = True
SubGroups
Read Only Property of VcGroup
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
Dim subGroupCltn As VcGroupCollection
SuperGroup
Read Only Property of VcGroup
Example Code
Dim group As VcGroup
Dim superGroup As VcGroup
Visible
Property of VcGroup
This property lets you set or retrieve whether (True) or not (False) this group
is visible.
Data Type Explanation
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
group.Visible = False
Methods
DataRecord
Method of VcGroup
This property lets you retrieve the group as a data record object. The
properties of the data record object give access to the corresponding data
table and the data table collection.
DeleteGroup
Method of VcGroup
This method lets you delete a group. Deleting a group is only possible when
it doesn´t contain any activity. Possibly you have to delete all activities of the
group before you can delete the group.
Data Type Explanation
Return value Boolean Group was (True) / was not (False) deleted
successfully
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
Dim nodeCltn As VcNodeCollection
Dim node As VcNode
group.DeleteGroup
RelatedDataRecord
Method of VcGroup
This method lets you retrieve a data record from a data table that is related to
the group data table. The index passed by the parameter denotes the field in
the data record that holds the key of the related data record.
Data Type Explanation
Parameter:
index Integer Index of data field that holds the key
ReOptimizeNodes
Method of VcGroup
UpdateGroup
Method of VcGroup
This method lets you update a group after having changed a data field by the
DataField property.
Data Type Explanation
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
Dim nodeCltn As VcNodeCollection
Dim node As VcNode
group.DataField(3) = nodeCltn.FirstNode.DataField(3)
group.UpdateGroup
7.39 VcGroupCollection
Properties
• _NewEnum
• Count
Methods
• FirstGroup
• GroupByName
• NextGroup
• SelectGroups
Properties
_NewEnum
Read Only Property of VcGroupCollection
Example Code
Dim group As VcGroup
Count
Read Only Property of VcGroupCollection
This property lets you retrieve the number of groups in the group collection.
Data Type Explanation
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
Dim numberOfGroups As Integer
Methods
FirstGroup
Method of VcGroupCollection
This method can be used to access the initial value, i.e. the first group of a
group collection, and then to continue in a forward iteration loop by the
method NextGroup for the groups following. If there is no group in the
group collection, a none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
GroupByName
Method of VcGroupCollection
By this method you can get a group by its name. If a group of the specified
name does not exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
Rückgabewert VcGroup Group
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
NextGroup
Method of VcGroupCollection
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
SelectGroups
Method of VcGroupCollection
This method lets you specify the groups that the group collection is to
contain.
Data Type Explanation
Parameter:
groupSelType GroupSelectionTypeEnum Type of group to be selected
Possible Values:
vcAllGroups 0 All groups selected
vcCollapsedGroups 1 Collapsed groups selected
vcExpandedGroups 2 Expanded groups selected
vcInvisibleGroups 5 Invisible groups selected
vcSelectedGroups 3 Selected groups selected
vcVisibleGroups 4 Visible groups selected
Example Code
Dim groupCltn As VcGroupCollection
7.40 VcGroupLevelLayout
Properties
• AllNodesInOneRow
• AllowVerticalGroupMovementViaDiagram
• AllowVerticalGroupMovementViaTable
• CalendarGridName
• CalendarGridsWithChildGroups
• CalendarNameDataFieldIndex
• Collapsed
• DateLineGridName
• DateLineGridsWithChildGroups
• GroupDataFieldIndex
• Level
• ModificationsAllowed
• Name
• NodesArrangedOptimized
• OptimizedNodesSortDataFieldIndex
• OptimizedNodesSortOrder
• OverlaidNodesSortDataFieldIndex
• OverlaidNodesSortOrder
• PagebreakMode
• RowBackColorAsARGB
• RowBackColorDataFieldIndex
• RowBackColorMapName
• RowPattern
• RowPatternColorAsARGB
• RowPatternColorDataFieldIndex
• RowPatternColorMapName
• RowPatternDataFieldIndex
• RowPatternMapName
• SeparationLineColor
• SeparationLineColorDataFieldIndex
• SeparationLineColorMapName
• SeparationLineThickness
• SeparationLineType
• ShowCalendarGrids
• ShowDateLineGrids
• ShowGroupNodes
• ShowSeparationLines
• ShowSeparationLinesAtTop
• SortDataFieldIndex
• SortOrder
• Specification
• SummaryBarsVisible
• Visible
Properties
AllNodesInOneRow
Property of VcGroupLevelLayout
This property lets you set or retrieve whether (True) or not (False) the node
objects of the group of this level are positioned the same row.
Data Type Explanation
Property value Boolean All nodes of the group are/are not in the same row
Example Code
Dim groupLevelLayoutCltn As VcGroupLevelLayoutCollection
Dim groupLevelLayout As VcGroupLevelLayout
groupLevelLayout.AllNodesInOneRow = True
AllowVerticalGroupMovementViaDiagram
Property of VcGroupLevelLayout
This property lets you set or retrieve whether groups are allowed to be moved
vertically in the diagram. This property also can be set in the Grouping
dialog.
Data Type Explanation
AllowVerticalGroupMovementViaTable
Property of VcGroupLevelLayout
This property lets you set or retrieve whether groups are allowed to be moved
vertically in the table. This property also can be set in the Grouping dialog.
Data Type Explanation
CalendarGridName
Property of VcGroupLevelLayout
This property lets you set or retrieve the name of the calendar grid for this
group level layout. You can also set this property in the Grouping dialog.
Data Type Explanation
Parameter:
Rückgabewert String Name of the calendar grid
CalendarGridsWithChildGroups
Property of VcGroupLevelLayout
This property lets you set or retrieve whether calendar grids are also
displayed for subgroups. You can also set this property in the Grouping
dialog.
Data Type Explanation
Property value Boolean Calendar grid for subgroups are/are not displayed
CalendarNameDataFieldIndex
Property of VcGroupLevelLayout
This property lets you set or retrieve the index of the data field for storing the
name of the calendar to apply to the group level layout. This is only possible
as long as no data was loaded.
Data Type Explanation
Property value Long Index of the data field which contains the name of
the calendar
Collapsed
Property of VcGroupLevelLayout
This property lets you set or retrieve, whether (True) or not (False) a group
level is collapsed.
Data Type Explanation
Example Code
Private Sub VcGantt1_OnGroupLClick(ByVal group As VcGanttLib.VcGroup, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
End Sub
DateLineGridName
Property of VcGroupLevelLayout
This property lets you set or retrieve the name of the date line grid for this
group level layout. You can also set this property in the Grouping dialog.
Data Type Explanation
DateLineGridsWithChildGroups
Property of VcGroupLevelLayout
This property lets you set or retrieve whether the date line grids are also
displayed for subgroups. You can also set this property in the Grouping
dialog.
Data Type Explanation
Property value Boolean Date line grids for subgroups are/are not displayed
GroupDataFieldIndex
Property of VcGroupLevelLayout
This property lets you set or retrieve the data field index used for grouping of
this VcGroupLevelLayout object.
Data Type Explanation
Level
Read Only Property of VcGroupLevelLayout
This property lets you enquire the grouping level of this group level layout.
At maximum, 25 grouping levels are possible.
Data Type Explanation
ModificationsAllowed
Property of VcGroupLevelLayout
This property lets you specify whether the user can collapse expanded groups
of this level and vice versa. The user can collapse/expand groups by double-
clicking on the group heading in the table section, by clicking on the minus
or plus sign next to the group heading or by the context menu for groups.
This property also can be set in the Grouping dialog.
Data Type Explanation
Example Code
VcGroupLevelLayout.ModificationsAllowed(0) = False
Name
Property of VcGroupLevelLayout
This property lets you retrieve the name of a group level layout.
Data Type Explanation
Example Code
Dim groupCltn As VcGroupCollection
Dim group As VcGroup
Dim groupName As String
groupName = group.Name
NodesArrangedOptimized
Property of VcGroupLevelLayout
This property lets you set or retrieve whether (True) the node layout on this
group level is optimized or if nodes overlap (False). The AllNodesInOne
Row property has to be set to True in both cases.
Data Type Explanation
Property value Boolean The node layout is/is not at its optimum
Example Code
group.LevelLayout.NodesArrangedOptimized = True
OptimizedNodesSortDataFieldIndex
Property of VcGroupLevelLayout
This property lets you set or retrieve the index of a data field that contains the
sorting criterion (the drawing priority) for the display of several nodes in a
single row. Setting this property only makes sense if the property Nodes-
ArrangedOptimized was set to True. This property also can be set in the
Grouping dialog.
Data Type Explanation
Property value Long Index of the data field that holds the sorting criterion
OptimizedNodesSortOrder
Property of VcGroupLevelLayout
This property lets you set or retrieve the sorting direction of the sorting
criterion, which was selected by the property OptimizedNodesSortData-
FieldIndex. Setting this property only makes sense if the property Nodes-
ArrangedOptimized was set to True. This property also can be set in the
Grouping dialog.
Data Type Explanation
Possible Values:
vcAscending 1 ascending order
vcDescending 2 descending order
OverlaidNodesSortDataFieldIndex
Property of VcGroupLevelLayout
This property lets you set or retrieve the index of a data field that contains the
sorting criterion (the drawing priority) for the display of several nodes in a
single row. Setting this property only makes sense if the property Nodes-
ArrangedOptimized was set to False. This property also can be set in the
Grouping dialog.
Property value Long Index of the data field that holds the sorting criterion
OverlaidNodesSortOrder
Property of VcGroupLevelLayout
This property lets you set or retrieve the sorting direction of the sorting
criterion, which was selected by the property OverlaidNodesSortDataField-
Index. Setting this property only makes sense if the property Nodes-
ArrangedOptimized was set to False. This property also can be set in the
Grouping dialog.
Data Type Explanation
Possible Values:
vcAscending 1 ascending order
vcDescending 2 descending order
PagebreakMode
Property of VcGroupLevelLayout
This property lets you set or retrieve whether and when page breaks after
groups are to be carried out. This property also can be set in the Grouping
dialog.
Data Type Explanation
Possible Values:
vcPagebreakAfterEachGroup 1 Pagebreak after each group
vcPagebreakNone 0 No pagebreak
vcPagebreakOnPageFull 2 Pagebreak if following group wouldn't fit on
page completely
RowBackColorAsARGB
Property of VcGroupLevelLayout
This property lets you set or retrieve the background color of the group title
row. The default color is white.
Data Type Explanation
({0...255},{0...255},{0...255},{0...255})
Example Code
Dim groupLevelLayoutCltn As VcGroupLevelLayoutCollection
Dim groupLevelLayout As VcGroupLevelLayout
RowBackColorDataFieldIndex
Property of VcGroupLevelLayout
This property lets you set or retrieve the data field index to be used with a
color map specified by the property RowBackColorMapName. If you set
this property to -1, no map will be used.
Data Type Explanation
RowBackColorMapName
Property of VcGroupLevelLayout
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. If a map name and
additionally a data field index is specified in the property
RowBackColorDataFieldIndex, then the background color is controlled by
the map. If no data field entry applies, the background color that is specified
in the property RowBackColor will be used.
Data Type Explanation
RowPattern
Read Only Property of VcGroupLevelLayout
This property lets you set or retrieve the background pattern of the group title
row of this group level.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
RowPatternColorAsARGB
Property of VcGroupLevelLayout
This property lets you set or retrieve the pattern color of the group title row
of this group level. Color values have a transparency or alpha value, followed
by a value for a red, a blue and a green partition (ARGB). The values range
between 0..255. An alpha value of 0 equals complete transparency, whereas
255 represents a completely solid color. When casting an RGB value on an
ARGB value, an alpha value of 255 has to be added.
({0...255},{0...255},{0...255},{0...255})
Example Code
Dim groupLevelLayout As VcGroupLevelLayout
Set groupLevelLayout =
VcGantt1.GroupLevelLayoutCollection.GroupLevelLayoutByIndex(0)
groupLevelLayout.RowPatternColorAsARGB = &h88FF0A06
RowPatternColorDataFieldIndex
Property of VcGroupLevelLayout
This property lets you set or retrieve the data field index that has to be
specified if the property RowPatternColorMapName is used. If you set this
property to -1, no map will be used.
Data Type Explanation
RowPatternColorMapName
Property of VcGroupLevelLayout
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. Only if a map name and a
data field index are specified in the property
RowPatternColorDataFieldIndex, the pattern color is controlled by the
map. If no data field entry applies, the pattern color of the group title row that
is specified in the property RowPatternColor will be used.
Data Type Explanation
RowPatternDataFieldIndex
Property of VcGroupLevelLayout
This property lets you set or retrieve the data field index to be used together
with the property RowPatternMapName. If you set this property to -1, no
map will be used.
Data Type Explanation
RowPatternMapName
Property of VcGroupLevelLayout
This property lets you set or retrieve the name of a pattern map (type
vcPatternMap). If set to "", no map will be used. Only if a map name and
additionally a data field index are specified in the property
RowPatternDataFieldIndex, the pattern is controlled by the map. If no data
field entry applies, the pattern of the layer that is specified in the property
RowPattern will be used.
Data Type Explanation
SeparationLineColor
Property of VcGroupLevelLayout
This property lets you set or retrieve the color of the separation lines of the
the grouping levels.
This property also can be set in the Grouping dialog, section Groupwise,
field Separation Line.
Data Type Explanation
({0...255},{0...255},{0...255})
SeparationLineColorDataFieldIndex
Property of VcGroupLevelLayout
This property lets you set or retrieve the data field index to be used with a
map specified by the property SeparationLineColorMapName. If you set
this property to -1, no map will be used.
Data Type Explanation
SeparationLineColorMapName
Property of VcGroupLevelLayout
This property lets you set or retrieve the name of a map for the separation
line color. If set to "" or if the property GroupLevelLayoutLineColorData-
FieldIndex is set to -1, then no map will be used.
Data Type Explanation
SeparationLineThickness
Property of VcGroupLevelLayout
This property lets you set or retrieve the line thickness of a separation line
between grouping levels.
If you set this property to values between 1 and 4, an absolute line thickness
is defined in pixels. Irrespective of the zoom factor a line will always show
the same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
Data Type Explanation
SeparationLineType
Property of VcGroupLevelLayout
This property lets you set or retrieve the line type of a date line.
This property also can be set in the Grouping dialog, section Groupwise,
field Separation Line.
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
ShowCalendarGrids
Property of VcGroupLevelLayout
This property lets you set or retrieve whether workfree periods are marked by
background color and/or a pattern. This property also can be set in the
Grouping dialog.
Example Code
End Sub
ShowDateLineGrids
Property of VcGroupLevelLayout
This property lets you set or retrieve whether a vertical date grid is displayed.
This property also can be set in the Grouping dialog.
Data Type Explanation
Example Code
End Sub
ShowGroupNodes
Property of VcGroupLevelLayout
This property lets you set or retrieve whether the group nodes of this level are
displayed. This property also can be set in the Grouping dialog.
Data Type Explanation
ShowSeparationLines
Property of VcGroupLevelLayout
This property lets you set or retrieve whether separation lines are to be
displayed between grouping levels.
This property also can be set in the Groupwise section of the Grouping
dialog.
ShowSeparationLinesAtTop
Property of VcGroupLevelLayout
This property lets you set or retrieve whether separation lines between groups
are to be displayed above the group (or below).
This property also can be set in the Groupwise section of the Grouping
dialog.
Data Type Explanation
SortDataFieldIndex
Property of VcGroupLevelLayout
This property lets you set/retrieve the data field index the groups of this
grouping level are sorted by. This property also can be set in the Grouping
dialog.
Data Type Explanation
Parameter:
sortlevel Integer Sorting level
Property value Long Index of the data field that holds the sorting criterion
SortOrder
Property of VcGroupLevelLayout
This property lets you specify the sorting order of groups (ascending or
descending). The property SortDataFieldIndex lets you specify the field the
groups are sorted by. This property also can be set in the Grouping dialog.
Data Type Explanation
Parameter:
sortLevel Integer Sorting level
Possible Values:
vcAscending 1 ascending order
vcDescending 2 descending order
Example Code
VcGantt1.VcGroupLevelLayout.SortOrderField (0) = 12
VcGantt1.VcGroupLevelLayout (0) = vcAscending
VcGantt1.VcGroupLevelLayout
Specification
Read Only Property of VcGroupLevelLayout
This property lets you retrieve the specification of a group level layout. A
specification is a string that contains legible ASCII characters from 32 to 127
only, so it can be stored without problems to text files or data bases. This
allows for persistency. A specification can be used to create a group level
layout by the method VcGroupLevelLayoutCollection.AddBy-
Specification.
Data Type Explanation
SummaryBarsVisible
Property of VcGroupLevelLayout
This property lets you set or retrieve whether summary bars are be displayed
or not.
This property also can be set in the Groupwise section of the Grouping
dialog.
Data Type Explanation
Example Code
VcGroupLevelLayout.SummaryBarsVisible (-1) = False
Visible
Property of VcGroupLevelLayout
This property lets you set or retrieve whether (True) or not (False) this group
level is visible.
Data Type Explanation
Example Code
Dim groupLevelLayoutCltn As VcGroupLevelLayoutCollection
Dim groupLevelLayout As VcGroupLevelLayout
groupLevelLayout.Visible = False
7.41 VcGroupLevelLayoutCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• Copy
• FirstGroupLevelLayout
• GroupLevelLayoutByIndex
• GroupLevelLayoutByName
• NextGroupLevelLayout
• Remove
• Update
Properties
_NewEnum
Read Only Property of VcGroupLevelLayoutCollection
Example Code
Dim groupLevelLayout As VcGroupLevelLayout
Count
Read Only Property of VcGroupLevelLayoutCollection
This property lets you retrieve the number of group level layouts in the
GroupLevelLayoutCollection object.
Data Type Explanation
Example Code
Dim groupLevelLayoutCltn As Vc GroupLevelLayoutCollection
Dim numberOfGroupLevelLayouts As Long
Set groupLevelLayoutCltn = VcGantt1.GroupLevelLayoutCollection
numberOfGroupLevelLayouts = groupLevelLayoutCltn.Count
Methods
Add
Method of VcGroupLevelLayoutCollection
This method lets you create a group level layout as a member of the
GroupLevelLayoutCollection. If the name was not used before, the new
group level layout object will be returned. Otherwise "Nothing" (in Visual
Basic) or "0" (other languages) will be returned.
Data Type Explanation
Parameter:
groupLevelLayoutName String Name of group level layout
Example Code
Set newGroupLevelLayout =
VcGantt1.GroupLevelLayoutCollection.Add("GroupingLevel1")
AddBySpecification
Method of VcGroupLevelLayoutCollection
This method lets you create a group level layout by using a group level layout
specification. This way of creating allows group level layout objects to
become persistent. The specification of a group level layout can be saved and
re-loaded (see VcGroupLevelLayout property Specification). In a subsequent
session the group level layout can be created again from the specification and
is identified by its name.
Data Type Explanation
Parameter:
Specification String Group level layout specification
Copy
Method of VcGroupLevelLayoutCollection
By this method you can copy a group level layout. If the group level layout
that is to be copied exists, and if the name for the new group level layout
does not yet exist, the new group level layout object is returned. Otherwise
"Nothing" (in Visual Basic) or "0" (other languages) will be returned.
Data Type Explanation
Parameter:
groupLevelLayoutName String Name of the group level layout to be copied
Example Code
Dim groupLevelLayoutCltn As VcGroupLevelLayoutCollection
Dim groupLevelLayout As VcGroupLevelLayout
Set groupLevelLayoutCltn = VcGantt1.GroupLevelLayoutCollection
Set groupLevelLayout = groupLevelLayoutCltn.Copy("CurrentGroupLevelLayout",
"NewGroupLevelLayout")
FirstGroupLevelLayout
Method of VcGroupLevelLayoutCollection
This method can be used to access the initial value, i.e. the first group level
layout of a group level layout collection and then to continue in a forward
iteration loop by the method NextGroupLevelLayout for the group level
layouts following. If there is no group level layout in the
GroupLevelLayoutCollection, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Example Code
Dim groupLevelLayoutCltn As VcGroupLevelLayoutCollection
Dim groupLevelLayout As VcGroupLevelLayout
Set groupLevelLayoutCltn = VcGantt1.GroupLevelLayoutCollection
groupLevelLayoutCltn.SelectgroupLevelLayouts (vcAnyGroupLevelLayout)
Set groupLevelLayout = groupLevelLayoutCltn.FirstGroupLevelLayout
GroupLevelLayoutByIndex
Method of VcGroupLevelLayoutCollection
This method lets you access a certain group level layout by its index. If a
group level layout of the specified index does not exist, a none object will be
returned (Nothing in Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the group level layout
Example Code
Dim groupLevelLayoutCltn As VcGroupLevelLayout
Dim dateLine As VcDateLine
Set groupLevelLayoutCltn = VcGantt1.GroupLevelLayout
Set groupLevelLayout = groupLevelLayoutCltn.GroupLevelLayoutByIndex(2)
MsgBox groupLevelLayout.Name
GroupLevelLayoutByName
Method of VcGroupLevelLayoutCollection
This method is used to access a group level layout by its name. If a group
level layout of the specified name does not exist, a none object will be
returned (Nothing in Visual Basic).
Data Type Explanation
Parameter:
groupLevelLayoutName String Name of the group level layout
Example Code
Dim groupLevelLayoutCltn As VcGroupLevelLayoutCollection
Dim groupLevelLayout As VcGroupLevelLayout
Set groupLevelLayoutCltn = VcGantt1.GroupLevelLayoutCollection
Set groupLevelLayout = groupLevelLayoutCltn.GroupLevelLayoutByName("Grouping
level A")
NextGroupLevelLayout
Method of VcGroupLevelLayoutCollection
Example Code
Dim groupLevelLayoutCltn As VcGroupLevelLayoutCollection
Dim groupLevelLayout As VcGroupLevelLayout
Set groupLevelLayoutCltn = VcGantt1.GroupLevelLayoutCollection
Set groupLevelLayout = groupLevelLayoutrCltn.FirstGroupLevelLayout
While Not groupLevelLayout Is Nothing
Listbox.AddItem groupLevelLayout.Name
Set groupLevelLayout = groupLevelLayoutCltn.NextGroupLevelLayout
Wend
Remove
Method of VcGroupLevelLayoutCollection
This method lets you delete a group level layouts. If the group level layout is
used in another object, it cannot be deleted. Then False will be returned,
otherwise True.
Data Type Explanation
Parameter:
groupLevelLayoutName String Group level layout name
Example Code
Dim groupLevelLayoutCltn As VcGroupLevelLayoutCollection
Dim groupLevelLayout As VcGroupLevelLayout
Set groupLevelLayoutCltn = VcGantt1.GroupLevelLayoutCollection
Set groupLevelLayout = groupLevelLayoutCltn.FormatByIndex(1)
groupLevelLayoutCltn.Remove (groupLevelLayout.Name)
Update
Method of VcGroupLevelLayoutCollection
This method has to be used when group level layout modifications have been
carried out. The method Update updates all objects that are concerned by the
group level layout you have edited. You should call this method at the end of
the code that defines the group level layouts and the group level layout
collection. Otherwise the update will be processed before all group level
layout definitions are processed.
Data Type Explanation
Example Code
Dim groupLevelLayout As VcGroupLevelLayout
Set groupLevelLayout =
VcGantt1.GroupLevelLayout.Collection.GroupLevelLayoutByName("Grouping Level 3")
groupLevelLayout.Update
7.42 VcHierarchyLevelLayout
Properties
• AllNodesInOneRow
• Collapsed
• HierarchyDataFieldIndex
• LevelMaximumForPagebreaks
• NodesArrangedOptimized
• NodeSeparationLinesVisible
• PagebreakMode
• SeparationLineColor
• SeparationLineThickness
• SeparationLineType
• ShowSeparationLines
• SummaryBarsVisible
Properties
AllNodesInOneRow
Property of VcHierarchyLevelLayout
This property lets you set or retrieve whether (True) or not (False) the node
objects of the group of this level are positioned in the same row.
Data Type Explanation
Property value Boolean All nodes of the group are/are not in the same row
Example Code
Dim hierarchyLevelLayoutCltn As VcHierarchyLevelLayoutCollection
Dim hierarchyLevelLayout As VcHierarchyLevelLayout
Se thierarchyLevelLayoutCltn = VcGantt1.HierarchyLevelLayoutCollection
Set hierarchyLevelLayout =
hierarchyLevelLayoutCltn.HierarchyLevelLayoutByName("3")
hierarchyLevelLayout.AllNodesInOneRow = True
Collapsed
Property of VcHierarchyLevelLayout
This property lets you set or retrieve, whether (True) or not (False) all groups
are collapsed.
Data Type Explanation
HierarchyDataFieldIndex
Property of VcHierarchyLevelLayout
This property lets you set/retrieve the data field index used for grouping of
this VcGroupLevelLayout object
Data Type Explanation
Property value Long Data field which defines the hierarchical order of
activities
LevelMaximumForPagebreaks
Property of VcHierarchyLevelLayout
This property lets you set or retrieve up to which hierarchy level page breaks
are to be carried out.
If this property is set to the default -1 the page breaks are carried out on each
hierarchy level.
Data Type Explanation
NodesArrangedOptimized
Property of VcHierarchyLevelLayout
This property lets you set or retrieve whether (True) the node layout on this
group level is optimized or if nodes overlap (False). The AllNodesInOne
Row property has to be set to True in both cases.
Data Type Explanation
Property value Boolean The node layout is/is not at its optimum
Example Code
group.LevelLayout.NodesArrangedOptimized = True
NodeSeparationLinesVisible
Read Only Property of VcHierarchyLevelLayout
This property lets you set or retrieve whether or not separation lines are to be
displayed.
This property can also be set in the Node section of the Grouping dialog.
Data Type Explanation
Example Code
VcHierarchyLevelLayout.NodeSeparationLinesVisible (-1) = False
PagebreakMode
Property of VcHierarchyLevelLayout
This property lets you set or retrieve whether and when page breaks after
groups are to be carried out. This property also can be set in the Grouping
dialog.
Data Type Explanation
Possible Values:
vcPagebreakAfterEachGroup 1 Pagebreak after each group
vcPagebreakNone 0 No pagebreak
vcPagebreakOnPageFull 2 Pagebreak if following group wouldn't fit on
page completely
SeparationLineColor
Property of VcHierarchyLevelLayout
This property lets you set or retrieve the color of the separation lines of the
the hierarchy levels.
This property also can be set in the Hierarchy section of the Grouping by
clicking on next to Separation Line.
Data Type Explanation
({0...255},{0...255},{0...255})
Example Code
VcHierarchyLevelLayout.SeparationLineColor = RGB(255, 204, 204)
SeparationLineThickness
Read Only Property of VcHierarchyLevelLayout
This property lets you set or retrieve the line thickness between hierarchy
levels.
If you set this property to values between 1 and 4, an absolute line thickness
is defined in pixels. Irrespective of the zoom factor a line will always show
the same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
This property also can be set in the Hierarchy section of the Grouping by
clicking on next to Separation Line.
Data Type Explanation
SeparationLineType
Read Only Property of VcHierarchyLevelLayout
This property lets you set or retrieve the line type of a date line.
This property also can be set in the Hierarchy section of the Grouping by
clicking on next Separation Line.
Data Type Explanation
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
ShowSeparationLines
Read Only Property of VcHierarchyLevelLayout
This property lets you set or retrieve whether separation lines are to be
displayed between hierarchy levels.
This property also can be set in the Hierarchy section of the Grouping
dialog.
Data Type Explanation
Example Code
VcHierarchyLevelLayout.ShowSeparationLines = True
SummaryBarsVisible
Read Only Property of VcHierarchyLevelLayout
This property lets you set or retrieve whether or not summary bars are to be
displayed.
This property also can be set in the Hierarchy section of the Grouping
dialog.
Example Code
VcHierarchyLevelLayout.SummaryBarsVisible (-1) = False
7.43 VcHistogram
Properties
• CalendarName
• CurveCollection
• Name
• NominalScaleMaximum
• NominalScaleMinimum
• NumericScaleCollection
• ShowCalendarGrids
• Visible
Methods
• FitRangeIntoView
• GetActualScaleValues
• GetActualScaleValuesAsVariant
• GetCurrentYValues
• GetCurrentYValuesAsVariant
• PutInOrderAfter
• ScrollToValue
Properties
CalendarName
Property of VcHistogram
This property lets you assign a calendar to the histogram. The calendar holds
the time pattern to be displayed by the grid. The calendar is to be specified by
its name.
Data Type Explanation
Property value String Character string that passes the calendar name
CurveCollection
Read Only Property of VcHistogram
This property gives access to the curve collection object, that contains all box
formats available.
Data Type Explanation
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
Dim curveCltn As VcCurveCollection
Name
Read Only Property of VcHistogram
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
NominalScaleMaximum
Property of VcHistogram
This property lets you specify the maximum value of the numeric scale of the
histogram. If the y values of the histogram curves exceed the maximum value
set, the numeric scale will be adapted to the curves´ y values.
Data Type Explanation
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
histogram.NominalScaleMaximum (20)
NominalScaleMinimum
Property of VcHistogram
This property lets you specify a minimum value of the numeric scale of the
histogram.
Data Type Explanation
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
histogram.NominalScaleMinimum (2)
NumericScaleCollection
Read Only Property of VcHistogram
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
Dim numericScaleCltn As VcNumericScaleCollection
ShowCalendarGrids
Property of VcHistogram
This property lets you set or retrieve whether workfree periods are marked by
a background color and/or a pattern. This property also can be set in the
Administrate Histograms dialog.
Data Type Explanation
Visible
Property of VcHistogram
This property lets you set or retrieve whether the histogram is visible.
Data Type Explanation
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
Methods
FitRangeIntoView
Method of VcHistogram
This method lets you match a section of the numeric scale into a window for
display. The graduation will change correspondingly. The beginning and the
end are set by the startValue and endValue parameters, respectively. The
parameter gapAsNoOfTimeUnits is not used. To derive appropriate section
limits from existing curves, see GetCurrentYValues(...).
Parameter:
startValue Long Start date of the area to be matched
Return value Boolean Area could (True) / could not (False) be matched.
GetActualScaleValues
Method of VcHistogram
This method lets you retrieve the actual minimum and maximum values of
the histogram's numeric scale.
Data Type Explanation
Parameter:
minimumValue Long Minimum Y-value of the numeric scale
Return value Boolean High-low values could (True) / could not (False) be
successfully retrieved.
GetActualScaleValuesAsVariant
Method of VcHistogram
This method is identical with the method ActualScaleValues except for the
parameters. It was necessary to implement this property because some
languages (e.g. VBScript) can use parameters by Reference (indicated by )
only if the type of these parameters is VARIANT.
GetCurrentYValues
Method of VcHistogram
This method lets you retrieve the minimum and maximum Y-value of all
curves in the histogram. The result can contribute to defining the section of
the numeric scale to be displayed (s. FitRangeIntoView).
Data Type Explanation
Parameter:
minValue Long Minimum Y-value of all curves
Return value Boolean High-low values could (True) / could not (False) be
successfully retrieved.
GetCurrentYValuesAsVariant
Method of VcHistogram
This method is identical with the method GetCurrentYValues except for the
parameters. It was necessary to implement this property because some
languages (e.g. VBScript) can use parameters by Reference (indicated by )
only if the type of these parameters is VARIANT.
PutInOrderAfter
Method of VcHistogram
This method lets you set the histogram behind a histogram specified by
name, within the HistogramCollection. If you set the name to "", the
histogram will be put in the first position. The order of the histograms
determines the order by which they are displayed.
Parameter:
refName String Name of the histogram behind which the current
histogram is to be put.
Example Code
Dim histgrCltn As VcHistogramCollection
Dim histgr1 As VcHistogram
Dim histgr2 As VcHistogram
histgrCltn = VcGantt1.HistogramCollection()
histgr1 = histgrCltn.Add("histgr1")
histgr2 = histgrCltn.Add("histgr2")
histgr1.PutInOrderAfter("histgr2")
histgrCltn.Update()
ScrollToValue
Method of VcHistogram
This method allows you to scroll to a defined y value in the histogram and to
specify whether that value should be displayed at the top, in the center or at
the bottom of the screen.
Data Type Explanation
Parameter:
value Long Y value to be scrolled to
Possible Values:
vcBottomAligned 2 bottom aligned
vcTopAligned 1 top aligned
vcVerCenterAligned -1 vertically centered
Return value Boolean Scrolling was (True) / was not (False) performed
successfully.
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
7.44 VcHistogramCollection
Properties
• _NewEnum
• Active
• Count
Methods
• CreateHistogram
• DeleteHistogram
• FirstHistogram
• HistogramByIndex
• HistogramByName
• NextHistogram
Properties
_NewEnum
Read Only Property of VcHistogramCollection
Example Code
Dim histogram As VcHistogram
Active
Property of VcHistogramCollection
This property lets you set or retrieve the histogram currently displayed in the
diagram.
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
Count
Read Only Property of VcHistogramCollection
Example Code
Dim histogramCltn As VcHistogramCollection
Dim numberOfHistograms As Long
Methods
CreateHistogram
Method of VcHistogramCollection
Parameter:
histogramName String Name of the histogram to be created
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
DeleteHistogram
Method of VcHistogramCollection
Parameter:
histogramName String Name of the histogram to be deleted
Return value Boolean Histogram was (True) / was not (False) deleted
successfully.
Example Code
Dim histogramCltn As VcHistogramCollection
Dim Deleted As Boolean
FirstHistogram
Method of VcHistogramCollection
This method can be used to access the initial value, i.e. the first histogram of
a histogram collection, and then to continue in a forward iteration loop by the
method NextHistogram for the histograms following. If there is no
histogram in the histogram collection, a none object will be returned
(Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim HistogramCltn As VcHistogramCollection
Dim Histogram As VcHistogram
HistogramByIndex
Method of VcHistogramCollection
This method lets you access a histogram by its index. If a histogram of the
specified index does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the histogram
HistogramByName
Method of VcHistogramCollection
Parameter:
histogramName String Name of the histogram
Example Code
Dim HistogramCltnAs VcHistogramCollection
Dim histogram As VcHistogram
NextHistogram
Method of VcHistogramCollection
Example Code
Dim histogramCltn As VcHistogramCollection
Dim histogram As VcHistogram
7.45 VcInfoWindow
Properties
• OutputFormatForCenterDate
• OutputFormatForDuration
• OutputFormatForEndDate
• OutputFormatForStartDate
• ReferenceDate
• UseReferenceDate
• Visible
Properties
OutputFormatForCenterDate
Property of VcInfoWindow
This property lets you set or retrieve the output format of the a layer's center
date (e.g. of a symbol layer) in information windows of nodes. To compose
the date you can use the below codes:
MMM: first three letters of the name of the month (not adjustable)
YY: two-digit figure for the year
YYYY: four-digit figure for the year
WW: two-digit figure for the number of the calendar week: 01-53
TW: text for "calendar week" (adjustable by using the event
OnSupplyTextEntry)
Q: one-digit figure for the quarter: 1-4
TQ: name of quarter (adjustable by using the event
OnSupplyTextEntry)
hh: two-digit figure for the hour in 24 hours format: 00-23
HH: two-digit figure for the hour in 12 hours format: 01-12
Th: Text of "o' clock" (adjustable by using the event
OnSupplyTextEntry)
TH: "am" or "pm" (adjustable by using the event OnSupplyTextEntry)
mm two-digit figure for the minute: 00-59
ss: two-digit figure for the second: 00-59
TS: short date format, as defined in the regional settings of the windows
control panel
TL: long date format, as defined in the regional settings of the windows
control panel
TT: time format, as defined in the regional settings of the windows
control panel
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in ''\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
This setting is valid for the table area and for layer annotations in the node
area. This property also can be set on the General property page.
Data Type Explanation
Property value String String that holds the code of the format to be used; if
an empty string is passed, the output format of the
Gantt object will be used (see
VcGantt.DateOutputFormat).
OutputFormatForDuration
Property of VcInfoWindow
This property lets you set or retrieve the output format of the duration in
information windows of nodes. To compose the date you can use the below
codes:
<This property lets you set or retrieve the output format of the duration in
information windows of nodes. To compose the date you can use the below
codes:
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in ''\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
This setting is valid for the table area and for layer annotations in the node
area. This property also can be set on the General property page.
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in ''\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
This setting is valid for the table area and for layer annotations in the node
area. This property also can be set on the General property page.
Property value String String that holds the code of the format to be used; if
an empty string is passed, the output format of the
Gantt object will be used (see
VcGantt.DateOutputFormat).
OutputFormatForEndDate
Property of VcInfoWindow
This property lets you set or retrieve the output format of a layer's end date of
in information windows of nodes. To compose the date you can use the
below codes:
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in ''\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
This setting is valid for the table area and for layer annotations in the node
area. This property also can be set on the General property page.
Data Type Explanation
Property value String String that holds the code of the format to be used; if
an empty string is passed, the output format of the
Gantt object will be used (see
VcGantt.DateOutputFormat).
OutputFormatForStartDate
Property of VcInfoWindow
This property lets you set or retrieve the output format of a layer's start date
in information windows of nodes. To compose the date you can use the
below codes:
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in ''\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
This setting is valid for the table area and for layer annotations in the node
area. This property also can be set on the General property page.
Property value String String that holds the code of the format to be used; if
an empty string is passed, the output format of the
Gantt object will be used (see
VcGantt.DateOutputFormat).
ReferenceDate
Property of VcInfoWindow
This property lets you set or retrieve a reference date. For the information
window to actually use the reference date, the property UseReferenceDate
needs to be set.
Data Type Explanation
UseReferenceDate
Property of VcInfoWindow
This property lets you set or retrieve whether the information window uses a
reference date.
Data Type Explanation
Property value Boolean Information Window uses (True) / does not use
(False) reference date
Default value: False
Visible
Property of VcInfoWindow
This property lets you set or retrieve whether the information window shoul
be visible during node interaction.
Data Type Explanation
Example Code
Dim boxCltn As VcBoxCollection
7.46 VcInterval
Properties
• BackColorAsARGB
• CalendarProfileName
• DayInEndMonth
• DayInStartMonth
• Duration
• EndDateTime
• EndMonth
• EndTime
• EndWeekday
• LineColor
• LineThickness
• LineType
• Name
• Pattern
• PatternColorAsARGB
• Specification
• StartDateTime
• StartMonth
• StartTime
• StartWeekday
• Text
• TimeUnit
• Type
• UseGraphicalAttributes
Methods
• PutInOrderAfter
Properties
BackColorAsARGB
Property of VcInterval
This property lets you set or retrieve the background color of the interval'x
calendar grid. Color values have a transparency or alpha value, followed by a
value for a red, a blue and a green partition (ARGB). The values range
between 0..255. An alpha value of 0 equals complete transparency, whereas
255 represents a completely solid color. When casting an RGB value on an
ARGB value, an alpha value of 255 has to be added.
The background color can also be set in the Administrate Intervals> dialog.
Data Type Explanation
({0...255},{0...255},{0...255},{0...255})
Default value: &hFFD8D8D8 (gray)
CalendarProfileName
Property of VcInterval
This property lets you assign a calendar profile to the interval or retrieve
the one currently used. This feature can also be set in the Administrate
Intervals dialog.
Data Type Explanation
DayInEndMonth
Property of VcInterval
This property returns or sets the day in the end month of this interval object
(for profiles of the type vcYearProfile only). This feature can also be set in
the Administrate Intervals dialog.
DayInStartMonth
Property of VcInterval
This property returns or sets the day in the start month of this interval (for
profiles of the type vcYearProfile only). This feature can also be set in the
Administrate Intervals dialog.
Data Type Explanation
Duration
Property of VcInterval
This property lets you set or retrieve the duration for the interval only for
calendar profiles of the type vcShiftProfile. The duration can also be set in
the Administrate Intervals dialog.
Data Type Explanation
EndDateTime
Property of VcInterval
This property returns or sets the end date and time of this interval object (for
profiles of the type vccalendar only). This feature can also be set in the
Administrate Intervals dialog.
Data Type Explanation
EndMonth
Property of VcInterval
This property returns or sets the end month of this interval object (for profiles
of the type vcYearProfile only). This feature can also be set in the
Administrate Intervals dialog.
Data Type Explanation
Possible Values:
vcApril 4 April
vcAugust 8 August
vcDecember 12 December
vcFebruary 2 February
vcJanuary 1 January
vcJuly 7 July
vcJune 6 June
vcMarch 3 March
vcMay 5 May
vcNovember 11 November
vcOktober 10 October
vcSeptember 9 September
EndTime
Property of VcInterval
This property returns or sets the end time of this interval object (for profiles
of the type vcDayProfile only). This feature can also be set in the
Administrate Intervals dialog.
Data Type Explanation
EndWeekday
Property of VcInterval
This property returns or sets the last weekday of this interval object (for
profiles of the type vcWeekProfile only). This feature can also be set in the
Administrate Intervals dialog.
Data Type Explanation
Possible Values:
LineColor
Property of VcInterval
This property lets you set or retrieve the line color of an interval's calendar
grid lines. The line color can also be set in the Administrate Intervals
dialog. This feature can also be set in the Administrate Intervals dialog.
Data Type Explanation
({0...255},{0...255},{0...255})
LineThickness
Read Only Property of VcInterval
This property lets you set or retrieve the line thickness of the interval's
calendar grid lines.
If you set this property to values between 1 and 4, an absolute line thickness
is defined in pixels. Irrespective of the zoom factor a line will always show
the same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
LineType
Property of VcInterval
This property lets you set or retrieve the line type of the interval's calendar
grid. The line type property also can be set in the Administrate Intervals
dialog.
Data Type Explanation
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
Name
Read Only Property of VcInterval
This property lets you retrieve the name of the interval. This feature can also
be set in the Administrate Intervals dialog.
Data Type Explanation
Pattern
Read Only Property of VcInterval
This property lets you set or retrieve the pattern of the interval's calendar
grid. The pattern can also be set in the Administrate Intervals dialog.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
PatternColorAsARGB
Property of VcInterval
This property lets you set or retrieve the pattern color of the interval's
calendar grid. Color values have a transparency or alpha value, followed by a
value for a red, a blue and a green partition (ARGB). The values range
between 0..255. An alpha value of 0 equals complete transparency, whereas
255 represents a completely solid color. When casting an RGB value on an
ARGB value, an alpha value of 255 has to be added.
The pattern color can also be set in the Administrate Intervals dialog.
Data Type Explanation
({0...255},{0...255},0...255},{0...255})
Specification
Read Only Property of VcInterval
StartDateTime
Property of VcInterval
This property returns or sets the start date and time of this interval object (for
profiles of the type vcCalendar only). This feature can also be set in the
Administrate Intervals dialog.
Data Type Explanation
StartMonth
Property of VcInterval
This property returns or sets the start month of this interval object (for
profiles of the type vcYearProfile only). This feature can also be set in the
Administrate Intervals dialog.
Possible Values:
vcApril 4 April
vcAugust 8 August
vcDecember 12 December
vcFebruary 2 February
vcJanuary 1 January
vcJuly 7 July
vcJune 6 June
vcMarch 3 March
vcMay 5 May
vcNovember 11 November
vcOktober 10 October
vcSeptember 9 September
StartTime
Property of VcInterval
This property returns or sets the start time of this interval object (for profiles
of the type vcDayProfile only). This feature can also be set in the
Administrate Intervals dialog.
Data Type Explanation
StartWeekday
Property of VcInterval
This property returns or sets the first weekday of this interval object (for
profiles of the type vcWeekProfile only). This feature can also be set in the
Administrate Intervals dialog.
Data Type Explanation
Possible Values:
vcFriday 5 Week day Friday
vcMonday 1 Week day Monday
vcSaturday 6 Week day Saturday
vcSunday 7 Week day Sunday
vcThursday 4 Week day Thursday
vcTuesday 2 Week day Tuesday
vcWednesday 3 Week day Wednesday
Text
Property of VcInterval
This property lets you set or retrieve the text of the time ribbon for this
interval only for calendar profiles of the type vcShiftProfile The text can also
be set in the Administrate Intervals dialog.
Data Type Explanation
TimeUnit
Property of VcInterval
This property lets you set or retrieve the time unit for the interval only for
calendar profiles of the type vcVariableProfile. The text can also be set in the
Administrate Intervals dialog.
Data Type Explanation
Possible Values:
vcDay 5 Time unit day
vcHour 6 Time unit hour
vcMinute 7 Time unit minute
vcSecond 8 Time unit second
Type
Property of VcInterval
This property lets you enquire the type of the interval. This feature can also
be set in the Administrate Intervals dialog.
Data Type Explanation
Possible Values:
vcCalendarInterval 139
vcDayProfileInterval 4
vcVariableProfileInterval 5
vcWeekProfileInterval 3
vcYearProfileInterval 2
UseGraphicalAttributes
Property of VcInterval
This property lets you set or retrieve whether the graphical attributes that
have been set for this interval shall be used. This feature can be also set in the
dialog Administrate Intervals (which you reach by clicking in the
Administrate Calendar Profiles dialog). If they are to be used, the property
VcCalendarGrid.UseGraphicalAttributesOfIntervals needs to have been
set to Truel.
Data Type Explanation
Parameter:
Rückgabewert Boolean Graphical attributes of the interval are displayed
(True)/are not displayed (False)
Property value Boolean Graphical attributes are used (True)/are not used
(False)
Default value: True
Methods
PutInOrderAfter
Method of VcInterval
This method lets you set the interval behind an interval specified by name,
within the IntervalCollection. If you set the name to "", the interval will be
put in the first position. The order of the intervals within the collection
determines the order by which they apply to the calendars.
Data Type Explanation
Parameter:
refNameParam String Name of the interval behind which the current
interval is to be put.
Example Code
Dim intvlCltn As VcIntervalCollection
Dim intvl1 As VcInterval
Dim intvl2 As VcInterval
intvlCltn = VcGantt1.IntervalCollection()
intvl1 = intvlCltn.Add("intvl1")
intvl2 = intvlCltn.Add("intvl2")
intvl1.PutInOrderAfter("intvl2")
intvlCltn.Update()
7.47 VcIntervalCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• Copy
• FirstInterval
• IntervalByIndex
• IntervalByName
• NextInterval
• Remove
• Update
Properties
_NewEnum
Property of VcIntervalCollection
Count
Read Only Property of VcIntervalCollection
This property lets you retrieve the number of intervals in the interval
collection.
Data Type Explanation
Methods
Add
Method of VcIntervalCollection
Parameter:
intervalName String Interval name
AddBySpecification
Method of VcIntervalCollection
Parameter:
Specification String Interval specification
Copy
Method of VcIntervalCollection
By this method you can copy an interval. If the interval that is to be copied
exists, and if the name for the new interval does not yet exist, the new
interval object is returned. Otherwise "Nothing" (in Visual Basic) or "0"
(other languages) will be returned.
Data Type Explanation
Parameter:
intervalName String Name of the interval to be copied
FirstInterval
Method of VcIntervalCollection
This method can be used to access the initial value, i.e. the first interval of an
interval collection, and then to continue in a forward iteration loop by the
method NextInterval for the intervals following. If there is no interval in the
FilterCollection object, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
IntervalByIndex
Method of VcIntervalCollection
This method lets you access an interval by its index. If no interval of the
specified index does exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
Index Integer Index of the interval
IntervalByName
Method of VcIntervalCollection
By this method you can retrieve an interval by its name. If no interval of the
specified name does exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
intervalName String Name of the interval object
NextInterval
Method of VcIntervalCollection
Remove
Method of VcIntervalCollection
This method lets you delete an interval. If the interval is used in another
object, it cannot be deleted. Then False will be returned, otherwise True.
Data Type Explanation
Parameter:
intervalName String Interval name
Update
Method of VcIntervalCollection
This method lets you update an interval collection after having modified it.
Data Type Explanation
7.48 VcLayer
Properties
• BackColorAsARGB
• BackColorDataFieldIndex
• BackColorMapName
• CompletionDataFieldIndex
• DurationDataFieldIndex
• EndDataFieldIndex
• FilterName
• GraphicsFileName
• GraphicsFileNameDataFieldIndex
• GraphicsFileNameMapName
• Height
• HeightDataFieldIndex
• HeightMapName
• HorizontalOffset
• LabelSizeDependence
• LayerFormat
• LayerShape
• LegendText
• LineColor
• LineColorDataFieldIndex
• LineColorMapName
• LineThickness
• LineType
• MaximumEndDataFieldIndex
• MinimumStartDataFieldIndex
• Moveable
• Name
• ObjectDrawEventsEnabled
• Pattern
• PatternColorAsARGB
• PatternColorDataFieldIndex
• PatternColorMapName
• PatternDataFieldIndex
• PatternMapName
• Sizeable
• Specification
• StartDataFieldIndex
• ThreeDEffect
• UsedAsOverlapLayer
• VerticalOffset
• VerticalOffsetDataFieldIndex
• VerticalOffsetMapName
• Visible
• VisibleInLegend
Methods
• CalculateCurrentWidth
• PutInOrderAfter
Properties
BackColorAsARGB
Property of VcLayer
This property lets you set or retrieve the background color of the layer. Color
values have a transparency or alpha value, followed by a value for a red, a
blue and a green partition (ARGB). The values range between 0..255. An
alpha value of 0 equals complete transparency, whereas 255 represents a
completely solid color. When casting an RGB value on an ARGB value, an
alpha value of 255 has to be added.
({0...255},{0...255},0...255},{0...255})
Example Code
Dim layer As VcLayer
BackColorDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field index to be used with the
property BackColorMapName. If you set this property to -1, no map will be
used.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataRecCltn As VcDataRecordCollection
Dim dataRec1 As VcDataRecord
Dim layer As VcLayer
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
map.Type = vcColorMap
Set mapEntry = map.CreateEntry
mapEntry.DataFieldValue = "Green"
mapEntry.Color = RGB(0, 255, 0)
Set mapEntry = map.CreateEntry
mapEntry.DataFieldValue = "Red"
mapEntry.Color = RGB(255, 0, 0)
mapCltn.Update
BackColorMapName
Property of VcLayer
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. If a map name and
additionally a data field index is specified by the property BackColorData-
FieldIndex, the background color will be set by the map. If no data field
entry applies, the background color of the layer specified by the property
BackColorAsARGB will apply.
If the map holds transparent color values (ARGB values), but a property can
only use RGB values, XGantt will display the specified color as solid.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataRecCltn As VcDataRecordCollection
Dim dataRec1 As VcDataRecord
Dim layer As VcLayer
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
map.Type = vcColorMap
Set mapEntry = map.CreateEntry
mapEntry.DataFieldValue = "Green"
mapEntry.Color = RGB(0, 255, 0)
Set mapEntry = map.CreateEntry
mapEntry.DataFieldValue = "Red"
mapEntry.Color = RGB(255, 0, 0)
mapCltn.Update
CompletionDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field that contains the
percentage degree of completion of the layer.
The end date visualized by the layer is calculated from the start date field, the
end date field or the duration respectively and the percent complete value.
The data of the activity will not be changed.
Property value Long Index of the data field that contains the degree of
completion
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
DurationDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field that contains the duration
of the layer.
The unit of the duration will be interpreted in dependency on the time unit
specified on the General property page.
Property value Long Index of the data field that contains the duration
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
EndDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field that contains the end value
of the layer, e.g. Early Start, Late Start, Scheduled Start.
To define a rectangle or line layer you need to specify a start and end field or
a duration. If both an end field and a duration are specified, the duration entry
overrides the end field entry. When an interaction occurs, not only the
Property value Integer Index of the data field that contains the end value
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
FilterName
Property of VcLayer
This property lets you specify the name of the filter that defines what
activities the layer is to apply to.
Data Type Explanation
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
GraphicsFileName
Property of VcLayer
This property lets you set or retrieve the name of a graphics file the content
of which is displayed in the layer. The graphics file has to be of one of the
below formats:
EMF, EMF+, VMF and WMF are vector formats that allow to store a file
independent of pixel resolution. All other formats are pixel-oriented and
confined to a limited resolution.
The VMF format basically has been deprecated, but it will still be supported
for some time to maintain compatibility with existing applications.
For the graphics file to be displayed, independent of the format set here, the
property LayerShape has to be set to vcBitmapLayer.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataRecCltn As VcDataRecordCollection
Dim dataRec1 As VcDataRecord
Dim layer As VcLayer
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
map.Type = vcGraphicsFileMap
Set mapEntry = map.CreateEntry
mapEntry.GraphicsFileName = "c:\Pic1.bmp"
mapCltn.Update
GraphicsFileNameDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field index that has to be
specified if the property GraphicsFileNameMapName is used. If a valid
data field index, but no map is specified, the graphics file name will be read
from the data field specified.
For the graphics file to be displayed, the property LayerShape has to be set
to vcBitmapLayer.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataRecCltn As VcDataRecordCollection
Dim dataRec1 As VcDataRecord
Dim layer As VcLayer
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
map.Type = vcGraphicsFileMap
Set mapEntry = map.CreateEntry
mapEntry.GraphicsFileName = "c:\Pic1.bmp"
mapCltn.Update
GraphicsFileNameMapName
Property of VcLayer
This property lets you set or retrieve the name of a map of the type
vcGraphicsFileMap or "". Only if a name and a data field index are
specified in the property GraphicsFileNameDataFieldIndex, the graphics
will be controlled by the map. If no data field entry applies, the graphics
specified in the property GraphicsFileName will be displayed.
For the graphics file to be displayed, the property LayerShape has to be set
to vcBitmapLayer.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataRecCltn As VcDataRecordCollection
Dim dataRec1 As VcDataRecord
Dim layer As VcLayer
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
map.Type = vcGraphicsFileMap
Set mapEntry = map.CreateEntry
mapEntry.GraphicsFileName = "c:\Pic1.bmp"
mapCltn.Update
Height
Property of VcLayer
This property lets you set or retrieve the height of the layer.
Data Type Explanation
HeightDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field index that has to be
specified if the property HeightMapName is used. If you set this property to
-1, no map will be used.
This property will only become effective after the layer collection was
updated by the method VcLayerCollection.Update().
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim layer As VcLayer
HeightMapName
Property of VcLayer
This property lets you set or retrieve the name of a millimeter map (type vc-
MillimeterMap). If set to "", no map will be used. If a map name and
additionally a data field index is specified in the property HeightDataField-
Index, then the height is controlled by the map. If no data field entry applies,
the height of the layer that is specified in the property Height will be used.
This property will only become effective after the layer collection was
updated by the method VcLayerCollection.Update().
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim layer As VcLayer
HorizontalOffset
Property of VcLayer
This property lets you set or retrieve the horizontal offset of the layer. This is
only possible for symbol or bitmap layers. If you set an offset for other layer
shapes, this will be without effect.
Data Type Explanation
-50 ... 50
LabelSizeDependence
Property of VcLayer
This property lets you set or retrieve, whether and in which way the size of
the label is to depend on the size of the layer.
Data Type Explanation
Possible Values:
vcFixedToBar 1 restricted by layer siz
vcTextHeightAndWidthIndependent 79 independent on text height and width
vcTextHeightIndependent 39 independent on text height
vcTextWidthIndependent 40 independent on text width
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
LayerFormat
Read Only Property of VcLayer
This property lets you enquire the layer format of this layer.
Data Type Explanation
LayerShape
Property of VcLayer
This property lets you set or retrieve the shape of the layer. In the symbols
below, black sections can be color-coded (please see BackColorAsARGB,
Pattern und PatternColor).).
Data Type Explanation
Possible Values:
vcAllRoundedRectangleLayer 61441 All corners rounded
LegendText
Property of VcLayer
This property lets you set or retrieve the legend text of a layer. When set to
"", the layer name (property Name) will be displayed.
Data Type Explanation
LineColor
Property of VcLayer
This property lets you set or retrieve the color of the (border) line of the
layer.
Data Type Explanation
({0...255},{0...255},{0...255})
LineColorDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field index to be used with a
map specified by the property LineColorMapName. If you set this property
to -1, no map will be used.
Data Type Explanation
LineColorMapName
Property of VcLayer
This property lets you set or retrieve the name of a map for the line color. If
set to "" or if the property LineColorDataFieldIndex is set to -1, then no
map will be used.
Data Type Explanation
LineThickness
Property of VcLayer
This property lets you set or retrieve the thickness of the (border) line of the
layer.
If you set this property to values between 1 and 4, an absolute line thickness
is defined in pixels. Irrespective of the zoom factor a line will always show
the same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
LineType
Property of VcLayer
This property lets you set or retrieve the type of the (border) line of the layer.
Data Type Explanation
({0...255},{0...255},{0...255})
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
MaximumEndDataFieldIndex
Property of VcLayer
If this property is set to a valid field index, the date and time of the
corresponding field are considered as upper limit for the end time of the layer
when a layer or a node is moved interactively .
MinimumStartDataFieldIndex
Property of VcLayer
If this property is set to a valid field index, the date and time of the
corresponding field are considered as lower limit for the start time of the
layer when a layer or a node is moved interactively .
Property value Long Data field index for earliest start time
Default value: -1
Moveable
Property of VcLayer
This property lets you set or retrieve whether a layer can be moved
interactively.
Example Code
Dim layer1 As VcLayer
Name
Read Only Property of VcLayer
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
ObjectDrawEventsEnabled
Property of VcLayer
Pattern
Property of VcLayer
This property lets you set or retrieve the pattern of the layer. If in the property
PatternMapName a map is specified, this map will control the pattern in
dependance on the data.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
PatternColorAsARGB
Property of VcLayer
This property lets you set or retrieve the pattern color of the layer. Color
values have a transparency or alpha value, followed by a value for a red, a
blue and a green partition (ARGB). The values range between 0..255. An
alpha value of 0 equals complete transparency, whereas 255 represents a
completely solid color. When casting an RGB value on an ARGB value, an
alpha value of 255 has to be added.
({0...255},{0...255},0...255},{0...255})
Example Code
Dim layer As VcLayer
PatternColorDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field index that has to be
specified if the property PatternColorMapName is used. If you set this
property to -1, no map will be used.
Data Type Explanation
PatternColorMapName
Property of VcLayer
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. Only if a map name and a
data field index are specified in the property PatternColorDataFieldIndex,
the pattern color is controlled by the map. If no data field entry applies, the
pattern color of the layer that is specified in the property PatternColorAs-
ARGB will be used.
If the map holds transparent color values (ARGB values), but a property can
only use RGB values, XGantt will display the specified color as solid.
Data Type Explanation
PatternDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field index to be used together
with the property PatternMapName. If you set this property to -1, no map
will be used.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataRecCltn As VcDataRecordCollection
Dim dataRec1 As VcDataRecord
Dim layer As VcLayer
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
map.Type = vcPatternMap
Set mapEntry = map.CreateEntry
mapEntry.DataFieldValue = "Diagonal"
mapEntry.Pattern = vcBDiagonalPattern
Set mapEntry = map.CreateEntry
mapEntry.DataFieldValue = "Horizontal"
mapEntry.Pattern = vcHorizontalPattern
mapCltn.Update
PatternMapName
Property of VcLayer
This property lets you set or retrieve the name of a pattern map (type
vcPatternMap). If set to "", no map will be used. Only if a map name and
additionally a data field index are specified in the property PatternData-
FieldIndex, the pattern is controlled by the map. If no data field entry
applies, the pattern of the layer that is specified in the property Pattern will
be used.
Data Type Explanation
Example Code
Dim dataTable As VcDataTable
Dim dataRecCltn As VcDataRecordCollection
Dim dataRec1 As VcDataRecord
Dim layer As VcLayer
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
map.Type = vcPatternMap
Set mapEntry = map.CreateEntry
mapEntry.DataFieldValue = "Diagonal"
mapEntry.Pattern = vcBDiagonalPattern
Set mapEntry = map.CreateEntry
mapEntry.DataFieldValue = "Horizontal"
mapEntry.Pattern = vcHorizontalPattern
mapCltn.Update
Sizeable
Property of VcLayer
This property lets you set or retrieve whether the layer size can be changed
interactively.
Data Type Explanation
Example Code
Dim layer1 As VcLayer
Specification
Read Only Property of VcLayer
StartDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field that contains the start
value of the layer, e.g. Early Start, Late Start, Scheduled Start.
Data Type Explanation
Property value Integer Index of the data field that contains the start value
ThreeDEffect
Property of VcLayer
This property lets you set or retrieve whether the layer is highlighted by a 3D
effect.
Data Type Explanation
UsedAsOverlapLayer
Property of VcLayer
This property lets you set or retrieve whether this layer is to be used as an
overlap layer. Overlap layers occur to indicate whether two different nodes
overlap. They grow and shrink correspondingly to the size of the overlapping
parts and therefore indicate the degree of hiding. (Cf. also
VcGantt.OverlapLayerEnabled and VcGantt.OverlapLayerName).
Data Type Explanation
Property value Boolean True: layer is used as an overlap layer; False: layer
is not used as an overlap layer.
Default value: False
Example Code
Dim layer1 As VcLayer
VerticalOffset
Property of VcLayer
This property lets you set or retrieve the vertical offset of the layer. If in the
property VerticalOffsetMapName a map is specified, this map will control
the vertical offset in dependance on the data.
VerticalOffsetDataFieldIndex
Property of VcLayer
This property lets you set or retrieve the data field index
VerticalOffsetMapName
Property of VcLayer
This property lets you set or retrieve the name of a millimeter map (type
vcMillimeterMap). If set to "", no map will be used. If a map name and
additionally a data field index is specified in the property VerticalOffset-
DataFieldIndex, then the vertical offset is controlled by the map. If no data
field entry applies, the vertical offset of the layer that is specified in the
property VerticalOffset will be used.
Data Type Explanation
Visible
Property of VcLayer
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
VisibleInLegend
Property of VcLayer
This property lets you set or retrieve whether a layer object is to be visible in
the legend. This property also can be set by the Specify Bar Appearance
dialog.
Data Type Explanation
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
layer.VisibleInLegend = False
Methods
CalculateCurrentWidth
Method of VcLayer
This method calulates the current width of the layer which belongs to the
layer definition of the node specified. The width unit is 1/100 mm. If no layer
in the layer definition of the node is visible, for example due to filter
conditions, -1 will be returned.
Data Type Explanation
Parameter:
node VcNode Node, in the layer definition of which the layer is
looked for.
PutInOrderAfter
Method of VcLayer
This method lets you set the layer behind a layer specified by name, within
the LayerCollection. If you set the name to "", the layer will be put in the first
position. The order of the layers determines the order by which they are
displayed.
Data Type Explanation
Parameter:
refName String Name of the layer behind which the current layer is
to be put.
Example Code
Dim layerCltn As VcLayerCollection
Dim layer1 As VcLayer
Dim layer2 As VcLayer
layerCltn = VcGantt1.LayerCollection()
layer1 = layerCltn.Add("layer1")
layer2 = layerCltn.Add("layer2")
layer1.PutInOrderAfter("layer2")
layerCltn.Update()
7.49 VcLayerCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• Copy
• FirstLayer
• LayerByIndex
• LayerByName
• NextLayer
• Remove
• Update
Properties
_NewEnum
Read Only Property of VcLayerCollection
Example Code
Dim layer As VcBoxLayer
Count
Read Only Property of VcLayerCollection
This property lets you retrieve the number of layers in the layer collection.
Data Type Explanation
Example Code
Dim numberOfLayers As Long
numberOfLayers = VcGantt1.LayerCollection.Count
Methods
Add
Method of VcLayerCollection
Parameter:
LayerName String Layer name
Example Code
Set newLayer = VcGantt1.LayerCollection.Add("test1")
AddBySpecification
Method of VcLayerCollection
This method lets you create a layer by using a layer specification. This way
of creating allows layer objects to become persistent. The specification of a
layer can be saved and re-loaded (see VcLayer property Specification). In a
subsequent session the layer can be created again from the specification and
is identified by its name.
Data Type Explanation
Parameter:
Specification String Layer specification
Copy
Method of VcLayerCollection
By this method you can copy a layer. If the layer that is to be copied exists,
and if the name for the new layer does not yet exist, the new layer object is
returned. Otherwise "Nothing" (in Visual Basic) or "0" (other languages) will
be returned.
Data Type Explanation
Parameter:
LayerName String Name of the layer to be copied
FirstLayer
Method of VcLayerCollection
This method can be used to access the initial value, i.e. the first layer of a
layer collection and then to continue in a forward iteration loop by the
method NextLayer for the layers following. If there is no layer in the layer
collection, a none object will be returned (Nothing in Visual Basic).
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
LayerByIndex
Method of VcLayerCollection
This method lets you access a layer by its index. If a layer of the specified
index does not exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
index Integer Index of the layer
LayerByName
Method of VcLayerCollection
This method retrieves a layer by its name. If a layer of the specified name
does not exist, a none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Parameter:
layerName String Name of layer
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
NextLayer
Method of VcLayerCollection
Example Code
Dim layerCltn As VcLayerCollection
Dim layer As VcLayer
Remove
Method of VcLayerCollection
This method lets you delete a layer. If it is used in another object, it cannot be
deleted. Then False will be returned, otherwise True.
Data Type Explanation
Parameter:
LayerName String layer name
Update
Method of VcLayerCollection
This method lets you update a layer collection after having modified it.
Data Type Explanation
7.50 VcLayerFormat
Properties
• _NewEnum
• FormatField
• FormatFieldCount
Methods
• CopyFormatField
• RemoveFormatField
Properties
_NewEnum
Read Only Property of VcLayerFormat
Example Code
Dim formatField As VcLayerFormatField
Next
FormatField
Read Only Property of VcLayerFormat
Note for users of a version earlier than 3.0: The index does not range from
1 to FormatFieldCount as later versions do.
Data Type Explanation
Parameter:
Index Integer Index of the layer format field
0 ... .FormatFieldCount-1
FormatFieldCount
Read Only Property of VcLayerFormat
Methods
CopyFormatField
Method of VcLayerFormat
Parameter:
position FormatFieldPositionEnum Position of the new layer format field
Possible Values:
vcAbove 1 above
vcBelow 3 below
vcLeftOf 0 left of
vcOutsideAbove 9 outside, above
vcOutsideBelow 11 outside, below
vcOutsideLeftOf 8 outside, left of
vcOutsideRightOf 12 outside, right of
vcRightOf 4 right of
RemoveFormatField
Method of VcLayerFormat
This method lets you remove a layer format field by its index. After that, the
program will update all layer format field indexes so that they are
consecutively numbered again.
Data Type Explanation
Parameter:
Index Integer index of the layer format field to be deleted
7.51 VcLayerFormatField
An object of the type VcLayerFormatField represents a field of a
VcLayerFormat-Object. A layer format field does not have a name as many
other objects, but it has an index that defines its position in the layer format.
Properties
• Alignment
• BottomMargin
• BottomMargin
• ConstantText
• FormatName
• Index
• LeftMargin
• LeftMargin
• MinimumWidth
• Priority
• RightMargin
• RightMargin
• SuppressTruncatedText
• TextDataFieldIndex
• TextFont
• TextFontColor
• TextFontColorDataFieldIndex
• TextFontColorMapName
• TextFontDataFieldIndex
• TextFontMapName
• TextLineCount
• TextLineCountDataFieldIndex
• TextLineCountMapName
• TopMargin
• TopMargin
Methods
• CalculateLineCount
Properties
Alignment
Property of VcLayerFormatField
This property lets you set or retrieve the alignment of the content of the layer
format field.
Data Type Explanation
Possible Values:
vcFFABottom 28 bottom
vcFFABottomLeft 27 bottom left
vcFFABottomRight 29 bottom right
vcFFACenter 25 center
vcFFALeft 24 left
vcFFARight 26 right
vcFFATop 22 top
vcFFATopLeft 21 top left
vcFFATopRight 23 top right
BottomMargin
Property of VcLayerFormatField
This property lets you set or retrieve the width of the bottom margin of the
layer format field.
Data Type Explanation
Parameter:
Rückgabewert Integer Width of the bottom margin of the layer format field
0…9
Property value Integer Width of the bottom margin of the layer format field
0…9
BottomMargin
Property of VcLayerFormatField
This property lets you set or retrieve the width (in mm) of the bottom margin
of the layer format field. It can also be set in the Edit Layer Format dialog
box.
Data Type Explanation
Parameter:
Rückgabewert Integer Width of the bottom margin of the layer format field
0…9
Property value Integer Width of the bottom margin of the layer format field
0…9
ConstantText
Property of VcLayerFormatField
This property allows the layer format field to display a constant text, if the
property TextDataFieldIndex was set to -1.
Data Type Explanation
FormatName
Read Only Property of VcLayerFormatField
This property lets you retrieve the name of the layer format to which this
layer format field belongs.
Data Type Explanation
Index
Read Only Property of VcLayerFormatField
This property lets you enquire the index of the layer format field in the
corresponding layer format.
LeftMargin
Property of VcLayerFormatField
This property lets you set or retrieve the width of the left margin of the layer
format field.
Data Type Explanation
Parameter:
Rückgabewert Integer Width of the left margin of the layer format field
0…9
Property value Integer Width of the left margin of the layer format field
0…9
LeftMargin
Property of VcLayerFormatField
This property lets you set or retrieve the width (in mm) of the left margin of
the layer format field. It can also be set in the Edit Layer Format dialog
box.
Data Type Explanation
Parameter:
Rückgabewert Integer Width of the left margin of the layer format field
0…9
Property value Integer Width of the left margin of the layer format field
0…9
MinimumWidth
Property of VcLayerFormatField
This property lets you enquire or set the minimum width of the layer format
field in mm if the label size dependence allows it.
0 ... 99
Priority
Property of VcLayerFormatField
This property lets you specify or enquire the priority of the layer format field.
By the priority you can influence the allocation of the available space in the
field. The higher the priority, the greater the chance to get the space
necessary.
Data Type Explanation
RightMargin
Property of VcLayerFormatField
This property lets you set or retrieve the width of the right margin of the layer
format field.
Data Type Explanation
Parameter:
Rückgabewert Integer Width of the right margin of the layer format field
0…9
Property value Integer Width of the right margin of the layer format field
0…9
RightMargin
Property of VcLayerFormatField
This property lets you set or retrieve the width (in mm) of the right margin of
the layer format field. It can also be set in the Edit Layer Format dialog
box.
Parameter:
Rückgabewert Integer Width of the right margin of the layer format field
0…9
Property value Integer Width of the right margin of the layer format field
0…9
SuppressTruncatedText
Property of VcLayerFormatField
This property lets you set or retrieve whether text which doesn't fit in the
layer format field exactly is to be suppressed or cut.
Data Type Explanation
TextDataFieldIndex
Property of VcLayerFormatField
This property lets you set or retrieve the index of the data field, the content of
which is to be displayed in the layer format field. If the value of the index
equals -1, the content of the property ConstantText will be returned instead.
Data Type Explanation
TextFont
Property of VcLayerFormatField
This property lets you set or retrieve the font of the layer format field. If in
the property TextFontMapName a map is specified, this map will control
the text font color dependent on the data.
Data Type Explanation
TextFontColor
Property of VcLayerFormatField
This property lets you set or retrieve the font color of the layer format field, if
it is of the type vcFFTText. If a map was set by the property TextFontMap-
Name, the map will control the text font color in dependence of the data.
Data Type Explanation
TextFontColorDataFieldIndex
Property of VcLayerFormatField
This property lets you set or retrieve the data field index to be used with a
font color map specified by the property TextFontColorMapName. If you
set this property to -1, no map will be used.
Data Type Explanation
TextFontColorMapName
Property of VcLayerFormatField
This property lets you set or retrieve the name of a color map (type
vcColorMap) for the font color. If the name of the color map is set to "", no
map will be used. If a map name and a data field index are specified by the
property TextFontColorDataFieldIndex, the font color will be controlled by
the map. If no map entry applies, the font color specified in the property
TextFontColor will be used.
Data Type Explanation
TextFontDataFieldIndex
Property of VcLayerFormatField
This property lets you set or retrieve the data field index to be used together
with a font map specified by the property TextFontMapName. If you set
this property to -1, no map will be used.
Data Type Explanation
TextFontMapName
Property of VcLayerFormatField
This property lets you set or retrieve the name of a font map (type
vcFontMap). If set to "", no map will be used. If a map name and additionally
a data field index is specified in the property TextFontDataFieldIndex, then
the font is controlled by the map. If no data field entry applies, the font that is
specified in the property TextFont will be used.
Data Type Explanation
TextLineCount
Property of VcLayerFormatField
This property lets you enquire or set the line count, if the label size
dependence allows it
Data Type Explanation
TextLineCountDataFieldIndex
Property of VcLayerFormatField
This property lets you set or retrieve the data field index to be used together
with a numeric map specified by the property TextLineCountMapName. If
you set this property to -1, no map will be used.
TextLineCountMapName
Property of VcLayerFormatField
This property lets you set or retrieve the name of a numeric map for the
number of text lines. If the name of the map is set to "", no map will be used.
If a map name and a data field index are specified by the property TextLine-
CountDataFieldIndex, the number of lines will be controlled by the map. If
no map entry applies, the number of lines specified by the property Text-
LineCount will be used.
Data Type Explanation
TopMargin
Property of VcLayerFormatField
This property lets you set or retrieve the width of the top margin of the layer
format field.
Data Type Explanation
Parameter:
Rückgabewert Integer Width of the top margin of the layer format field
0…9
Property value Integer Width of the top margin of the layer format field
0…9
TopMargin
Property of VcLayerFormatField
This property lets you set or retrieve the width (in mm) of the top margin of
the layer format field. It can also be set in the Edit Layer Format dialog
box.
Parameter:
Rückgabewert Integer Width of the top margin of the layer format field
0…9
Property value Integer Width of the top margin of the layer format field
0…9
Methods
CalculateLineCount
Method of VcLayerFormatField
For external fields of a layer only: This method calculates the number of
text lines in the layer format field of the designated node, considering the
current sizes of the layer and of the font. If internal fields are passed, -1 will
be returned. The result of the method can be stored to a data field of the node
to control the number of lines displayed (See dialog Edit layer format ->
Line count).
Data Type Explanation
Parameter:
node VcNode Node
7.52 VcLegendView
Properties
• Border
• Height
• HeightActualValue
• Left
• LeftActualValue
• ParentHWnd
• ScrollBarMode
• Top
• TopActualValue
• Visible
• Width
• WidthActualValue
• WindowMode
Properties
Border
Property of VcLegendView
This property lets you set or retrieve whether the legend view has a frame
(not in vcPopupWindow mode). he color of the frame is Color.Black. This
property also can be set on the Additional Views property page.
Data Type Explanation
Property value Boolean Legend view with a border line (True)/without border
line (False)
Default value: True
Example Code
VcGantt1.LegendView.Mode = vcNotFixed
VcGantt1.LegendView.Border = True
Height
Property of VcLegendView
This property lets you retrieve the vertical extent of the legend view. In the
modes vcFixedAtTop, vcFixedAtBottom, vcNotFixed and
vcPopupWindow of the property Mode it can also be set.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
This property also can be set on the Additional Views property page.
Data Type Explanation
{0, ...}
Default value: 100
Example Code
VcGantt1.LegendView.Height = 100
HeightActualValue
Read Only Property of VcLegendView
This property lets you retrieve the vertical extent of the legend view which
actually is displayed. In the modes b!vcLVFixedAtBottom,
vcLVFixedAtLeft, vcLVFixedAtRight, vcLVFixedAtTop the actual value
may differ from the one that was set because in these modes either the height
or the width is preset.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/in Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
Data Type Explanation
{0, ...}
Default value: 100
Example Code
VcGantt1.LegendView.HeightActualValue = 300
Left
Property of VcLegendView
This property lets you retrieve the left position of the legend view. In the
modes vcLVNotFixed and vcLVPopupWindow of the property Mode it can
also be set.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
This property also can be set on the Additional Views property page.
Data Type Explanation
Example Code
VcGantt1.LegendView.Left = 200
LeftActualValue
Read Only Property of VcLegendView
This property lets you retrieve the left position of the legend view which
actually is displayed. In the modes b!vcLVFixedAtBottom,
vcLVFixedAtLeft, vcLVFixedAtRight, vcLVFixedAtTop the actual value
may differ from the one that was set because in these modes either height or
width is preset.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
Data Type Explanation
Example Code
VcGantt1.LegendView.LeftActualValue = 150
ParentHWnd
Property of VcLegendView
In the vcLVNotFixed mode, this property lets you set the HWnd handle of
the parent window, for example, if the legend view is to appear in a frame
window implemented by your own. By default, the frame window is
positioned on the HWnd handle of the parent window of the VARCHART
ActiveX main window. This property can be used only at run time.
Data Type Explanation
Example Code
MsgBox (VcGantt1.legendview.ParentHWnd)
ScrollBarMode
Property of VcLegendView
This property lets you set or retrieve the scroll bar mode of the legend view.
This property also can be set on the Additional Views property page.
Data Type Explanation
Possible Values:
vcAutomaticScrollBar 3 Display of a horizontal or vertical scrollbar if
required.
vcHorizontalScrollBar 1 Display of a horizontal scrollbar if required.
vcNoScrollBar 0 The complete chart is displayed without
scrollbars.
vcVerticalScrollBar 2 Display of a vertical scrollbar if required.
Example Code
VcGantt1.LegendView.ScrollBarMode = vcAutomaticScrollBar
Top
Property of VcLegendView
This property lets you retrieve the top position of the legend view. In the
modes vcNotFixed und vcPopupWindow of the property Mode it also can
be set.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
This property also can be set on the Additional Views property page.
Data Type Explanation
Example Code
VcGantt1.LegendView.Top = 20
TopActualValue
Read Only Property of VcLegendView
This property lets you retrieve the top position of the legend view which
actually is displayed. In the modes b!vcLVFixedAtBottom,
vcLVFixedAtLeft, vcLVFixedAtRight, vcLVFixedAtTop the actual value
may differ from the one that was set because in these modes either the height
or the width is preset.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
Data Type Explanation
Example Code
VcGantt1.LegendView.TopActualValue = 40
Visible
Property of VcLegendView
This property lets you enquire/set whether the legend view is visible or not.
This property also can be set on the Additional Views property page.
Example Code
VcGantt1.LegendView.Visible = True
Width
Property of VcLegendView
This property lets you retrieve the horizontal extent of the legend view. In the
modes vcFixedAtLeft, vcFixedAtRight, vcNotFixed and vcPopupWindow
of the property Mode it also can be set.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
This property also can be set on the Additional Views property page.
Data Type Explanation
{0, ...}
Default value: 100
Example Code
VcGantt1.LegendView.Width = 200
WidthActualValue
Read Only Property of VcLegendView
This property lets you retrieve the horizontal extent of the legend view which
actually is displayed. In the mode b!vcLVFixedAtBottom,
vcLVFixedAtLeft, vcLVFixedAtRight, vcLVFixedAtTop the actual value
may differ from the one that was set because in these modes either the height
or the width is preset. Please note that the pixel coordinates are system
coordinates, i. e. in Visual Basic you have to perform a conversion from/to
Twips by the properties App.TwipsPerPixelX and App.TwipsPerPixelY.
{0, ...}
Default value: 100
Example Code
VcGantt1.LegendView.WidthActualValue = 600
WindowMode
Property of VcLegendView
This property lets you enquire/set the legend view mode. This property also
can be set on the Additional Views property page.
Data Type Explanation
Possible Values:
vcFixedAtBottom 4 The legend view is displayed on the bottom of
the VARCHART ActiveX control window. Then
the height can be specified, whereas the position
and the width are fixed.
vcFixedAtLeft 1 The legend view is displayed on the left side of
the VARCHART ActiveX control window. Then
the width can be specified, whereas the position
and the height are fixed.
vcFixedAtRight 2 The legend view is displayed on the right side of
the VARCHART ActiveX control window. Then
the width can be specified, whereas the position
and the height are fixed.
vcFixedAtTop 3 The legend view is displayed on the top of the
VARCHART ActiveX control window. Then the
height can be specified, whereas the position
and the width are fixed.
vcNotFixed 5 The legend view is a child window of the current
parent window of the VARCHART ActiveX. It can
be positioned at any position with any extension.
The parent window can be modified via the
property VcWorldView.ParentHWnd.
vcPopupWindow 6 The legend view is a popup window with its own
frame. The user can modify its position and
extension, open it via the default context menu,
and close it via the Close button in the frame.
Example Code
VcGantt1.LegendView.WindowMode = vcNotFixed
7.53 VcLineFormat
An object of the type VcLineFormat defines the content and the appearance
of lines, for example in a date line grid.
Properties
• _NewEnum
• FormatField
• FormatFieldCount
• Name
• Specification
Methods
• CopyFormatField
• RemoveFormatField
Properties
_NewEnum
Read Only Property of VcLineFormat
Example Code
Dim formatField As VcLineFormatField
FormatField
Read Only Property of VcLineFormat
Note to users of versions previous to 3.0: The index does not count in the
range from 1 to FormatFieldCount as in the versions up to 3.0.
Data Type Explanation
Parameter:
index Integer Index of the line format field
0 ... .FormatFieldCount-1
FormatFieldCount
Read Only Property of VcLineFormat
This property lets you retrieve the number of format fields of this line format.
Data Type Explanation
Example Code
Dim format As VcLineFormat
Dim numberOfColumns As Integer
Name
Property of VcLineFormat
This property lets you set / retrieve the name of the line format.
Data Type Explanation
Example Code
Dim format As VcLineFormat
Dim formatName As String
Specification
Read Only Property of VcLineFormat
Methods
CopyFormatField
Method of VcLineFormat
This method copies a line format field, returning the new VcLineFormatField
object. It contains the next consecutive unused index.
Data Type Explanation
Parameter:
position FormatFieldPositionEnum Position of the new line format field
Possible Values:
vcAbove 1 above
vcBelow 3 below
vcLeftOf 0 left of
vcOutsideAbove 9 outside, above
vcOutsideBelow 11 outside, below
vcOutsideLeftOf 8 outside, left of
vcOutsideRightOf 12 outside, right of
vcRightOf 4 right of
RemoveFormatField
Method of VcLineFormat
This method lets you remove a layer format field by its index. After that, the
program will update all layer format field indexes so that they are
consecutively numbered again.
Data Type Explanation
Parameter:
index Integer Index of the line format field to be deleted
7.54 VcLineFormatCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• Copy
• FirstFormat
• FormatByIndex
• FormatByName
• NextFormat
• Remove
Properties
_NewEnum
Read Only Property of VcLineFormatCollection
Example Code
Dim format As VcLineFormat
Count
Read Only Property of VcLineFormatCollection
This property lets you retrieve the number of line formats in the line format
collection.
Data Type Explanation
Example Code
Dim lineFormatCltn As VcLineFormatCollection
Dim numberOfLineformats As Long
Methods
Add
Method of VcLineFormatCollection
By this method you can create a line format as a member of the LineFormat-
Collection. If the name was not used before, the new box object will be
returned. Otherwise "Nothing" (in Visual Basic) or "0" (other languages) will
be returned.
Data Type Explanation
Parameter:
FormatName String Name of the line format
Example Code
Set newLineFormat = VcGantt1.LineFormatCollection.Add("boxFormat1")
AddBySpecification
Method of VcLineFormatCollection
This method lets you create a line format by using a box format specification.
This way of creating allows line format objects to become persistent. The
specification of a line format can be saved and re-loaded (see VcLineFormat
property Specification). In a subsequent session the line format can be
created again from the specification and is identified by its name.
Data Type Explanation
Parameter:
formatSpecification String Line format specification
Copy
Method of VcLineFormatCollection
By this method you can copy a line format. If the line format that is to be
copied exists, and if the name for the new line format does not yet exist, the
new line format object is returned. Otherwise "Nothing" (in Visual Basic) or
"0" (other languages) will be returned.
Data Type Explanation
Parameter:
FormatName String Name of the line format to be copied
Example Code
Dim lineFormatCltn As VcLineFormatCollection
Dim lineFormat As VcLineFormat
FirstFormat
Method of VcLineFormatCollection
This method can be used to access the initial value, i.e. the first line format of
a line format collection and then to continue in a forward iteration loop by the
method NextFormat for the line formats following. If there is no line format
in the line format collection, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Example Code
Dim format As VcLineFormat
FormatByIndex
Method of VcLineFormatCollection
This method lets you access a line format by its index. If a line format of the
specified index does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the linde format
Example Code
Dim lineFormatCltn As VcLineFormatCollection
Dim format As VcLineFormat
FormatByName
Method of VcLineFormatCollection
By this method you can retrieve a line format by its name. If a line format of
the specified name does not exist, a none object will be returned (Nothing in
Visual Basic).
Parameter:
formatName String Name of the line format
Example Code
Dim formatCltn As VcLineFormatCollection
Dim format As VcLineFormat
NextFormat
Method of VcLineFormatCollection
Example Code
Dim formatCltn As VcLineFormatCollection
Dim format As VcLineFormat
Remove
Method of VcLineFormatCollection
This method lets you delete a line format. If the line format is still used by
another object, it cannot be deleted. Then False will be returned, otherwise
True.
Data Type Explanation
Parameter:
FormatName String Line format name
Return value Boolean Line format deleted (True) / not deleted (False)
Example Code
Dim lineFormatCltn As VcLineFormatCollection
Dim lineFormat As VcLineFormat
7.55 VcLineFormatField
Properties
• Alignment
• ConstantText
• DateOutputFormat
• FormatName
• Index
• PatternBackgroundColorAsARGB
• PatternBackgroundColorDataFieldIndex
• PatternBackgroundColorMapName
• PatternColorAsARGB
• PatternColorDataFieldIndex
• PatternColorMapName
• PatternEx
• PatternExDataFieldIndex
• PatternExMapName
• TextDataFieldIndex
• TextFont
• TextFontColor
• TextFontColorDataFieldIndex
• TextFontColorMapName
• TextFontDataFieldIndex
• TextFontMapName
• TextLineCount
Properties
Alignment
Property of VcLineFormatField
This property lets you set or retrieve the alignment of the content of the line
format field.
Data Type Explanation
Possible Values:
vcFFABottom 28 bottom
vcFFABottomLeft 27 bottom left
vcFFABottomRight 29 bottom right
vcFFACenter 25 center
vcFFALeft 24 left
vcFFARight 26 right
vcFFATop 22 top
vcFFATopLeft 21 top left
vcFFATopRight 23 top right
ConstantText
Property of VcLineFormatField
This property allows the line format field to display a constant text, if the line
format field is of the type vcFFTText and if the property TextDataField-
Index was set to -1.
Data Type Explanation
DateOutputFormat
Property of VcLineFormatField
This property lets you specify or enquire the date output format. To compose
the date you can use the below codes:
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in ''\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
{DMYhms:;/}
Example Code
VcLineFormatField.DateOutputFormat = "DD.MM.YY"
FormatName
Read Only Property of VcLineFormatField
This property lets you retrieve the name of the line format to which this line
format field belongs.
Data Type Explanation
Index
Read Only Property of VcLineFormatField
This property lets you retrieve the index of the line format field in the
corresponding line format.
Data Type Explanation
PatternBackgroundColorAsARGB
Property of VcLineFormatField
This property lets you set or retrieve the background color of the line format
field. Color values have a transparency or alpha value, followed by a value
for a red, a blue and a green partition (ARGB). The values range between
0..255. An alpha value of 0 equals complete transparency, whereas 255
represents a completely solid color. When casting an RGB value on an
ARGB value, an alpha value of 255 has to be added.
If the line format field shall have the color of the line format, select the value
-1.
PatternBackgroundColorDataFieldIndex
Property of VcLineFormatField
This property lets you set or retrieve the data field index to be used with a
color map specified by the property PatternBackgroundColorMapName. If
you set this property to -1, no map will be used.
Data Type Explanation
PatternBackgroundColorMapName
Property of VcLineFormatField
This property lets you set or retrieve the name of a color map (type vcColor-
Map). If set to "", no map will be used. If a map name and additionally a data
field index is specified in the property PatternBackgroundColorDataField-
Index, then the background color is controlled by the map. If no data field
entry applies, the background color that is specified in the property Back-
Color will be used.
Data Type Explanation
PatternColorAsARGB
Property of VcLineFormatField
This property lets you set or retrieve the pattern color of the line format field.
Color values have a transparency or alpha value, followed by a value for a
red, a blue and a green partition (ARGB). The values range between 0..255.
An alpha value of 0 equals complete transparency, whereas 255 represents a
If the box format field shall have the background color of the box format,
select the value -1.
Data Type Explanation
Example Code
Dim boxFormatCltn As VcBoxFormatCollection
Dim boxFormatField As VcBoxFormatField
PatternColorDataFieldIndex
Read Only Property of VcLineFormatField
This property lets you set or retrieve the data field index that has to be
specified if the property PatternColorMapName is used. If you set this
property to -1, no map will be used.
Data Type Explanation
PatternColorMapName
Property of VcLineFormatField
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. Only if a map name and a
data field index are specified in the property PatternColorDataFieldIndex,
the pattern color is controlled by the map. If no data field entry applies, the
pattern color of the calendar grid that is specified in the property
PatternColor will be used.
Data Type Explanation
PatternEx
Property of VcLineFormatField
This property lets you set or retrieve the pattern of the field background of
the line format field.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
PatternExDataFieldIndex
Property of VcLineFormatField
This property lets you set or retrieve the data field index to be used together
with the property PatternExMapName. If you set this property to -1, no
map will be used.
Data Type Explanation
PatternExMapName
Property of VcLineFormatField
This property lets you set or retrieve the name of a font map (type
vcPatternMap). If set to "", no map will be used. If a map name and
additionally a data field index is specified in the property
PatternExDataFieldIndex, then the pattern is controlled by the map. If no
data field entry applies, the pattern that is specified in the property
PatternEx will be used.
Data Type Explanation
TextDataFieldIndex
Property of VcLineFormatField
only for the type vcFFTText: This property lets you set or retrieve the index
of the data field, the content of which is to be displayed in the line format
field. If its value equals -1, the content of the property ConstantText will be
returned.
Data Type Explanation
TextFont
Property of VcLineFormatField
This property lets you set or retrieve the font color of the line format field, if
it is of the type vcFFTText. If a map was set by the property TextFontMap-
Name, the map will control the text font in dependence of the data.
Data Type Explanation
TextFontColor
Property of VcLineFormatField
This property lets you set or retrieve the font color of the line format field, if
it is of the type vcFFTText. If a map was set by the property TextFontMap-
Name, the map will control the text font color in dependence of the data.
Data Type Explanation
TextFontColorDataFieldIndex
Property of VcLineFormatField
This property lets you set or retrieve the data field index to be used with a
font color map specified by the property TextFontColorMapName. If you
set this property to -1, no map will be used.
Data Type Explanation
TextFontColorMapName
Property of VcLineFormatField
This property lets you set or retrieve the name of a color map (type
vcColorMap) for the font color, if the format field is of the type vcFFTText.
If the name of the color map is set to "", no map will be used. If a map name
TextFontDataFieldIndex
Property of VcLineFormatField
This property lets you set or retrieve the data field index to be used with a
font map specified by the property TextFontMapName. If you set this
property to -1, no map will be used.
Data Type Explanation
TextFontMapName
Property of VcLineFormatField
This property lets you set or retrieve the name of a font map (type
vcFontMap). If set to "", no map will be used. If a map name and additionally
a data field index is specified in the property TextFontDataFieldIndex, then
the font is controlled by the map. If no data field entry applies, the font that is
specified in the property TextFont will be used.
Data Type Explanation
TextLineCount
Property of VcLineFormatField
This property lets you set or retrieve the number of lines, if the size of the
annotation field allows for more than one line.
7.56 VcLink
A VcLink object represents the logical and graphical link between two nodes.
On the Link property page you can specify via a tick box Show links
whether links should be displayed. Even if they are not displayed, they will
be used for scheduling.
Properties
• AllData
• DataField
• ID
• PredecessorNode
• SuccessorNode
Methods
• DataRecord
• DeleteLink
• RelatedDataRecord
• UpdateLink
Properties
AllData
Property of VcLink
This property lets you set or retrieve all data fields of a link. When setting the
data, you can specify a CSV string (using semicolons as separators) or a data
field. When retrieving the data, a character string will be returned. (See also
InsertLinkRecord.)
Data Type Explanation
Example Code
Dim linkCltn As VcLinkCollection
Dim link As VcLink
Dim allDataOfLink As String
allDataOfLink = link.AllData
DataField
Property of VcLink
This property lets you set or retrieve a specific data field of a link. The values
which identify the predecessor and the successor nodes must not be changed.
Data Type Explanation
Parameter:
index Integer Index of the data field
Example Code
Dim linkCltn As VcLinkCollection
Dim link As VcLink
Dim message As String
ID
Read Only Property of VcLink
PredecessorNode
Read Only Property of VcLink
Example Code
Dim linkCltn As VcLinkCollection
Dim link As VcLink
Dim node As VcNode
Dim nodeName As String
SuccessorNode
Read Only Property of VcLink
Example Code
Dim linkCltn As VcLinkCollection
Dim link As VcLink
Dim node As VcNode
Dim nodeName As String
Methods
DataRecord
Method of VcLink
This property lets you retrieve the link as a data record object. The properties
of the data record object give access to the corresponding data table and the
data table collection.
DeleteLink
Method of VcLink
Return value Boolean Link was (True) / was not (False) successfully
deleted
Example Code
Private Sub VcGantt1_OnLinkRClick(ByVal link As VcGanttLib.VcLink, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
returnStatus = vcRetStatNoPopup
End Sub
RelatedDataRecord
Method of VcLink
This property lets you retrieve a data record from a data table that is related to
the link data table. The index passed by the parameter denotes the field in the
data record that holds the key of the related data record.
Data Type Explanation
Parameter:
index Integer Index of data field that holds the key
UpdateLink
Method of VcLink
When a data field of a link was edited by the DataField property, you can
update the diagram by the UpdateLink method.
Data Type Explanation
Return value Boolean Link was (True) / was not (False) updated
successfully
Example Code
Dim linkCltn As VcLinkCollection
Dim link As VcLink
link.DataField(2) = "10"
link.UpdateLink
7.57 VcLinkAppearance
Properties
• FilterName
• LineColor
• LineThickness
• LineType
• Name
• PredecessorLayerName
• PrePortSymbol
• RoutingType
• Specification
• SuccessorLayerName
• SuccPortSymbol
• Visible
Methods
• PutInOrderAfter
Properties
FilterName
Read Only Property of VcLinkAppearance
This property lets you enquire the filter that is used for a specific link
appearance. This property also can be set on the Link property page.
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
Dim filterOfLinkApp As String
LineColor
Property of VcLinkAppearance
This property lets you set or retrieve the line color of a LinkAppearance
object. This property can also be set on the Link property page in the Line
attributes dialog.
Data Type Explanation
({0...255},{0...255},{0...255})
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
LineThickness
Property of VcLinkAppearance
This property lets you set or retrieve the line thickness of a LinkAppearance
object.
If you set this property to values between 1 and 4, an absolute line thickness
is defined in pixels. Irrespective of the zoom factor a line will always show
the same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
Value Points mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
Data Type Explanation
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
linkAppearance.LineThickness = 4
LineType
Property of VcLinkAppearance
This property lets you set or retrieve the line type of a LinkAppearance
object. This property can also be set in the Line Attributes dialog box that
can be invoked by the Link property page.
Data Type Explanation
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
linkAppearance.LineType = 5
Name
Read Only Property of VcLinkAppearance
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
Dim nameLinkApp As String
nameLinkApp = linkAppearance.name
PredecessorLayerName
Property of VcLinkAppearance
This property lets you specify or retrieve to which layer of the predecessor
node a link is to be drawn. If you enter "" (default), the link will be drawn to
the first visible layer of this node.
Property value String Character string that passes the layer name
PrePortSymbol
Property of VcLinkAppearance
This property lets you assign/retrieve a port symbol to/from a link, that
visually accentuates the junction of the link and the predecessor node.
Possible Values:
vcLPSArrow 64 Predecessor port symbol arrow
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
Dim nameLinkApp As String
linkAppearance.PrePortSymbol = vcLPSFilledDoubleSemiCircle
RoutingType
Property of VcLinkAppearance
This property lets you set or retrieve, whether the links of the diagram should
be drawn horizontally and vertically only (and therefore show orthogonal
shapes), or if they are allowed to lead directly to their aim, probably on an
oblique route, allowing to cut through objects.
Possible Values:
vcLRTNotSet -1 A routing type is used which is further up the
list of the LinkAppearance objects.
vcLRTOrthogonal 1 Links run horizontally and vertically only and
show an orthogonal shape.
Specification
Read Only Property of VcLinkAppearance
SuccessorLayerName
Property of VcLinkAppearance
This property lets you specify or retrieve to which one of the layers of the
successor node a link is to be drawn. If you set "" (default), the link will be
drawn to the first visible layer of the node.
Property value String Character string that passes the layer name
SuccPortSymbol
Property of VcLinkAppearance
This property lets you assign/retrieve a port symbol to a link, that visually
accentuates the intersection of the link and the successor node.
Possible Values:
vcLSSArrow 32 Successor port symbol arrow
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
Dim nameLinkApp As String
linkAppearance.SuccPortSymbol = vcLSSFilledDoubleArrow
Visible
Property of VcLinkAppearance
This property lets you set or retrieve whether the link is to be visible or not,
taking no effect, however, on the phantom lines for links while dragging.
This property can also be set on the Links property page, but here also
applying to the phantom lines.
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
Dim nameLinkApp As String
linkAppearance.Visible = False
Methods
PutInOrderAfter
Method of VcLinkAppearance
This method lets you set the link appearance behind a link appearance
specified by name, within the LinkAppearanceCollection. If you set the name
to "", the link appearence will be put in the first position. The order of the
link appearances within the collection determines the order by which they
apply to the links.
Data Type Explanation
Parameter:
refLinkAppearanceName String Name of the link appearance behind which the
current link appearance is to be put.
Example Code
Dim linkAppCltn As VcLinkAppearanceCollection
Dim linkApp1 As VcLinkAppearance
Dim linkApp2 As VcLinkAppearance
linkAppCltn = VcGantt1.LinkAppearanceCollection()
linkApp1 = linkAppCltn.Add("linkApp1")
linkApp2 = linkAppCltn.Add("linkApp2")
linkApp1.PutInOrderAfter("linkApp2")
linkAppCltn.Update()
7.58 VcLinkAppearanceCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• Copy
• FirstLinkAppearance
• LinkAppearanceByIndex
• LinkAppearanceByName
• NextLinkAppearance
• Remove
• Update
Properties
_NewEnum
Read Only Property of VcLinkAppearanceCollection
Example Code
Dim linkApp As VcLinkAppearance
Count
Read Only Property of VcLinkAppearanceCollection
This property lets you retrieve the number of link appearances in the
LinkAppearanceCollection object.
Data Type Explanation
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
Dim numberOfLinkAppearances As Integer
numberOfLinkAppearances = linkAppearanceCltn.Count
Methods
Add
Method of VcLinkAppearanceCollection
By this method you can create a new link appearance as a member of the
LinkAppearanceCollection. If the name was not used before, the new linke
appearance object will be returned. Otherwise "Nothing" (in Visual Basic) or
"0" (other languages) will be returned. All attributes of the new links
appearance by default are set to transparent .
Parameter:
newName String Name of the link appearance
Example Code
Set newLinkAppearance = VcGantt1.LinkAppearanceCollection.Add("linkapp1")
AddBySpecification
Method of VcLinkAppearanceCollection
This method lets you create a link appearance by using a link appearance
specification. This way of creating allows link appearance objects to become
persistent. The specification of a link appearance can be saved and re-loaded
(see VcLinkAppearance property Specification). In a later session the link
appearance can be created again from the specification and is identified by its
name.
Data Type Explanation
Parameter:
linkAppearanceSpecification String Link appearance specification
Copy
Method of VcLinkAppearanceCollection
By this method you can copy a link appearance. When the link appearance
has come into existence and if the name for the new link appearance did not
yet exist, the new link appearance object will be returned. Otherwise
"Nothing" (in Visual Basic) or "0" (other languages) will be returned.
Data Type Explanation
Parameter:
fromName String Name of the link appearance to be copied
FirstLinkAppearance
Method of VcLinkAppearanceCollection
This method can be used to access the initial value, i.e. the first link
appearance of a link appearance collection and then to continue in a forward
iteration loop by the method NextLinkAppearance for the link appearances
following. If there is no link appearance in the link appearance collection, a
none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
LinkAppearanceByIndex
Method of VcLinkAppearanceCollection
This method lets you access a link appearance object by its index. If a link
appearance object of the specified index does not exist, a none object will be
returned (Nothing in Visual Basic).
Data Type Explanation
LinkAppearanceByName
Method of VcLinkAppearanceCollection
Parameter:
linkAppearanceName String Name of the link appearance object
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
NextLinkAppearance
Method of VcLinkAppearanceCollection
Example Code
Dim linkAppearanceCltn As VcLinkAppearanceCollection
Dim linkAppearance As VcLinkAppearance
Remove
Method of VcLinkAppearanceCollection
This method lets you delete a link appearance. If the link appearance is used
by a different object, it cannot be deleted. In the latter case False will be
returned, otherwise True.
Data Type Explanation
Parameter:
name String Name of the link appearance
Update
Method of VcLinkAppearanceCollection
This method lets you update a collection of link appearances after having
modified it.
Data Type Explanation
7.59 VcLinkCollection
An object of the type VcLinkCollection contains all available links. You can
access all objects in an iterative loop by For Each link In LinkCollection or
by the methods First... and Next.... The number of links in the collection
object can be retrieved by the property Count.
Properties
• _NewEnum
• Count
Methods
• FirstLink
• NextLink
• SelectLinks
Properties
_NewEnum
Read Only Property of VcLinkCollection
Example Code
Dim link As VcLink
Count
Read Only Property of VcLinkCollection
This property lets you retrieve the number of links in the link collection.
Data Type Explanation
Example Code
Dim linkCltn As VcLinkCollection
Dim numberLinks As Integer
Methods
FirstLink
Method of VcLinkCollection
This method can be used to access the initial value, i.e. the first link of a link
collection, and to continue in a forward iteration loop by the method
NextLink for the links following. If there is no link in the link collection, a
none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim linkCltn As VcLinkCollection
Dim link As VcLink
NextLink
Method of VcLinkCollection
Example Code
Dim linkCltn As VcLinkCollection
Dim link As VcLink
Dim stringLink As String
SelectLinks
Method of VcLinkCollection
This method lets you specify the links that the link collection is to contain.
Data Type Explanation
Parameter:
selectionType SelectionTypeEnum Links to be selected
Possible Values:
vcAll 0 All objects in the diagram will be selected
vcAllLinksCausingCycles 7 If this selection type is chosen, the link collection
will contain all links that cause the existence of
cycles. If these links are deleted, cycles will cede
to exist in this chart.
vcAllLinksInCycles 6 If this selection type is chosen, the link collection
will contain all links that participate in forming
cycles. Cycles are chains of nodes and links of
which the beginning and end join.
vcAllVisible 1 All visible objects will be selected
vcSelected 2 All marked objects will be selected
Example Code
Dim linkCollection As VcLinkCollection
7.60 VcMap
Maps define certain properties of nodes by data field entries, for example
their background color which is based on the data of the node record.
In a map you can specify 150 map entries at maximum. By the call For Each
mapEntry In Map you can retrieve all data field entries in an iterative loop.
Properties
• _NewEnum
• ConsiderFilterEntries
• Count
• Name
• Specification
• Type
Methods
• CreateEntry
• DeleteEntry
• FirstMapEntry
• GetMapEntry
• NextMapEntry
Properties
_NewEnum
Read Only Property of VcMap
Example Code
Dim map As VcMap
ConsiderFilterEntries
Read Only Property of VcMap
This property lets you set/retrieve whether filters are considered when a map
is assigned to data field entries so that ranges of values can also be specified
as keys.
Data Type Explanation
Count
Read Only Property of VcMap
This property lets you retrieve the number of map entries in a map.
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim numberOfEntries As Long
Name
Read Only Property of VcMap
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapName As String
Specification
Read Only Property of VcMap
Type
Property of VcMap
Possible Values:
vcAnyMap 0 any (used only for selecting)
vcColorMap 1 Colors
vcFontMap 8 Fonts
vcGraphicsFileMap 7 Graphics file
vcMillimeterMap 9 Millimeters
vcNumberMap 10 Numbers
vcPatternMap 3 Pattern
vcTextMap 6 Text
Example Code
Dim mapCollection As VcMapCollection
Dim map As VcMap
Methods
CreateEntry
Method of VcMap
This method lets you create a new entry (a new row) for a map. To make the
entry work, the method MapCollection.Update() should be invoked after
creating.
Data Type Explanation
Example Code
Set mapCltn = VcGantt1.MapCollection
Set map = mapCltn.Add("MapColor")
map.Type = vcColorMap
Set mapEntry = map.CreateEntry
mapEntry.DataFieldValue = "Green"
mapEntry.Color = RGB(0, 255, 0)
Set mapEntry = map.CreateEntry
mapEntry.DataFieldValue = "Red"
mapEntry.Color = RGB(255, 0, 0)
mapCltn.Update
DeleteEntry
Method of VcMap
This method lets you delete an entry (a row) of the map. To make the
deletion work, the method MapCollection.Update() should be invoked after
deleting.
Data Type Explanation
Parameter:
mapEntry VcMapEntry Map entry
Return value Boolean Map entry was (True) / was not (False) deleted
successfully
Example Code
Dim mapCltn As VcMapCollection
map.DeleteEntry mapEntry
mapCltn.Update
FirstMapEntry
Method of VcMap
This method can be used to access the initial value, i.e. the first entry of a
map object and then to continue in a forward iteration loop by the method
NextMapEntry for the entries following. If there is no entry in the map, a
none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
GetMapEntry
Method of VcMap
This method returns the corresponding map entry for the given data field
value.
Data Type Explanation
NextMapEntry
Method of VcMap
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
7.61 VcMapCollection
Properties
• _NewEnum
• Count
Methods
• Add
• AddBySpecification
• Copy
• FirstMap
• MapByIndex
• MapByName
• NextMap
• Remove
• SelectMaps
• Update
Properties
_NewEnum
Read Only Property of VcMapCollection
Example Code
Dim map As VcMap
Count
Read Only Property of VcMapCollection
This property lets you retrieve the number of maps in the MapCollection
object.
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim numberOfMaps As Long
Methods
Add
Method of VcMapCollection
Parameter:
mapName String Map name
Example Code
Set newMap = VcGantt1.MapCollection.Add("map1")
AddBySpecification
Method of VcMapCollection
This method lets you create a map by using a map specification. This way of
creating allows map objects to become persistent. The specification of a map
can be saved and re-loaded (see VcMap property Specification). In a
subsequent session the map can be created again from the specification and is
identified by its name.
Data Type Explanation
Parameter:
Specification String Map specification
Copy
Method of VcMapCollection
By this method you can copy a map. If the map that is to be copied exists,
and if the name for the new map does not yet exist, the new map object is
returned. Otherwise "Nothing" (in Visual Basic) or "0" (other languages) will
be returned.
Data Type Explanation
Parameter:
mapName String Name of the map to be copied
FirstMap
Method of VcMapCollection
This method can be used to access the initial value, i.e. the first map of a map
collection and then to continue in a forward iteration loop by the method
NextMap for the maps following. If there is no map in the MapCollection, a
none object will be returned (Nothing in Visual Basic). Before using this
method, a selection of maps needs to have been defined by the method
VcMapCollection.SelectMaps.
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
MapByIndex
Method of VcMapCollection
This method lets you access a map by its index. If a map of the specified
index does not exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
index Integer Index of the map
MapByName
Method of VcMapCollection
By this method you can get a map by its name. Beforehand, a set of maps
needs to be selected by the method SelectMaps. If a map of the specified
name does not exist, a none object will be returned (Nothing in Visual
Basic).
Parameter:
mapName String Name of the map
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
NextMap
Method of VcMapCollection
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Remove
Method of VcMapCollection
This method lets you delete a map. If the map is used in another object, it
cannot be deleted. Then False will be returned, otherwise True.
Data Type Explanation
Parameter:
mapName String Map name
SelectMaps
Method of VcMapCollection
This method lets you specify the map types that your map collection is
allowed to contain.
Data Type Explanation
Parameter:
selectionType MapTypeEnum Map type to be selected
Possible Values:
vcAnyMap 0 any (used only for selecting)
vcColorMap 1 Colors
vcFontMap 8 Fonts
vcGraphicsFileMap 7 Graphics file
vcMillimeterMap 9 Millimeters
vcNumberMap 10 Numbers
vcPatternMap 3 Pattern
vcTextMap 6 Text
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Update
Method of VcMapCollection
This method has to be used when map modifications have been made. The
method UpdateMaps updates all objects that are concerned by the maps you
have edited. You should call this method at the end of the code that defines
the maps and the map collection. Otherwise the update will be processed
before all map definitions are processed.
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
mapEntry.Color = RGB(0, 0, 0)
mapCltn.Update
7.62 VcMapEntry
Properties
• ColorAsARGB
• DataFieldValue
• FontBody
• FontName
• FontSize
• GraphicsFileName
• Legend
• Millimeter
• Number
• Pattern
Properties
ColorAsARGB
Property of VcMapEntry
for Color Maps: This property lets you set or retrieve the color value of a
map entry. Color values have a transparency or alpha value, followed by a
value for a red, a blue and a green partition (ARGB). The values range
between 0..255. An alpha value of 0 equals complete transparency, whereas
({0...255},{0...255},{0...255},{0...255})
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
Dim colorOfMapEntry As OLE_COLOR
colorOfMapEntry = mapEntry.Color
DataFieldValue
Property of VcMapEntry
This property lets you set or retrieve the content of a data of each map entry.
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
Dim dataFieldValue As String
dataFieldValue = mapEntry.DataFieldValue
FontBody
Property of VcMapEntry
for font maps: This property lets you set or retrieve the font body of the map
entry.
Possible Values:
vcBold 2 bold
vcBoldItalic 4 bold and italic
vcItalic 3 italic
vcRegular 1 regular
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
Dim FontBodyOfMapEntry As FontBodyEnum
FontBodyOfMapEntry = vcBold
FontName
Property of VcMapEntry
for font maps: This property lets you set or retrieve the font name of the map
entry.
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
Dim FontNameOfMapEntry As String
FontNameOfMapEntry = "Arial"
FontSize
Property of VcMapEntry
for font maps: This property lets you set or retrieve the font name of he map
entry.
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
Dim FontSizeOfMapEntry As Long
FontSizeOfMapEntry = 12
GraphicsFileName
Property of VcMapEntry
For graphics file maps: This property lets you set or retrieve the graphics file
name of a map entry. Available formats:
EMF, EMF+, VMF and WMF are vector formats that allow to store a file
independent of pixel resolution. All other formats are pixel-oriented and
confined to a limited resolution.
The VMF format basically has been deprecated, but it will still be supported
for some time to maintain compatibility with existing applications.
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
Legend
Property of VcMapEntry
This property lets you set or retrieve the legend text of a map entry.
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
Dim LegendOfMapEntry As String
Millimeter
Property of VcMapEntry
for millimeter maps: This property lets you set or retrieve the millimetre
value of a map entry.
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
MillimeterOfMapEntry = 3
Number
Property of VcMapEntry
for numeric maps: This property lets you set / retrieve a numeric value of a
map.
Data Type Explanation
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
Dim MillimeterOfMapEntry As Long
MillimeterOfMapEntry = 3
Pattern
Property of VcMapEntry
for pattern maps (vcPatternMap): This property lets you set or retrieve the
pattern of a map entry.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
Example Code
Dim mapCltn As VcMapCollection
Dim map As VcMap
Dim mapEntry As VcMapEntry
Dim pattern As FillPatternEnum
pattern = vcBDiagonalPattern
7.63 VcNode
Properties
• AllData
• DataField
• ID
• IncomingLinks
• MarkNode
• MoveMode
• OutgoingLinks
• SuperGroup
• UpdateBehaviorName
Methods
• DataRecord
• DeleteNode
• GetPositionInView
• GetPositionInViewAsVariant
• NodeRowInView
• OutlineIndent
• OutlineOutdent
• RelatedDataRecord
• SetPositionInView
• UpdateNode
Properties
AllData
Property of VcNode
This record lets you set or retrieve all data of a node at once. When setting
the property, a CSV string (using semicolons as separators) or a variant that
contains all data fields of the node in an array are allowed. When retrieving
the property, a string will be returned. (See also InsertNodeRecord.)
Data Type Explanation
Example Code
Private Sub VcGantt1_OnNodeModify(ByVal node As VcGanttLib.VcNode, _
ByVal modificationType As _
VcGanttLib.ModificationTypeEnum, _
returnStatus As Variant)
returnStatus = vcRetStatFalse
allDataOfNode = node.AllData
MsgBox allDataOfNode
End Sub
DataField
Property of VcNode
This property lets you assign/retrieve data to/from the data field of a node. If
the data field was modified by the DataField property, the diagram needs to
be updated by the UpdateNode method.
Data Type Explanation
Parameter:
index Integer Index of data field
Example Code
Private Sub VcGantt1_OnNodeRClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As VcGanttLib.LocationEnum, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
returnStatus = vcRetStatNoPopup
End Sub
ID
Read Only Property of VcNode
IncomingLinks
Read Only Property of VcNode
Example Code
Private Sub VcGantt1_OnNodeRClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As VcGanttLib.LocationEnum, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
returnStatus = vcRetStatNoPopup
End Sub
MarkNode
Property of VcNode
By this property you can set or retrieve whether a node is marked. The
marking assigned will be visible only if on the Nodes property page the
marking type No Mark was not selected.
Data Type Explanation
Example Code
Dim nodeCltn As VcNodeCollection
Dim node As VcNode
Dim predecessor As VcNode
Dim linkCltn As VcLinkCollection
Dim link As VcLink
MoveMode
Property of VcNode
This property lets you set or retrieve the direction(s) that a node interactively
can be moved to.
Data Type Explanation
Possible Values:
vcNodeMoveModeAutomaticXOrY 4 Move mode either in x or in y direction.
The direction of the dragging automatically
determines whether the x or the y direction
is selected.
vcNodeMoveModeNoMove 0 No move mode
vcNodeMoveModeX 1 Move mode in x direction
vcNodeMoveModeXY 3 Move mode in x and y direction
vcNodeMoveModeY 2 Move mode in y direction
Example Code
Dim nodeCltn As VcNodeCollection
Dim node As VcNode
nodeCltn.SelectNodes (vcAll)
OutgoingLinks
Read Only Property of VcNode
This property gives access to the set of links that leave a node.
Data Type Explanation
Example Code
Private Sub VcGantt1_OnNodeRClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As VcGanttLib.LocationEnum, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
returnStatus = vcRetStatNoPopup
End Sub
SuperGroup
Read Only Property of VcNode
This property lets you enquire the group that this node belongs to.
Data Type Explanation
Example Code
Private Sub VcGantt1_OnNodeRClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As VcGanttLib.LocationEnum, _
ByVal x As Long, ByVal y As Long, _
returnStatus As Variant)
returnStatus = vcRetStatNoPopup
Dim group As VcGroup
Set group = node.SuperGroup
Label1.Caption = "Group: " & group.Name
End Sub
UpdateBehaviorName
Property of VcNode
This property lets you set or retrieve the name of the UpdateBehavior.
Data Type Explanation
Methods
DataRecord
Method of VcNode
This property lets you retrieve the node as a data record object. The
properties of the data record object give access to the corresponding data
table and the data table collection.
Data Type Explanation
DeleteNode
Method of VcNode
Return value Boolean Node was (true) / was not (false) deleted
successfully
Example Code
Private Sub VcGantt1_OnNodeRClick(ByVal node As VcGanttLib.VcNode, _
ByVal location As _
VcGanttLib.LocationEnum, ByVal x As Long, _
ByVal y As Long, returnStatus As Variant)
returnStatus = vcRetStatNoPopup
End Sub
GetPositionInView
Method of VcNode
This method lets you enquire the position of a node in the visible area of the
diagram.
Note: If you use VBScript, you can only use the analogous method
GetPositionInViewAsVariant because of the parameters by Reference.
Data Type Explanation
Parameter:
ViewReferencePoint ViewReferencePointEnum Reference point (of the diagram)
Possible Values:
vcVRPBottomCenter 28 bottom center
vcVRPBottomLeft 27 bottom left
vcVRPBottomRight 29 bottom right
vcVRPCenterCenter 25 center center
vcVRPCenterLeft 24 center left
vcVRPCenterRight 26 center right
vcVRPTopCenter 22 top center
vcVRPTopLeft 21 top left
vcVRPTopRight 23 top right
GetPositionInViewAsVariant
Method of VcNode
This method is identical with the method GetPositionInView except for the
parameters. It was necessary to implement this event because some languages
(e.g. VBScript) can use parameters by Reference (indicated by ) only if the
type of these parameters is VARIANT.
NodeRowInView
Method of VcNode
This method lets you enquire whether (True) or not (False) the row that this
node is in is displayed in the visible section of the diagram.
Data Type Explanation
Return value Boolean Row is/is not in the visible section of the diagram
Example Code
Dim node As VcNode
OutlineIndent
Method of VcNode
This method allows to demote a node in a diagram hierarchy, the node being
indented, i.e. moved towards the right within the table while remaining in its
row. This method corresponds to the Outline indent item in the node context
menu.
Example Code
Private Sub CommandOutlineIndent_Click()
Dim anode As VcNode
Set anode = getSelectedNode ‘Function returns selected node
MsgBox anode.OutlineIndent
Set anode = Nothing
End Sub
OutlineOutdent
Method of VcNode
This method allows to promote a node in a diagram hierarchy, the node being
outdented, i.e. moved to the left within the table and remaining in its row.
This method corresponds to the Outline outdent item in the context menu
for nodes.
Example Code
Private Sub CommandOutlineOutdent_Click()
Dim anode As VcNode
Set anode = getSelectedNode ‘Function returns selected node
MsgBox anode.OutlineOutdent
Set anode = Nothing
End Sub
RelatedDataRecord
Method of VcNode
This property lets you retrieve a data record from a data table that is related to
the node data table. The index passed by the parameter denotes the field in
the data record that holds the key of the related data record.
Data Type Explanation
Parameter:
index Integer Index of data field that holds the key
SetPositionInView
Method of VcNode
This method lets you set that the node will be displayed in a certain position
in the visible area of the diagram. This position is specified by a distance
vector (x,y) between a special node reference point and a special (diagram)
reference point.
Data Type Explanation
Parameter:
ViewReferencePoint ViewReferencePointEnum Reference point (of the diagram)
Possible Values:
vcVRPBottomCenter 28 bottom center
vcVRPBottomLeft 27 bottom left
vcVRPBottomRight 29 bottom right
vcVRPCenterCenter 25 center center
vcVRPCenterLeft 24 center left
vcVRPCenterRight 26 center right
vcVRPTopCenter 22 top center
vcVRPTopLeft 21 top left
vcVRPTopRight 23 top right
Example Code
' scroll the diagram so that the vector between the bottom right corner of the
node and the bottom right corner of the diagram is (-10, -10)
UpdateNode
Method of VcNode
If data fields of a node have been modified by the DataField property, the
diagram needs to be updated by the UpdateNode method.
Data Type Explanation
Return value Boolean Node was (true) / was not (false) updated
successfully
Example Code
Dim nodeCltn As VcNodeCollection
Dim node As VcNode
7.64 VcNodeCollection
Properties
• _NewEnum
• Count
Methods
• FirstNode
• NextNode
• SelectNodes
Properties
_NewEnum
Read Only Property of VcNodeCollection
Example Code
Dim node As VcNode
Debug.Print node.Name
Next
Count
Read Only Property of VcNodeCollection
This property lets you retrieve the number of nodes in the NodeCollection
object.
Data Type Explanation
Example Code
Dim nodeCltn As VcNodeCollection
Methods
FirstNode
Method of VcNodeCollection
This method can be used to access the initial value, i.e. the first node of a
NodeCollection, and then to continue in a forward iteration loop by the
method NextNode for the nodes following. If there is no node in the Node-
Collection, a none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim nodeCltn As VcNodeCollection
Dim node As VcNode
NextNode
Method of VcNodeCollection
Example Code
Dim nodeCltn As VcNodeCollection
Dim node As VcNode
SelectNodes
Method of VcNodeCollection
This method lets you specify the nodes to be collected by the NodeCollection
object.
Data Type Explanation
Parameter:
selType SelectionTypeEnum Nodes to be selected
Possible Values:
vcAll 0 All objects in the diagram will be selected
vcAllLinksCausingCycles 7 If this selection type is chosen, the link collection
will contain all links that cause the existence of
cycles. If these links are deleted, cycles will cede
to exist in this chart.
vcAllLinksInCycles 6 If this selection type is chosen, the link collection
will contain all links that participate in forming
cycles. Cycles are chains of nodes and links of
which the beginning and end join.
vcAllVisible 1 All visible objects will be selected
vcSelected 2 All marked objects will be selected
Example Code
Dim nodeCltn As VcNodeCollection
Dim node As VcNode
7.65 VcNodeLevelLayout
Properties
• CalendarGridName
• RowBackColorAsARGB
• RowBackColorDataFieldIndex
• RowBackColorMapName
• RowPattern
• RowPatternColorAsARGB
• RowPatternColorDataFieldIndex
• RowPatternColorMapName
• RowPatternDataFieldIndex
• RowPatternMapName
• SeparationLineColor
• SeparationLineInterval
• SeparationLineThickness
• SeparationLineType
• ShowCalendarGrids
• ShowSeparationLines
• ShowSeparationLinesAtTop
• SortDataFieldIndex
• SortOrder
Properties
CalendarGridName
Read Only Property of VcNodeLevelLayout
This property lets you set or retrieve the name of the calendar grid. You can
also set this property in the Nodes section of the Grouping dialog.
RowBackColorAsARGB
Property of VcNodeLevelLayout
This property lets you set or retrieve the background color of the rows. The
default color is white.
Data Type Explanation
({0...255},{0...255},{0...255},{0...255})
RowBackColorDataFieldIndex
Property of VcNodeLevelLayout
This property lets you set or retrieve the data field index to be used with a
color map specified by the property RowBackColorMapName. If you set
this property to -1, no map will be used.
Data Type Explanation
RowBackColorMapName
Property of VcNodeLevelLayout
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. If a map name and
additionally a data field index is specified in the property
RowBackColorDataFieldIndex, then the background color is controlled by
the map. If no data field entry applies, the background color that is specified
in the property RowBackColor will be used.
Data Type Explanation
RowPattern
Read Only Property of VcNodeLevelLayout
This property lets you set or retrieve the background pattern of the node rows
of this group level.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
RowPatternColorAsARGB
Property of VcNodeLevelLayout
This property lets you set or retrieve the pattern color of the node rows of this
group level. Color values have a transparency or alpha value, followed by a
value for a red, a blue and a green partition (ARGB). The values range
between 0..255. An alpha value of 0 equals complete transparency, whereas
255 represents a completely solid color. When casting an RGB value on an
ARGB value, an alpha value of 255 has to be added.
({0...255},{0...255},{0...255},{0...255})
RowPatternColorDataFieldIndex
Property of VcNodeLevelLayout
This property lets you set or retrieve the data field index that has to be
specified if the property RowPatternColorMapName is used. If you set this
property to -1, no map will be used.
Data Type Explanation
RowPatternColorMapName
Property of VcNodeLevelLayout
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. Only if a map name and a
RowPatternDataFieldIndex
Property of VcNodeLevelLayout
This property lets you set or retrieve the data field index to be used together
with the property RowPatternMapName. If you set this property to -1, no
map will be used.
Data Type Explanation
RowPatternMapName
Property of VcNodeLevelLayout
This property lets you set or retrieve the name of a pattern map (type
vcPatternMap). If set to "", no map will be used. Only if a map name and
additionally a data field index are specified in the property
RowPatternDataFieldIndex, the pattern is controlled by the map. If no data
field entry applies, the pattern of the layer that is specified in the property
RowPattern will be used.
Data Type Explanation
SeparationLineColor
Property of VcNodeLevelLayout
This property lets you set or retrieve the color of the separation lines of the
the grouping levels.
This property also can be set in the Grouping dialog, section Nodes, field
Separation Line.
Data Type Explanation
({0...255},{0...255},{0...255})
SeparationLineInterval
Read Only Property of VcNodeLevelLayout
This property lets you set or retrieve after how many activities a separating
line is drawn.
Data Type Explanation
SeparationLineThickness
Read Only Property of VcNodeLevelLayout
This property lets you set or retrieve the line thickness of a separation line
between nodes.
If you set this property to values between 1 and 4, an absolute line thickness
is defined in pixels. Irrespective of the zoom factor a line will always show
the same line thickness in pixels. When printing though, the line thickness is
adapted for the sake of legibility and becomes dependent of the zoom factor:
Value Points mm
1 1/2 point 0.09 mm
2 1 point 0.18 mm
3 3/2 points 0.26 mm
4 2 points 0.35 mm
A point equals 1/72 inch and represents the unit of the font size.
If you set this property to values between 5 and 1,000, the line thickness is
defined in 1/100 mm, so the lines will be displayed in a true thickness in
pixels that depends on the zoom factor.
Data Type Explanation
SeparationLineType
Read Only Property of VcNodeLevelLayout
This property lets you set or retrieve the line type of a date line.
This property also can be set in the Grouping dialog, section Nodes, field
Separation Line.
Data Type Explanation
Possible Values:
vcDashed 4 Line dashed
vcDashedDotted 5 Line dashed-dotted
vcDotted 3 Line dotted
vcLineType0 100 Line Type 0
ShowCalendarGrids
Read Only Property of VcNodeLevelLayout
This property lets you set or retrieve whether calendar grids are to be
displayed.
This property also can be set in the Nodes section of the Grouping dialog.
Data Type Explanation
ShowSeparationLines
Read Only Property of VcNodeLevelLayout
This property lets you set or retrieve whether separation lines are to be
displayed between the activities.
This property also can be set in the Nodes section of the Grouping dialog.
Data Type Explanation
ShowSeparationLinesAtTop
Read Only Property of VcNodeLevelLayout
This property lets you set or retrieve whether separation lines are to be
displayed above activities (or below).
This property also can be set in the Nodes section of the Grouping dialog.
Data Type Explanation
SortDataFieldIndex
Property of VcNodeLevelLayout
This property lets you set/retrieve the data field index used for sorting the
nodes of this VcGroupLevelLayout object
Data Type Explanation
Parameter:
sortlevel Integer Sorting level
SortOrder
Property of VcNodeLevelLayout
This property lets you specify the sorting order of activities (ascending or
descending). The property SortDataFieldIndex lets you specify the field the
activties are sorted by. This property also can be set in the Grouping dialog.
Data Type Explanation
Parameter:
sortLevel Integer Sorting level
Possible Values:
vcAscending 1 ascending order
vcDescending 2 descending order
7.66 VcNumericScale
Properties
• DoubleOutputFormat
• Font
• FontColor
• Histogram
• MajorTicks
• MajorTicksEx
• MinorTicks
• MinorTicksEx
• Name
• PatternBackgroundColorAsARGB
• PatternColorAsARGB
• PatternEx
• ThreeDEffect
• Title
• Unit
• UnitEx
• UnitLabel
• UnitWidth
• UpdateBehaviorName
Properties
DoubleOutputFormat
Property of VcNumericScale
This property lets you set or retrieve the output format of numbers as a
double value in the numeric scale. The format is presented by the below
characters:
Text
plus the separators comma and period. Text represents a character string; I
represents the figures before the decimal separator and D represents the
figures after the decimal separator. The overall sequence is Text I D Text,
where a comma and a period can be inserted in the places desired. As an
example be the number -284901,3458. By the format I,DDDD ppm it will be
output as -284901,3458 ppm. By the format $I,III.DD it will be output as $-
284,901.35.
Data Type Explanation
Property value String Character string which describes the double format,
for example "$I,III.DD".
Example Code
VcGantt1.DoubleOutputFormat = "I,DDDD ppm"
Font
Property of VcNumericScale
This property lets you set or retrieve the font attributes of the numeric scale.
Data Type Explanation
Example Code
Dim font As StdFont
font = VcGantt1.NumericScaleCollection.Active.Font
FontColor
Property of VcNumericScale
This property lets you set or retrieve the font color of the numeric scale.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim numericScale As VcNumericScale
Histogram
Read Only Property of VcNumericScale
This property lets you retrieve the histogram to which the numeric scale
belongs.
Data Type Explanation
Example Code
Private Sub VcGantt1_OnNumericScaleLClick(ByVal numericScale As
VcGanttLib.VcNumericScale, ByVal x As Long, ByVal y As Long, returnStatus As
Variant)
End Sub
MajorTicks
Property of VcNumericScale
This property lets you set or retrieve after how many units a major tick is
drawn that has an annotation. You can also set the number of units in the
Edit Histogram dialog. Also see set/getMinorTicks and
set/getMajorTicks.
Property value Integer Number of units between two major ticks {1...32767}
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
Dim numericScale As VcNumericScale
MajorTicksEx
Property of VcNumericScale
This property lets you set or retrieve after how many units a major tick is
drawn that has an annotation. Compared to the property MajorTicks, this
property can be used to set floating point values. You can also set the number
of units in the Edit Histogram dialog.
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
Dim numericScale As VcNumericScale
MinorTicks
Property of VcNumericScale
This property lets you set or retrieve after how many time units a minor tick
without annotation is drawn. You can also set the number of the units in the
Edit Histogram dialog. Also see set/getMinorTicksEx and
set/getMajorTicks.
Data Type Explanation
Property value Integer Number of units between two minor ticks {1...32767}
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
MinorTicksEx
Property of VcNumericScale
This property lets you set or retrieve after how many time units a minor tick
without annotation is drawn. Compared to the property MinorTicks, this
property can be used to set floating point values. You can also set the number
of the units in the Edit Histogram dialog. Also see set/getMajorTicks.
Data Type Explanation
Property value Double Number of units between two minor ticks {32
767...999 999}
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
Dim numericScale As VcNumericScale
Name
Read Only Property of VcNumericScale
This property lets you retrieve the name of a numeric scale in a histogram.
The name can be set in the Edit Histogram dialog.
Data Type Explanation
Example Code
Dim histogram As VcHistogram
Dim numericScale As VcNumericScale
PatternBackgroundColorAsARGB
Property of VcNumericScale
This property lets you set or retrieve the background color of the numeric
scale. Color values have a transparency or alpha value, followed by a value
for a red, a blue and a green partition (ARGB). The values range between
0..255. An alpha value of 0 equals complete transparency, whereas 255
represents a completely solid color. When casting an RGB value on an
ARGB value, an alpha value of 255 has to be added.
Data Type Explanation
PatternColorAsARGB
Property of VcNumericScale
This property lets you set or retrieve the pattern color of the numeric scale.
Color values have a transparency or alpha value, followed by a value for a
red, a blue and a green partition (ARGB). The values range between 0..255.
An alpha value of 0 equals complete transparency, whereas 255 represents a
completely solid color. When casting an RGB value on an ARGB value, an
alpha value of 255 has to be added.
Data Type Explanation
PatternEx
Property of VcNumericScale
This property lets you set or retrieve the background pattern of the numeric
scale.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
ThreeDEffect
Property of VcNumericScale
This property lets you set or retrieve whether the three-dimensional look of
the numeric scale is switched on.
Example Code
Dim histogram As VcHistogram
Dim numericScale As VcNumericScale
numericScale.ThreeDEffect = True
Title
Property of VcNumericScale
This property lets you set or retrieve a title to/from the numeric scale. The
ribbon that displays the title needs to be of the ribbon type textual. Scales
and ribbons can be generated by the Edit histogram dialog box which can be
invoked from the Layout property page.
Data Type Explanation
Parameter:
Position NumericAnnotationPositionEnum Position of the title
Possible Values:
vc10PercentFromTop 4 10 % of total scale length away from top
vc30PercentFromTop 3 30 % of total scale length away from top
vc50PercentFromTop 2 50 % of total scale length away from top
vc70PercentFromTop 1 70 % of total scale length away from top
vc90PercentFromTop 0 90 % of total scale length away from top
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
Dim activeNumericScale As VcNumericScale
Unit
Property of VcNumericScale
This property lets you set or retrieve the units of the numeric scale. Also see
set/getUnitWidth. This property also can be set in the Edit Histogram
dialog.
Data Type Explanation
UnitEx
Property of VcNumericScale
This property lets you set or retrieve the basic unit of the numeric scale as a
double value.
Data Type Explanation
Property value Double Numbers in the double format {-999 999 .. 999 999}
Example Code
Private Sub CommandReduceRibbonUnit_Click()
Dim numCol As VcNumericScaleCollection
Dim numScale As VcNumericScale
Set numCol =
VcGantt1.HistogramCollection.FirstHistogram.NumericScaleCollection
Set numScale = numCol.FirstNumericScale
numScale.UnitEx = numScale.UnitEx / 2#
TextScaleUnit.Text = numScale.UnitEx
End Sub
UnitLabel
Property of VcNumericScale
This property lets you set or retrieve the designation of the units of the
numeric scale. The designation is displayed centrally at the top border of the
numeric scale.
Data Type Explanation
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
Dim activeNumericScale As VcNumericScale
HistogramByName("HISTOGRAM_1"). _
NumericScaleCollection
UnitWidth
Property of VcNumericScale
This property lets you set or retrieve the width of the units of the numeric
scale (by 1/100 mm). Also see set/getUnit. This property also can be set in
the Edit Histogram dialog.
Data Type Explanation
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
Dim activeNumericScale As VcNumericScale
UpdateBehaviorName
Property of VcNumericScale
This property lets you set or retrieve the name of the UpdateBehavior.
Data Type Explanation
7.67 VcNumericScaleCollection
Properties
• _NewEnum
• Active
• Count
Methods
• FirstNumericScale
• NextNumericScale
• NumericScaleByIndex
• NumericScaleByName
Properties
_NewEnum
Read Only Property of VcNumericScaleCollection
Example Code
Dim numscale As VcNumericScale
Active
Property of VcNumericScaleCollection
This method lets you set or retrieve the numeric scale currently displayed in
the diagram.
Data Type Explanation
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
Dim activeNumericScale As VcNumericScale
Count
Property of VcNumericScaleCollection
This property lets you retrieve the number of numeric scales in the
NumericScaleCollection object.
Data Type Explanation
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
Dim numberOfNumericScales As Long
numberOfNumericScales = numericScaleCltn.Count
Methods
FirstNumericScale
Method of VcNumericScaleCollection
This method can be used to access the initial value, i.e. the first numeric scale
of a numeric scale collection, and then to continue in a forward iteration loop
by the method NextNumericScale for the scales following. If there is no
scale in the numeric scale collection, a none object will be returned (Nothing
in Visual Basic).
Data Type Explanation
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
Dim numericScale As VcNumericScale
NextNumericScale
Method of VcNumericScaleCollection
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
Dim numericScale As VcNumericScale
NumericScaleByIndex
Method of VcNumericScaleCollection
This method lets you access a numeric scale by its index. If a numeric scale
of the specified index does not exist, a none object will be returned (Nothing
in Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the numeric scale
NumericScaleByName
Method of VcNumericScaleCollection
By this method you can retrieve a numeric scale by its name. If a numeric
scale of the specified name does not exist, a none object will be returned
(Nothing in Visual Basic).
Data Type Explanation
Parameter:
numericScaleName String Name of the numeric scale
Example Code
Dim numericScaleCltn As VcNumericScaleCollection
7.68 VcPrinter
Properties
• AbsoluteBottomMarginInCM
• AbsoluteBottomMarginInInches
• AbsoluteLeftMarginInCM
• AbsoluteLeftMarginInInches
• AbsoluteRightMarginInCM
• AbsoluteRightMarginInInches
• AbsoluteTopMarginInCM
• AbsoluteTopMarginInInches
• Alignment
• AllBorderBoxesShownOnCombinedControls
• CombiningControlsEnabled
• CurrentHorizontalPagesCount
• CurrentVerticalPagesCount
• CurrentZoomFactor
• CuttingMarks
• DateFormat
• DefaultPrinterName
• DiagramEnabled
• DocumentName
• FoldingMarksType
• MarginsShownInInches
• MaxHorizontalPagesCount
• MaxVerticalPagesCount
• Orientation
• PageDescription
• PageDescriptionString
• PageFrame
• PageNumberMode
• PageNumbers
• PagePaddingEnabled
• PaperSize
• PrintDate
• PrinterName
• ReOptimizeNodesInGroupsEnabled
• RepeatTableTimeScale
• ScalingMode
• StartUpSinglePage
• TableColumnRanges
• TableWidthAdoptionFromViewOnScreen
• TimeColumnEndDate
• TimeColumnStartDate
• TimeScaleAdjustment
• ZoomFactorAsDouble
Properties
AbsoluteBottomMarginInCM
Property of VcPrinter
This property lets you set or retrieve the absolute height of the bottom margin
of the pages to be printed. The true width may be larger if the printer used
has to print margins by obligation.
Data Type Explanation
Example Code
VcGantt1.Printer.AbsoluteBottomMarginInCM = 1.5
AbsoluteBottomMarginInInches
Property of VcPrinter
This property lets you set or retrieve the absolute height of the bottom margin
of the pages to be printed in inches. The true width may be larger if the
printer used has to print margins by obligation.
Tip: The internal conversion factor is 2.5 cm/inch instead of the actual
correct 2.54 cm/inch so that the values shown in the Page Setup dialog will
be smoother (1.5 cm so add up to 0.6 inches, 1 cm add up to 0.4 inches).
Data Type Explanation
Property value Double Height of the bottom margin of the page in inches
Default value: 0
Example Code
VcGantt1.Printer.AbsoluteBottomMarginInches = 0.5
AbsoluteLeftMarginInCM
Property of VcPrinter
This property lets you set or retrieve the absolute width of the left margin of
the pages to be printed. The true width may be larger if the printer used has to
print margins by obligation.
Data Type Explanation
Example Code
VcGantt1.Printer.AbsoluteLeftMarginInCM = 1.5
AbsoluteLeftMarginInInches
Property of VcPrinter
This property lets you set or retrieve the absolute width of the left margin of
the pages to be printed in inches. The true width may be larger if the printer
used has to print margins by obligation.
Tip: The internal conversion factor is 2.5 cm/inch instead of the actual
correct 2.54 cm/inch so that the values shown in the Page Setup dialog will
be smoother (1.5 cm so add up to 0.6 inches, 1 cm add up to 0.4 inches).
Property value Double Width of the left margin of the page in inches
Default value: 0
Example Code
VcGantt1.Printer.AbsoluteLeftMarginInInches = 0.5
AbsoluteRightMarginInCM
Property of VcPrinter
This property lets you set or retrieve the absolute width of the right margin of
the pages to be printed. The true width may be larger if the printer used has to
print margins by obligation.
Data Type Explanation
Example Code
VcGantt1.Printer.AbsoluteRightMarginInCM = 1.5
AbsoluteRightMarginInInches
Property of VcPrinter
This property lets you set or retrieve the absolute width of the right margin of
the pages to be printed in inches. The true width may be larger if the printer
used has to print margins by obligation.
Tip: The internal conversion factor is 2.5 cm/inch instead of the actual
correct 2.54 cm/inch so that the values shown in the Page Setup dialog will
be smoother (1.5 cm so add up to 0.6 inches, 1 cm add up to 0.4 inches).
Data Type Explanation
Property value Double Width of the right margin of the page in inches
Default value: 0
Example Code
VcGantt1.Printer.AbsoluteRightMarginInInches = 0.5
AbsoluteTopMarginInCM
Property of VcPrinter
This property lets you set or retrieve the absolute height of the top margin of
the pages to be printed. The true width may be larger if the printer used has to
print margins by obligation.
Data Type Explanation
Example Code
VcGantt1.Printer.AbsoluteTopMarginInCM = 1.5
AbsoluteTopMarginInInches
Property of VcPrinter
This property lets you set or retrieve the absolute height of the top margin of
the pages to be printed in inches. The true width may be larger if the printer
used has to print margins by obligation.
Tip: The internal conversion factor is 2.5 cm/inch instead of the actual
correct 2.54 cm/inch so that the values shown in the Page Setup dialog will
be smoother (1.5 cm add up to 0.6 inches, 1 cm add up to 0.4 inches).
Data Type Explanation
Property value Double Height of the top margin of the page in inches
Default value: 0
Example Code
VcGantt1.Printer.AbsoluteTopMarginInInches = 0.5
Alignment
Property of VcPrinter
This property lets you set or retrieve the alignment of the diagram on a page.
The property will be effective either if the diagram is put out onto a single
page or if the RepeatTableTimeScale property was set. In any other case the
output will be centered.
Possible Values:
vcPBottomCenter 28 Vertical alignment: bottom; horizontal alignment:
center
vcPBottomLeft 27 Vertical alignment: bottom; horizontal alignment: left
vcPBottomRight 29 Vertical alignment: bottom; horizontal alignment:
right
vcPCenterCenter 25 Vertical alignment: center; horizontal alignment:
center
vcPCenterLeft 24 Vertical alignment: center; horizontal alignment: left
vcPCenterRight 26 Vertical alignment: center; horizontal alignment: right
vcPTopCenter 22 Vertical alignment: top; horizontal alignment: center
vcPTopLeft 21 Vertical alignment: top; horizontal alignment: left
vcPTopRight 23 Vertical alignment: top; horizontal alignment: right
Example Code
VcGantt1.Printer.Alignment = vcPTopLeft
AllBorderBoxesShownOnCombinedControls
Property of VcPrinter
If this property is set to "True" all border boxes are printed even if combined
printing is activated. If it is set to "False", the border boxes are ignored. See
the objects VcBorderArea and <!VcBorderBox.
Data Type Explanation
Property value Boolean Border boxes are (True)/are not (False) printed if
combined printing is enabled
Example Code
VcGantt1.AllBorderBoxesShownOnCombinedControls = True
CombiningControlsEnabled
Property of VcPrinter
If this property is set to True, all XGantt controls of the parent window are
arranged one below the other according to their relative vertical position for
exporting or printing and in the print preview. Thus more than one diagram
can be displayed at once.
Property value Boolean XGantt controls of the parent window are (True) /
are not (False) arranged one below the other
Default value: False
Example Code
VcGantt1.Printer.CombiningControlsEnabled = True
CurrentHorizontalPagesCount
Read Only Property of VcPrinter
This property lets you retrieve the actual number of pages in horizontal
direction onto which the chart is to be printed. Also see CurrentVertical-
PagesCount and MaxHorizontalPagesCount.
Data Type Explanation
CurrentVerticalPagesCount
Read Only Property of VcPrinter
This property lets you retrieve the actual number of pages in vertical
direction onto which the chart is to be printed. Also see CurrentHorizontal-
PagesCount and MaxVerticalPagesCount.
Data Type Explanation
CurrentZoomFactor
Read Only Property of VcPrinter
This property lets you retrieve the actual zoom factor for the scaling
modevcFitToPageCount (zoom factor = 100: original size, zoom factor >
100: enlargement, zoom factor < 100: reduction).
CuttingMarks
Property of VcPrinter
This property lets you set or retrieve, whether (True) or not (False) cutting
marks are to printed onto a page.
Data Type Explanation
Property value Boolean Cutting marks are (True) / are not (False) printed
Default value: False
Example Code
VcGantt1.Printer.CuttingMarks = True
DateFormat
Property of VcPrinter
This property lets you set the date format that is to be used in the DatePicker
dialog elements of the Page Layout dialog. The empty string represents the
default date format TS. To compose the date you can use the below tokens:
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in ''\'. The special
characters: ':, /, -' and blank don't need '\' as prefix.
Data Type Explanation
DefaultPrinterName
Read Only Property of VcPrinter
This property lets you return the current name of the system's current default
printer.
DiagramEnabled
Property of VcPrinter
This property lets you specify whether the diagram (time scale and layers)
shall be printed or not.
Data Type Explanation
Example Code
VcGantt1.Printer.DiagramEnabled = True
DocumentName
Property of VcPrinter
This property lets you set or enquire the name of the document. When
printing, the document name is displayed in the list of the documents to print
and has special functions with certain printer drivers as e.g. drivers which
create PDF files.
Data Type Explanation
FoldingMarksType
Read Only Property of VcPrinter
This property lets you set or retrieve the following folding marks according
to DIN 824. The folding marks allow to fold paper sheets of the German
DIN-A standard:
Possible Values:
vcFMTDIN824FormA 65 Folding marks according to DIN824-A: the drawing
can be punched and filed directly to a folder.
MarginsShownInInches
Property of VcPrinter
This property lets you set or retrieve whether the measuring unit of the
margins in the <b"Page Layout dialog shall be switched to inches (at present
only possible at runtime ).
Tip: The internal conversion factor is 2.5 cm/inch instead of the actual
correct 2.54 cm/inch so that the values shown in the Page Setup dialog will
be smoother (1.5 cm so add up to 0.6 inches, 1 cm add up to 0.4 inches).
Data Type Explanation
Property value Boolean Measuring unit of the margins in the Page Layout
dialog in inches (True)/ in cm (False)
Default value: False
MaxHorizontalPagesCount
Property of VcPrinter
This property lets you set or retrieve the horizontal number of pages für
printing and for the print preview. This property only works if the property
ScalingMode was set to either vcFitToPageCount or to
vcZoomWithHorizontalFit. Also see MaxVerticalPagesCount and
CurrentHorizontalPagesCount.
Example Code
VcGantt1.Printer.MaxHorizontalPagesCount = 4
MaxVerticalPagesCount
Property of VcPrinter
This property lets you set or retrieve the vertical number of pages für printing
and for the print preview. This property only works if the property
ScalingMode was set to vcFitToPageCount. Also see
MaxHorizontalPagesCount and CurrentVerticalPagesCount.
Data Type Explanation
Example Code
VcGantt1.Printer.MaxVerticalPagesCount = 4
Orientation
Property of VcPrinter
This property lets you set or retrieve the orientation of the output.
Data Type Explanation
Possible Values:
vcLandscape 42 Printing orientation landscape
vcPortrait 41 Printing orientation portrait
Example Code
VcGantt1.Printer.Orientation = vcLandScape
PageDescription
Property of VcPrinter
This property lets you set or retrieve whether (True) or not (False) the page
description string is to appear in the bottom left corner of a page. The
contents of the page description string you can set by the
PageDescriptionString property.
Data Type Explanation
Example Code
VcGantt1.Printer.PageDescription = True
PageDescriptionString
Property of VcPrinter
This property lets you set or retrieve a page description string in the bottom
left corner of each page. Whether or not the page description string is printed
you can control by the PageDescription property. For numbering the pages
you may enter the following place holders which will be replaced with the
appropriate contents on the printout:
Example Code
VcGantt1.Printer.PageDescriptionString = "VARCHART chart"
PageFrame
Property of VcPrinter
This property lets you set or retrieve, whether (True) or not (False) a frame is
to be drawn around the output. If the RepeatTableTimeScale property was
set, the frame will be drawn around the part on each page, otherwise it will be
drawn around the diagram as a whole.
Data Type Explanation
Example Code
VcGantt1.Printer.PageFrame = True
PageNumberMode
Property of VcPrinter
This property lets you set or retrieve in which way the page numbers are to
be displayed: "Page N of M pages" or "x.y" (row no./column no.).
Data Type Explanation
Possible Values:
vcPageNOfM 1597 "Page N of M pages"
vcPRowColumn 1596 "x.y" (row no./column no.).
Example Code
Dim printer As VcPrinter
With printer
.Orientation = vcLandscape
.PageNumberMode = vcPageNOfM
.PageNumbers = True
.FitToPage = False
End With
VcGantt1.PrintPreview
PageNumbers
Property of VcPrinter
This property lets you set or retrieve, whether (True) or not (False) a page
number is printed. The mode of page numbering is set with the help of the
property PageNumberMode.
Data Type Explanation
Property value Boolean Page numbers are (True) / are not (False) printed
Default value: False
Example Code
VcGantt1.Printer.PageNumbers = True
PagePaddingEnabled
Property of VcPrinter
This property lets you specify or retrieve whether enough space is to be left
between the diagram and the boxes of the title and legend area so that the
boxes are always printed in full width and are attached to the margin. If the
property is set to False there will be no space left between the diagram and
the boxes and their width may vary on the different pages depending on the
diagram.
Data Type Explanation
Property value Boolean Space between diagram and boxes for legend/title is
(True) / is not (False) left
Default value: True
Example Code
VcGantt1.Printer.PagePaddingEnabled = True
PaperSize
Property of VcPrinter
This property lets you set or retrieve the paper size to be used.
Data Type Explanation
Possible Values:
vcDIN_A2 66 DIN A2
vcDIN_A3 8 DIN A3
vcDIN_A4 9 DIN A4
vcISO_C 24 ISO C
vcISO_D 25 ISO D
vcISO_E 26 ISO E
vcUS_LEGAL 5 US LEGAL
vcUS_LETTER 1 US LETTER
Example Code
VcGantt1.Printer.PaperSize = vcDIN_A3
PrintDate
Property of VcPrinter
This property lets you set or retrieve, whether (True) or not (False) the print
date is to appear in the bottom left corner of a page.
Data Type Explanation
Example Code
VcGantt1.Printer.PrintDate = True
PrinterName
Read Only Property of VcPrinter
This property lets you set or retrieve the name of the currently selected
printer. You can use this property for saving and restoring the state of the
printer object.
If you transfer an empty string when setting the property, the system printer
will be used.
<Tip:> Please note that the name of network printers has to be written in
UNC notation, e.g. "\\server01\printer5".
Data Type Explanation
ReOptimizeNodesInGroupsEnabled
Property of VcPrinter
Example Code
VcGantt1.Printer.ReOptimizeNodesInGroupsEnabled = True
RepeatTableTimeScale
Property of VcPrinter
This property lets you set or retrieve, whether (True) or not (False) the title,
legend, table and time scale are to appear on each page.
Data Type Explanation
Property value Boolean Title, legend, table and time scale are repeated on
each page (True)/ Title, legend, table and time scale
are output only once and cut if necessary (False)
Default value: False
Example Code
VcGantt1.Printer.RepeatTableTimeScale = True
ScalingMode
Property of VcPrinter
This property lets you set or retrieve the scaling mode for output. If the
scaling mode is set to vcZoomFactor, the value of the property ZoomFactor
defines the size of the output. If set to vcFitToPageCount, the values of
MaxHorizontalPagesCount and MaxVerticalPagesCount are essential. If
set to vcZoomWithHorizontalFit, the values of ZoomFactor and Max-
HorizontalPagesCount define a zoom factor providing a fixed number of
Possible Values:
vcFitToPageCount 1 Scaling mode "Fit to Page"
vcZoomFactor 0 Scaling mode: "Zoomfactor".
vcZoomWithHorizontalFit 2 Scaling mode "Combined Fit"
StartUpSinglePage
Property of VcPrinter
This property lets you set or retrieve the mode of starting the page preview:
either all pages of the diagram will be displayed (False) or only the first page
will be displayed (True).
Data Type Explanation
Property value Boolean at the start of the page preview: only first page of the
diagram (True)/ all pages of the diagram (False)
Example Code
Dim printer As VcPrinter
With printer
.Orientation = vcLandscape
.StartUpSinglePage = True
.FitToPage = False
End With
VcGantt1.PrintPreview
TableColumnRanges
Property of VcPrinter
This property lets you set the number of table columns to be printed. Similar
to Microsoft Word you can specify single columns or ranges of columns, that
are to be separated by comas or semicolons. Example: "1;5-7;3" specifies the
columns 1 and 3 and the range from 5 to 7. "0", a simple comma or
semicolon will result in no column printed. By setting the default value -1
you can have all columns printed.
Example Code
VcGantt1.Printer.TableColumnRange = "1;5-7;3"
TableWidthAdoptionFromViewOnScreen
Property of VcPrinter
This property lets you specify or retrieve whether the table width that is
currently shown on the screen is to be adopted for the print preview and for
the output.
Property value Boolean the table width that is currently shown on the screen
is (True) / is not (False) to be adopted for the print
preview and for the output
Default value: False
Example Code
VcGantt1.Printer.TableWidthAdoptionFromViewOnScreen = True
TimeColumnEndDate
Property of VcPrinter
This property lets you set or retrieve the end date of the time range to be used
for the output. The time range can only be restriced in comparison to the time
range displayed on the screen. Hence only an earlier end date than that
having been set by the VcGantt property TimeScaleStart leads to a modified
output.
Property value DateTime End date of the time range for the output
Default value: 0.0
TimeColumnStartDate
Property of VcPrinter
This property lets you set or retrieve the start date of the time range to be
used for the output. The time range can only be restriced in comparison to the
time range displayed on the screen. Hence only a later start date than that
having been set by the VcGantt property TimeScaleStart leads to a
modified output.
Property value DateTime Start date of the time range for the output
Default value: 0.0
TimeScaleAdjustment
Property of VcPrinter
If scaling fit to page is selected: The zoom factor is calculated so that the
space of the selected number of pages is fully used for printing into the
height while the time scale gets downsized or enlarged so that the
selected number of pages is used to full capacity into the width.
Example Code
VcGantt1.Printer.TimeScaleAdjustment = True
ZoomFactorAsDouble
Property of VcPrinter
This property lets you set or retrieve the zoom factor for the scaling
modesVcZoomFactor and. vcZoomWithHorizontalFit to enlarge or
downsize the output (zoom factor = 100: original size, zoom factor > 100:
enlargement, zoom factor < 100: reduction).
Data Type Explanation
Example Code
VcGantt1.Printer.ZoomFactorAsDouble = 150
7.69 VcRect
An object of the type VcRect designates a rectangle object and is only passed
by the event VcGantt.OnShowInPlaceEditor.
Properties
• Bottom
• Height
• Left
• Right
• Top
• Width
Properties
Bottom
Property of VcRect
Height
Read Only Property of VcRect
Left
Property of VcRect
Example Code
Private Sub VcGantt1_OnShowInPlaceEditor(ByVal editObject As Object, _
ByVal editObjectType As _
VcGanttLib.VcObjectTypeEnum, _
ByVal fieldIndex As Long, ByVal objRectComplete As _
VcGanttLib.VcRect, ByVal objRectVisible As _
VcGanttLib.VcRect, ByVal fldRectComplete As _
VcGanttLib.VcRect, ByVal fldRectVisible As _
VcGanttLib.VcRect, returnStatus As Variant)
oldScaleMode = Me.ScaleMode
Me.ScaleMode = vbPixels
Text1.Text = editObject.DataField(fieldIndex)
Text1.Visible = True
Text1.SetFocus
MonthView1.Value = editObject.DataField(fieldIndex)
MonthView1.Visible = True
MonthView1.SetFocus
Case 13 'Employee
Combo1.Left = fldRectVisible.Left + VcGantt1.Left
Combo1.Top = fldRectVisible.Top + VcGantt1.Top
Combo1.Width = fldRectVisible.Width
Combo1.Text = editObject.DataField(fieldIndex)
Combo1.Visible = True
Combo1.SetFocus
End Select
Me.ScaleMode = oldScaleMode
End If
End Sub
Right
Property of VcRect
Top
Property of VcRect
Example Code
MonthView1.Top = fldRectVisible.Top + VcGantt1.Top
Width
Read Only Property of VcRect
Example Code
Text1.Width = fldRectVisible.Width
7.70 VcResourceScheduler2
Links: These objects describe the sequence of tasks, i.e., preceding tasks
have to be finished before the succeeding ones can start.
Properties
• AssignmentDataTableName
• AssignmentIsResultFieldIndex
• AssignmentIsVisibleFieldIndex
• AssignmentLoadOrConsumptionPerItemFieldIndex
• AssignmentMaximumLoadFieldIndex
• AssignmentMinimumLoadFieldIndex
• AssignmentMinimumMaximumLoadType
• AssignmentOperationIDFieldIndex
• AssignmentResourceIDFieldIndex
• AssignmentResourceSelectionStrategyFieldIndex
• BaseCalendarUsageForSupplementTimes
• BaseTimeUnit
• BaseTimeUnitsPerStep
• DataRecordEventsEnabled
• DefaultOperationMaximumInterruptionTime
• DefaultResourceCalendarName
• FullUsageOfPlanningUnitsEnabled
• LinkDataTableName
• LinkDurationFieldIndex
• LinkPredecessorOperationIDFieldIndex
• LinkPredecessorTaskIDFieldIndex
• LinkSuccessorOperationIDFieldIndex
• LinkSuccessorTaskIDFieldIndex
• OperationDataTableName
• OperationLoadPerItemFieldIndex
• OperationMaximumInterruptionTimeFieldIndex
• OperationMinimumSupplementTimeFieldIndex
• OperationOverlapQuantityFieldIndex
• OperationPostLoadFieldIndex
• OperationPostOffsetFieldIndex
• OperationPreparationLoadFieldIndex
• OperationPreparationOffsetFieldIndex
• OperationResultEndDateFieldIndex
• OperationResultPostEndDateFieldIndex
• OperationResultPreparationStartDateFieldIndex
• OperationResultProcessingTimeFieldIndex
• OperationResultSelectedTimingResourceIDFieldIndex
• OperationResultStartDateFieldIndex
• OperationResultStatusFieldIndex
• OperationRouteFieldIndex
• OperationSequenceNumberFieldIndex
• OperationStartLockDateFieldIndex
• OperationTaskIDFieldIndex
• OperationWorkInProcessFieldIndex
• PlanningEndDate
• PlanningStartDate
• PlanningStrategy
• ResourceCalendarNameFieldIndex
• ResourceCapacityType
• ResourceCapacityTypeFieldIndex
• ResourceConstraintTypeFieldIndex
• ResourceDataTableName
• ResourceEfficiencyFieldIndex
• ResourceGroupDataTableName
• ResourceGroupIDFieldIndex
• ResourceNameFieldIndex
• ResourceResultLoadCurveNamePrefix
• ResourceResultStockCurveNamePrefix
• ResourceSelectionStrategy
• ResourceType
• ResultProcessingStepCount
• TaskDataTableName
• TaskDueDateFieldIndex
• TaskPlanningStrategyFieldIndex
• TaskPriorityFieldIndex
• TaskQuantityFieldIndex
• TaskReleaseDateFieldIndex
• TaskResultEndDateFieldIndex
• TaskResultPostEndDateFieldIndex
• TaskResultPreparationStartDateFieldIndex
• TaskResultProcessingStepFieldIndex
• TaskResultProcessingTimeFieldIndex
• TaskResultRouteFieldIndex
• TaskResultStartDateFieldIndex
• ToleranceTimeOnASAPDueDates
• ToleranceTimeOnJITReleaseDates
• ToleranceTimeOnStartLockDates
• WorkInProcessType
• WritingDebugFilesEnabled
Methods
• DetermineIDOfFirstOperationByTaskID
• DetermineIDOfLastOperationByTaskID
• Process
Properties
AssignmentDataTableName
Property of VcResourceScheduler2
This property lets you set or retrieve the name of the assignment data table
that holds assignments of operations to resources. Setting this name is
mandatory.
Example Code
VcGantt1.ResourceScheduler2.AssignmentDataTableName = "Assignment"
AssignmentIsResultFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the
assignment table where VARCHART XGantt notes whether the
corresponding data set was generated by resource scheduling. In the picture
Using this field allows for multiple invoking while the results are kept stable,
which saves the application from having to manually re-set the assignments
to their original state. The scheduling procedure continues to use assignments
once generated in order to avoid dispensable actions of deleting and
generating.
Data Type Explanation
Property value Long Index of the data field in the assignment data table
that is designated to hold the values on the
identification of data records that were generated by
resource scheduling.
{-1...NumberOfFieldsInAssignmentDataTable -1}. By
setting the index to -1, no data field of the
assignment data table will be assigned to this
property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.AssignmentIsResultFieldIndex = 3
AssignmentIsVisibleFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the
assignment data table where the resource scheduling module notes whether
the assignment should be made visible. In the picture referring to
AssignmentDataTableName, the field index for example is 4. The field is
useful for instance for displaying assignments to groups of resources in the
Gantt graph before running the resource scheduling module, and for
displaying the resulting single resources afterwards.
Property value Long Index of the data field in the assignment data table
that is designated to hold the values on the visibility.
{-1...NumberOfFieldsInAssignmentDataTable -1}. By
setting the index to -1, no data field of the
assignment data table will be assigned to this
property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.AssignmentIsVisibleFieldIndex = 4
AssignmentLoadOrConsumptionPerItemFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the
assignment table which holds a value per item (see property TaskQuantity-
FieldIndex). You can assign values per item to work resources and a
material resources only. An index of -1 will be interpreted as 1. If the data
field in the data set does not contain a valid value, 0 will be assumed. If the
data field is of the type String, you can also enter a float value.
Data Type Explanation
Property value Long Index of the data set in the assignment data table
that is designated to hold the value.
{-1...NumberOfFieldsInAssignmentDataTable -1}. By
setting the index to -1, no data field of the
assignment data table will be assigned to this
property.
Default value: -1
AssignmentMaximumLoadFieldIndex
Property of VcResourceScheduler2
The index passed as the property value specifies a data field in the
assignment data table that holds the maximum workload limit of a resource.
In the picture referring to AssignmentDataTableName, the field index for
example is 6.
Values between 1 and 99 in the data field will disable the properties Full-
UsageOfPlanningUnitsEnabled and OperationMaximumInterruption-
TimeFieldIndex.
Property value Long Index of the data field in the assignment data table
that is designated to hold the maximum workload
limit of a resource.
{-1...NumberOfFieldsInAssignmentDataTable -1}. By
setting the index to -1, no data field of the
assignment data table will be assigned to this
property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.AssignmentMaximumLoadFieldIndex = 6
AssignmentMinimumLoadFieldIndex
Property of VcResourceScheduler2
The index passed as the property value specifies a data field in the
assignment data table that holds the minimum workload limit of a resource.
In the picture referring to AssignmentDataTableName, the field index for
example is 5. The limit can only be assigned to timing resources.
The data field contains percentage values from {0...100}. Also see
AssignmentMaximumLoadFieldIndex.
Data Type Explanation
Property value Long Index of the data field in the assignment data table
that is designated to hold the minimum workload
limit of a resource.
{-1...NumberOfFieldsInAssignmentDataTable -1}. By
setting the index to -1, no data field of the
assignment data table will be assigned to this
property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.AssignmentMinimumLoadFieldIndex = 5
AssignmentMinimumMaximumLoadType
Read Only Property of VcResourceScheduler2
This property lets you set or retrieve whether the values that are assigned to
the data fields by the indices set by the properties AssignmentMinimum-
LoadFieldIndex and AssignmentMaximumLoadFieldIndex are relative to
the resource capacity or absolute.
Absolute values are useful e.g. if the assigned resource is a team with a
varying number of persons and the assignment shall not occupy the whole
team.
Data Type Explanation
Possible Values:
vcResSchedAbsoluteValues 2 Data field values absolute to
resource capacity
vcResSchedPercentageValues 0 Data field values relative to
resource capacity
AssignmentOperationIDFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index to a data field in the
assignment table which holds the ID of an operation. In the picture referring
to AssignmentDataTableName, the field index for example is 1. This
property must not be set to -1 during a scheduling procedure.
Data Type Explanation
Property value Long Index of the data field in the assignment data table
that is designated to hold the operation ID.
{-1...NumberOfFieldsInAssignmentDataTable -1}. By
setting the index to -1, no data field of the
assignment data table will be assigned to this
property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.AssignmentOperationIDFieldIndex = 1
AssignmentResourceIDFieldIndex
Property of VcResourceScheduler2
This indexed property lets you set or retrieve the index of a data field which
holds IDs of resources. In the picture referring to AssignmentDataTable-
Name, the field index for example is 2.
The index passed as a parameter denotes one out of 25 resource tables. The
ones used are set by the indexed property ResourceDataTableName.
Data Type Explanation
Parameter:
resourceTableIndex Short Index of a resource data table according to the
assignments made by ResourceDataTableName
{0...24}
Property value Long Index of the data field in the assignment data table
that is designated to hold resource IDs.
{-1...NumberOfFieldsInAssignmentDataTable -1}. By
setting the index to -1, no data field of the
assignment data table will be assigned to this
property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.AssignmentResourceIDFieldIndex(0) = 2
AssignmentResourceSelectionStrategyFieldIndex
Property of VcResourceScheduler2
The index passed as the property value specifies a data field in the
assignment data table that defines a resource selection strategy for the
corresponding assignment to a resource group. If this field is empty for a
resource or if the property is set to -1, the value of the general property
ResourceSelectionStrategy is valid (see there).
0: equals vcResSchedRSSequential
1: equals vcResSchedRSLeastLoaded
2: equals vcResSchedRSMostLoaded
3: equals vcResSchedRSHighestEfficiency
7: equals vcResSchedRSFirstAvailable
When using the value 7 (FirstAvailable) the selection merely depends on the
first timing resource. Other assignments of the operation are not taken into
consideration. So when using material and work resources, the results may
not turn out satisfactory.
Data Type Explanation
Property value Long Index of the data field in the assignment data table
that is designated to hold the data of the resource
selction strategy.
{-1...NumberOfFieldsInAssignmentDataTable -1}. By
setting the index to -1, no data field of the
assignment data table will be assigned to this
property.
Default value: -1
BaseCalendarUsageForSupplementTimes
Property of VcResourceScheduler2
Property value Boolean True: The base calendar of the Gantt object will be
used.
Example Code
VcGantt1.ResourceScheduler2.BaseCalendarUsageForSupplementTimes = True
BaseTimeUnit
Property of VcResourceScheduler2
This property lets you set or enquire the basic time unit for resource
scheduling, which may differ from the basic time unit set by the property
VcGantt.TimeUnit. The values of the capacity, work load and stock curves
refer to the base unit defined here.
Data Type Explanation
Possible Values:
vcDay 5 Time unit day
vcHour 6 Time unit hour
vcMinute 7 Time unit minute
vcSecond 8 Time unit second
Example Code
VcResourceScheduler2.BaseTimeUnit = VcTimeUnit.vcMinute
VcResourceScheduler2.BaseTimeUnitsPerStep = 15
BaseTimeUnitsPerStep
Property of VcResourceScheduler2
This property lets you set or enquire the size of steps of the scheduling. The
larger this value, the faster, but also the coarser the result will be. The value
entered here represents a multiple of the base unit set by VcResource-
Scheduler2.BaseTimeUnit.
Example Code
VcGantt1.ResourceScheduler2.BaseTimeUnitsPerStep = 4
DataRecordEventsEnabled
Property of VcResourceScheduler2
If this property is set to True, events will be triggered that indicate data
modifications during the process methods: VcGantt.OnDataRecordModify,
VcGantt.OnDataRecordModifyComplete, VcGantt.OnDataRecordCreate,
VcGantt.OnDataRecordCreateComplete, VcGantt.OnDataRecordDelete and
VcGantt.OnDataRecordDeleteComplete.
Data Type Explanation
Example Code
VcGantt1.ResourceScheduler2.DataRecordEventsEnabled = True
DefaultOperationMaximumInterruptionTime
Property of VcResourceScheduler2
By this property you can set or retrieve a default value of the maximum time
span, for which the operation is allowed be interrupted. The value is a
number that represents base time units (see property BaseTimeUnit). The
default value applies if the property OperationMaximumInterruption-
TimeFieldIndex was set to -1 or if the value read from the operations table
equals 0 or if the field is empty. If the value is set to 0, no interruption will be
allowed.
This property will be disabled by setting the maximum load to less than
100% (see property AssignmentMaximumLoadFieldIndex).
Example Code
VcGantt1.ResourceScheduler2.DefaultOperationMaximumInterruptionTime = 1
DefaultResourceCalendarName
Property of VcResourceScheduler2
This property lets you set a calendar name which is used if no calendar of the
same name as the resource is found by the properties VcResource-
Scheduler2.ResourceCalendarNameFieldIndex and VcResource-
Scheduler2.ResourceNameFieldIndex. If you do not set the property, the
resource will use the default calendar of the XGantt object. (see
VcCalendarCollection.Active).
Data Type Explanation
Example Code
VcGantt1.ResourceScheduler2.DefaultResourceCalendarName = ""
FullUsageOfPlanningUnitsEnabled
Property of VcResourceScheduler2
If this property is set to True, during the first and/or the last time unit of the
occupation time of a resource allocated to a task, a second task may finish or
start. This way, remaining capacities can be used up. If this property is set to
False, remaining capacities will not be used.
This property merely influences the first operation of a task. It does not have
any impact on the operations following.
This property will be disabled by setting the maximum load to less than
100% (see property AssignmentMaximumLoadFieldIndex).
Example Code
VcGantt1.ResourceScheduler2.FullUsageOfPlanningUnitsEnabled = True
LinkDataTableName
Property of VcResourceScheduler2
This property lets you set or retrieve the name of the linkData table, that
holds links. If you do not set this name, links will not be taken into account
during the run of the resource scheduling module.
Example Code
VcGantt1.ResourceScheduler2.LinkDataTableName = "Link"
LinkDurationFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the link data
table in which a minimum temporal distance between predecessor and
successor can be stored. This distance can also be negative. Unit: as set by
Property value Long Index of the data field in the link data table that is
designated to hold the values on the duration.
Example Code
VcGantt1.ResourceScheduler2.LinkDurationFieldIndex = 3
LinkPredecessorOperationIDFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the link data
table the values of which contain the ID of the predecessor operation. As the
resource scheduling module is only able to draw links between tasks, this
property facilitates the use of links in XGantt which currently can only be
displayed between operations. Thus the links are internally always created
between the tasks of the operations specified by the ID.
When using a link data table, it is mandatory to set this property to a value
not equal to -1 unless the VcResourceScheduler2 property
LinkPredecessorTaskIDFieldIndex is used.
Data Type Explanation
Property value Long Index of the data field in the link data table that is
designated to hold the IDs of the predecessor
operation.
Example Code
VcGantt1.ResourceScheduler2.LinkPredecessorOperationIDFieldIndex = 1
LinkPredecessorTaskIDFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the link data
table the values of which contain the ID of the predecessor task. In the
picture referring to LinkDataTableName, the field index for example is 1.
When using a link data table, it is mandatory to set this property to a value
not equal to -1 unless the VcResourceScheduler2 property
LinkPredecessorOperationIDFieldIndex is used.
Data Type Explanation
Property value Long Index of the data field in the link data table that is
designated to hold the IDs of the predecessor task.
Example Code
VcGantt1.ResourceScheduler2.LinkPredecessorTaskIDFieldIndex = 1
LinkSuccessorOperationIDFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the link data
table the values of which contain the ID of the successor operation. As the
resource scheduling module is only able to draw links between tasks, this
property facilitates the use of links in XGantt which currently can only be
displayed between operations. Thus the links are internally always created
between the tasks of the operations specified by the ID.
When using a link data table, it is mandatory to set this property to a value
not equal to -1 unless the VcResourceScheduler2 property
LinkPredecessorTaskIDFieldIndex is used.
Property value Long Index of the data field in the link data table that is
designated to hold the IDs of the successor
operation.
Example Code
VcGantt1.ResourceScheduler2.LinkSuccessorOperationIDFieldIndex = 1
LinkSuccessorTaskIDFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the link data
table that contains the ID of the successor task. In the picture referring to
LinkDataTableName, the field index for example is 2.
When using a link data table, it is mandatory to set this property to a value
not equal to -1 unless the VcResourceScheduler2 property
LinkSuccessorOperationIDFieldIndex is used.
Data Type Explanation
Property value Long Index of the data field in the link data table that is
designated to hold the IDs of successor tasks.
Example Code
VcGantt1.ResourceScheduler2.LinkSuccessorTaskIDFieldIndex = 2
OperationDataTableName
Property of VcResourceScheduler2
This property lets you set or retrieve the name of the operation data table that
holds data of the operations. Setting this name is mandatory.
Example Code
VcGantt1.ResourceScheduler2.OperationDataTableName = "Operation"
OperationLoadPerItemFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the operation
data table that holds the load of a timing resource per item. To receive the
total load on the timing resource, the value in the data field specified will be
multiplied with the number specified by the task. If the data field holds an
invalid value or if this property is set to -1, a value of 0 will be assumed.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that is designated to hold the values of the load.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationLoadPerItemFieldIndex = 10
OperationMaximumInterruptionTimeFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table to which a
maximum time span is stored, for which the operation is allowed be
interrupted. In the picture referring to OperationDataTableName, the field
index for example is 9.
The content of this field is a number that represents base time units (see
property BaseTimeUnit).
If this property is set to -1 or if the value of the field equals zero or is empty,
the value set by the property DefaultOperationMaximumInterruption-
Time will be used. If the latter also equals 0, an interruption is not allowed. If
the value is < 0, an interruption also is not allowed, even if the property
DefaultOperationMaximumInterruptionTime does not equal 0.
This property will be disabled by setting the maximum load to less than
100% (see property AssignmentMaximumLoadFieldIndex.
Parameter:
timeSpan Long Index of the data field in the operation data table
that is designated to hold the degree of completion.
{-1...NumberOfFieldsInOperationsDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Property value Long Index of the data field in the operation data table
that is designated to hold the values of the
maximum interruption time.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationMaximumInterruptionTimeFieldIndex = 9
OperationMinimumSupplementTimeFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table to which a
minimum supplement time of the operation is stored. During supplement
time, the resources affected by this operation will not be occupied, so this
time span can be used for standby or idle times.
The content of this field is a number that represents base time units (s.
property BaseTimeUnit). In the picture referring to OperationDataTable-
Name, the field index for example is 7.
BaseCalendarUsageForSupplementTimes.
Property value Long Index of the data field in the operation data table
that is designated to hold the values of the minimum
supplement time.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationMinimumSupplementTimeFieldIndex = 7
OperationOverlapQuantityFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the operation
data table that holds the 'overlap' quantity of an operation. Overlapping can
only occur in tasks that were scheduled according to the strategy ASAP. This
is the field to make succeeding resources overlap, which is useful if the
succeeding operation does not have to wait for the preceding one to finish.
The quantity specified in the data field refers to the quantity of the task, set
by the property TaskQuantityFieldIndex. The succeeding operation starts
earliest after the preceding one has worked off the quantity specified (or later,
optionally), overlapping the preceding one.
In the example below, the value of the overlap field equals 3. It refers to the
quantity of 4. After 3 units of those 4 units were worked off by operation1,
operation2 will start. A possibly defined load per item for operation1 (in the
below example =2) will be multiplied by the overlap value: 3*2=6. Therefore
operation2 starts after operation has reached the value of 6.
Property value Long Index of the data field in the operation data table
that is designated to hold the values of the 'overlap'
quantity.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationOverlapQuantityFieldIndex = 11
OperationPostLoadFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table to which a post
time of the operation is stored. During the post time, the resources affected
by this operation will be occupied.
The content of the designated field is a number that represents the required
capacity. In the picture referring to OperationDataTableName, the field
index for example is 13.
If you want to define post times that resource-independent you can use the
property OperationPostOffsetFieldIndex.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that is designated to hold the values of the post
time.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationPostLoadFieldIndex = 13
OperationPostOffsetFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table to which a post
time of each operation is stored. If the field contains positive integers (in the
current base time unit), the time of the operations is resource-independent. If
the index equals -1, there are no post times. This also applies if the index
refers to a data field that contains a non-valid number or a 0 in the according
operation.
If you want to define resource-dependent post times you can use the property
OperationPostLoadFieldIndex.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that specifies whether the follow-up time of an
operation is to be resource-independent.
{-1...NumberOfFieldsInOperationDataTable -1}. If
the index is set to -1, there are no follow-up times.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationPostOffsetFieldIndex = 8
OperationPreparationLoadFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table to which a
preparation time of the operation is stored. During the preparation time, the
resources affected by this operation will be occupied.
The content of the designated field is a number that represents the required
capacity. In the picture referring to OperationDataTableName, the field
index for example is 12.
If you want to define resource-independent post times that you can use the
property OperationPreparationOffsetFieldIndex.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that is designated to hold the values of the
preparation time.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationPreparationLoadFieldIndex = 12
OperationPreparationOffsetFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table to which a
preparation time of each operation is stored. If the field contains positive
integers (in the current base time unit), the preparation time of the operations
is resource-independent. If the index equals -1, there are no preparation
times. This also applies if the index refers to a data field that contains a non-
valid number or a 0 in the according operation.
If you want to define resource-dependent preparation times you can use the
property OperationPreparationLoadFieldIndex.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that specifies whether the lead time of an operation
is to be resource-independent.
{-1...NumberOfFieldsInOperationDataTable -1}. If
the index is set to -1, there are no lead times.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationPreparationOffsetFieldIndex = 8
OperationResultEndDateFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the operation
data table to which the calculated finish date of the operation is stored.
To receive sensible results for the scheduling procedure, at least two out of
the three properties OperationResultStartDateFieldIndex, Operation-
ResultProcessingTimeFieldIndex and OperationResultEndDateField-
Index need to be set to a value unequal to -1.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that is designated to hold the values of the end date.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationResultEndDateFieldIndex = 17
OperationResultPostEndDateFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table which holds the
scheduled end date of the post time of an operation. If this phase is 0, the date
is identical to the value in the data field which is referred to by the property
OperationResultEndDateFieldIndex.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that is designated to hold the end date of the post
time.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationResultPostEndDateFieldIndex = 15
OperationResultPreparationStartDateFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table which holds the
scheduled start date of the preparation phase of an operation. If the
preparation phase is 0, this date is identical to the value in the data field
which is referred to by the property OperationResultStartDateFieldIndex.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that is designated to hold the start date of the
preparation phase.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationResultPreparationStartDateFieldIndex = 10
OperationResultProcessingTimeFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table to which the
calculated duration of the operation is stored. IIn the picture referring to
OperationDataTableName, the field index for example is 18.
To receive sensible results for the scheduling procedure, at least two out of
the three properties OperationResultStartDateFieldIndex, Operation-
ResultProcessingTimeFieldIndex and OperationResultEndDateField-
Index need to be set to a value unequal to -1.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that is designated to hold the values of the
processing time.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationResultProcessingTimeFieldIndex = 18
OperationResultSelectedTimingResourceIDFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table which holds the
scheduled ID of a timing resource that was selected by the module. Thus in a
table or a layer annotation the assigned resource can easily be shown
graphically.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that is designated to hold the ID of the timing
resource that was selected by the module.
{-0...NumberOfFieldsInOperationsDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.OperationResultSelectedTimingResourceFieldIndex = 8
OperationResultStartDateFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operations table to which the calculated
start date of the operation is stored. In the picture referring to Operation-
DataTableName, the field index for example is 16.
To receive sensible results for the scheduling procedure, at least two out of
the three properties OperationResultStartDateFieldIndex, Operation-
ResultProcessingTimeFieldIndex and OperationResultEndDateField-
Index need to be set to a value unequal to -1.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that is designated to hold the values of the start
date.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operations
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationResultStartDateFieldIndex = 16
OperationResultStatusFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table to which an error
or a warning on scheduling the operation is stored. In the picture referring to
OperationDataTableName, the field index for example is 19.
1: the operation was not scheduled because the scheduling procedure selected
a different route of the task. This case can only occur if the property
OperationRouteFieldIndex was set to a value unequal to -1.
1001: the operation was not scheduled and it was an operation of a task
causing the task not to be scheduled. The reasons for this can be various.
Property value Long Index of the data field in the operation data table
that is designated to hold the error values.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationResultStatusFieldIndex = 19
OperationRouteFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the operation
data table the values of which assign operations to routes. In the picture
referring to OperationDataTableName, the field index for example is14.
Operations of the same content in this field belong to the same route. The
content of this field also represents the name of the route.
Property value Long Index of the data field in the operation data table
that is designated to hold the name of the route.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationRouteFieldIndex = 14
OperationSequenceNumberFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the operation
data table the values of which define the sequence of the operations
Property value Long Index of the data field in the operation data table
that is designated to hold the sequence values.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationSequenceNumberFieldIndex = 6
OperationStartLockDateFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table that holds a start
date for each operation in case of ASAP planning strategy (see property
PlanningStrategy. In the picture referring to OperationDataTableName,
the field index for example is 5.
If the data field contains a valid date, the task will be locked in the place of
that start date and will not be moved by the scheduling procedure, which
makes sense in particular for tasks already started. Please also see the
property OperationWorkInProcessFieldIndex).
Property value Long Index of the data field in the operation data table
that is designated to hold the lock date.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationStartLockDateFieldIndex = 5
OperationTaskIDFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a data field in the
operations table which holds the ID of the task that the operation belongs to.
IIn the picture referring to OperationDataTableName, the field index for
example is 2.
Property value Long Index of the data field in the operation data table
that is designated to hold the task ID.
{-1...NumberOfFieldsInOperationDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationTaskIDFieldIndex = 2
OperationWorkInProcessFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the operation data table that contains a
field which holds the degree of completion of an operation. In the picture
referring to OperationDataTableName, the field index for example is 15.
If the data field index was found to be -1 or no valid value can be provided
by the field, 0% ("not started") will be assumed.
Data Type Explanation
Property value Long Index of the data field in the operation data table
that is designated to hold the degree of completion.
{-1...NumberOfFieldsInOperationsDataTable -1}. By
setting the index to -1, no data field of the operation
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.OperationWorkInProcessFieldIndex = 15
PlanningEndDate
Property of VcResourceScheduler2
By this property you can set or retrieve the end date of the scheduling period.
If you do not set this date, the end date will be taken from the end of the time
scale, set by the property VcGantt.TimeScaleEnd. The start of the
scheduling period can be set by PlanningStartDate.
Example Code
VcGantt1.ResourceScheduler2.PlanningEndDate = VcGantt1.TimeScaleEnd
PlanningStartDate
Property of VcResourceScheduler2
By this property you can set or retrieve the start date of the scheduling
period. If you do not set this date, the start date will be taken from the start of
the time scale, set by the property VcGantt.TimeScaleStart. The end of the
scheduling period can be set by PlanningEndDate.
Example Code
VcGantt1.ResourceScheduler2.PlanningStartDate = VcGantt1.TimeScaleStart
PlanningStrategy
Property of VcResourceScheduler2
This property specifies the planning strategy for tasks. Two options exist for
planning strategies: One strategy aims at working off tasks as fast as possible
to achieve a high turnover in the production system. Therefore, tasks start as
soon as possible (ASAP). The other strategy aims at finishing tasks duely, for
example to keep stocks low. Therefore, tasks finish just in time (JIT).
So in the ASAP strategy the start is early (picture left), while in the JIT
strategy the finish is late (picture right). The long slim bars show the
available period to complete a task, while the short big bars represent the
actually allocated time for completion. So ASAP tasks tend to appear at the
If an individual setting of the planning strategy per task is required, you can
assign a data field by TaskPlanningStrategyFieldIndex to individually
overwrite settings of PlanningStrategy.
Data Type Explanation
Possible Values:
vcResSchedPSASAP 1- As soon as possible
vcResSchedPSJIT 0 Just in time
Example Code
VcGantt1.ResourceScheduler2.PlanningStrategy = vcResSchedPSASAP
ResourceCalendarNameFieldIndex
Property of VcResourceScheduler2
The index passed as the property value specifies a data field in the resource
data table that defines the name of a calendar for a resource of the type
TimingResource or WorkResource. If the field of the resource is empty, if
it contains an invalid name or if this property is set to -1, as a substitute the
name of the resource will be used for the calendar name, which is indirectly
derived by the property ResourceNameFieldIndex.
Data Type Explanation
Property value Long Index of the data field in the resource data table that
that defines a calendar name for the resource of the
type TimingResource or WorkResource
Default value: -1
ResourceCapacityType
Property of VcResourceScheduler2
This property specifies the capacity type for all resources, if it is not set in-
dividually for each resource by ResourceCapacityTypeFieldIndex.
Possible Values:
vcResSchedCTFinite -1 Finite capacities
vcResSchedCTInfinite 0 Infinite capacities
Example Code
VcGantt1.ResourceScheduler2.ResourceCapacityType = vcResSchedCTFinite
ResourceCapacityTypeFieldIndex
Property of VcResourceScheduler2
This property lets you set or retrieve the index of a field in a resource data
table that holds the capacity type of a single timing resource. I In the picture
referring to ResourceDataTableName, the field index for example is 2.
The index passed as a parameter denotes one out of 25 resource tables. The
one to be used is defined by the indexed property ResourceDataTableName.
If a resource belongs to more than one group, it has to have the same capacity
type in all groups.
Data Type Explanation
Parameter:
resourceTableIndex Short Index of the resource data table.
{0...24}
Property value Long Index of the data field in the resource data table that
is designated to hold the capacity type.
{-1...NumberOfFieldsInResourceDataTable -1}. By
setting the index to -1, no data field of the resource
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.ResourceCapacityTypeFieldIndex(0) = 1
ResourceConstraintTypeFieldIndex
Property of VcResourceScheduler2
The index passed as the property value specifies a data field in the resource
data table that holds a constraint for a single work or material resource.
Among the 25 possibly existing recource tables the one sought for is referred
to by the index passed as the parameter.
The values "" or "1" or no field indicate, that the given capacity of the
resource is truely valid (this is what is called a "hard" resource).
The value "0" indicates, that the given capacity of the resource may be
ignored if there is an increasing demand for it, since it then would be
available by an unlimited capacity ("soft" resource).
The value "3" indicates that the resource is "hard", but workfree periods will
be taken into account which do not cause interruptions when the operation is
scheduled.
Data Type Explanation
Parameter:
index Short Index of the resource data table
{0...24}
Property value Long Index of the data field in the resource data table that
is designated to hold the constraint data.
{-1...NumberOfFieldsInResourceDataTable -1}. By
setting the index to -1, no data field of the resource
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.ResourceConstraintTypeFieldIndex(0) = 1
ResourceDataTableName
Property of VcResourceScheduler2
This property lets you set or retrieve the names of up to 25 resource data
tables. The name at the index 0 is to be set by obligation. If more than one
name is set, the indices need to be stocked continuously without a gap from 0
onward. For each resource data table set by this property a corresponding
field has to be allocated in the assignment data table by the property
AssignmentResourceIDFieldIndex.
Parameter:
resourceTableIndex Short Index of the resource data table.
{0...24}
Example Code
VcGantt1.ResourceScheduler2.ResourceDataTableName(1) = "Timing Resource"
ResourceEfficiencyFieldIndex
Property of VcResourceScheduler2
The index passed as the property value specifies a data field in the resource
data table that indicates an efficiency in percent for the resource of the type
TimingResource. If this field of a resource is empty or if the property is set
to -1, the efficiency by default equals 100. If however a value is set, the total
of the allocations is multiplied by the efficiency value by assigning before
scheduling this resource. So if the efficiency is lower than 100 per cent, an
operation assigned to this resource will take longer than the default wheras
values above 100 per cent will cause an assigned operation to be worked off
faster than could the default. This is particularly interesting regarding the
definition of resource groups (please see also ResourceSelectionStrategy),
where from the available resources the one of greatest efficiency can be
selected.
Property value Long Index of the data field in the resource data table that
indicates the efficiency in per cent of a resource of
the type Timing Resource.
Default value: -1
ResourceGroupDataTableName
Property of VcResourceScheduler2
This indexed property lets you set or retrieve the data table in which the
resource groups can be found, of which the IDs are held by fields referred to
by ResourceGroupIDFieldIndex. So for each field index that you specify
by the property ResourceGroupIDFieldIndex, you need to set the name of a
data field by this property, which uses the same data tables as does
ResourceDataTableName. The resource data table index passed as the
parameter denotes one out of 25 available resource data tables assigned by
the indexed property ResourceDataTableName.
Parameter:
resourceGroupTableIndex Short Index of the resource group data table.
{0...24}
Example Code
VcGantt1.ResourceScheduler2.ResourceGroupDataTableName(1) = "Printer Resource"
ResourceGroupIDFieldIndex
Property of VcResourceScheduler2
The index passed as the property value specifies a data field in the resource
data table that is designated to hold the ID of a group resource. By setting the
ID, the resource is described as one belonging to the group. In the picture
referring to ResourceGroupDataTableName, the field index for example is
0. If the field index is set to -1 or if the resource data field referred to is
empty, the resource will not belong to a group. This property must only be set
to timing resources (see property ResourceType).
The index passed as a parameter denotes one out of 25 resource tables. They
can be set by the indexed property ResourceDataTableName.
Data Type Explanation
Parameter:
resourceTableIndex Short Index of the resource data table
{0...24}
Property value Long Index of the data field in the resource data table that
is designated to hold the groupID.
{-1...NumberOfFieldsInResourceDataTable -1}. By
setting the index to -1, no data field of the resource
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.ResourceGroupIDFieldIndex(0) = 1
ResourceNameFieldIndex
Property of VcResourceScheduler2
The index passed as the property value specifies a data field in the resource
data table that holds the names of resources. In the picture referring to
ResourceDataTableName, the field index for example is 1.
The resource name serves to identify histogram names, curve names and
calendar names. Beside, it is used with groups to allocate a resource to
several groups simultaneously. For this, a resource in different data records
needs to be specified by the same name but by different IDs of the group
resources. If no field index is specified, names of histograms, curves and
calendars will be retrieved on the base of the resource ID.
The index passed as a parameter denotes one out of 25 resource tables. The
resource tables used can be set by the indexed property ResourceDataTable-
Name.
Data Type Explanation
Parameter:
resourceTableIndex Short Index of the resource data table.
{0...24}
Property value Long Index of the data field in the resource data table that
is designated to hold the name.
{-1...NumberOfFieldsInResourceDataTable -1}. By
setting the index to -1, no data field of the resource
data table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.ResourceNameFieldIndex(0) = 1
ResourceResultLoadCurveNamePrefix
Property of VcResourceScheduler2
Prefix for the name of the curve that after the scheduling procedure contains
the resource capacity for each timing resource and for each work and material
resource.
The curves for the work load need to have been defined before invoking the
method Process, otherwise they cannot be visualized. The resource name or
the resource ID will be used to form the remaining part of the name (see
property ResourceMameFieldIndex). If a curve is not found, the results of
the work load will be lost for the resource affected.
Beside, the property CurveSource needs to have been set to vcSetCurve for
the curves, i.e. assignments must be feasible by the VcCurve.SetValues
method of the API.
Data Type Explanation
Example Code
VcGantt1.ResourceScheduler2.ResourceResultLoadCurveNamePrefix = "LoadCurve_"
ResourceResultStockCurveNamePrefix
Property of VcResourceScheduler2
Prefix for the name of the curve that after the scheduling procedure contains
the available stock of each material resource.
The stock curves need to have been defined before invoking the method
Process, otherwise they cannot be visualized. The resource name or the
resource ID will be used to form the remaining part of the name.
If a curve is not found, the results of the stock will be lost for the resource
affected. The availabe stock is calculated from the cumulation of material
supply (that is, from the supply curve that has to be put up before the
scheduling procedure starts) and from the utilization by the operations that
were assigned to the resource.
Beside, the property CurveSource needs to have been set to vcSetCurve for
the curves, i.e. assignments must be feasible by the VcCurve.SetValues
method of the API.
Data Type Explanation
Example Code
VcGantt1.ResourceScheduler2.ResourceResultStockCurveNamePrefix = 1
ResourceSelectionStrategy
Property of VcResourceScheduler2
This property specifies the selection strategy of the scheduling process for
resources to be selected from a group (therefore for timing resources only).
Data Type Explanation
Possible Values:
Example Code
VcGantt1.ResourceScheduler2.ResourceSelectionStrategy = vcResSchedRSLeastLoaded
ResourceType
Property of VcResourceScheduler2
This property lets you set or retrieve the type of a resource data table. The
index passed specifies one of the 25 possibly existing resource data tables.
Three possible resource types exist:
1. Timing Resources
2. Work Resources
3. Material Resources
Parameter:
resourceTableIndex Short Index of the resource data table.
{0...24}.
Possible Values:
vcResSchedMaterial -1 The resource type is "material".
vcResSchedTiming 1 The resource type is "timing".
vcResSchedWork 0 The resource type is "work".
Example Code
VcGantt1.ResourceScheduler2.ResourceType(0) = vcResSchedTiming
ResultProcessingStepCount
Property of VcResourceScheduler2
This property provides the number of scheduled operations in the chart after a
scheduling procedure.
Data Type Explanation
Example Code
Dim i As Integer
i = VcGantt1.ResourceScheduler2.ResultProcessingStepCount
TaskDataTableName
Property of VcResourceScheduler2
This property lets you set or retrieve the name of the task data table. A valid
table name has to be used with the property.
Example Code
VcGantt1.ResourceScheduler2.TaskDataTableName = "Task"
TaskDueDateFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the tasks data table which holds the due
date at which a task must be finished. If no valid value is found in the data
field, the value set by the VcGantt property TimeScaleEnd will be used. If
you wish the task to be scheduled, the value of this property must not be set
to -1. In the picture referring to TaskDataTableName, the field index for
example is 3.
Property value Long Index of the data field in the task data table that is
designated to hold the due date.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskDueDateFieldIndex = 3
TaskPlanningStrategyFieldIndex
Property of VcResourceScheduler2
The index specifies a data field which holds an individual planning strategy
for a task.
If no value is set or if the value is < 1 or > 2, the value set by the property
Planning Strategy will be used. In the picture referring to TaskDataTable-
Name, the field index for example is 6.
In the ASAP strategy a task is scheduled early, while in the JIT strategy it is
scheduled late. The long slim bars show the available period to complete a
task, while the short big bars represent the actually allocated time for
completion. So ASAP tasks tend to appear at the left end of the available
period of completion, while JIT tasks tend to appear at its right end.
Data Type Explanation
Property value Long Index of the data field in the task data table that is
designated to hold the data of the planning strategy.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskPlanningStrategyFieldIndex = 6
TaskPriorityFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the task data table which holds a priority
for a task. The higher the priority value, the better the activity is positioned in
the queue of scheduling.
Please note: If tasks are linked, their priorities should be set very carefully.
When using the ASAP strategy, predecessors should have the same priority
as their successors; when using the JIT strategy, predecessors should have at
least the same priority as their successors. Tasks can be grouped by their
priorities. For example, when grouping tasks of equal priority, preparation
and cleaning times of the device may be saved.
Data Type Explanation
Property value Long Index of the data field in the task data table that is
designated to hold the priority.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskPriorityFieldIndex = 5
TaskQuantityFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the tasks data table which holds the
quantity to be worked off by a task. The value of this property must not be set
to -1.
The quantity indirectly influences the amount of time required by the task to
finish. The amount of time can also be influenced by the efficiency of the
resources (see ResourceEfficiencyFieldIndex), by multipliers of operations
(see OperationLoadPerItemFieldIndex) and of assignments (see Assign-
mentLoadOrConsumptionPerItemFieldIndex).
Property value Long Index of the data field in the task data table that is
designated to hold the quantity.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskQuantityFieldIndex = 4
TaskReleaseDateFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the tasks data table which holds the release
date from which onward a task can be scheduled. The value of this property
must not be set to -1.
If no valid value is found in the data field, the value set by the VcGantt
property TimeScaleStart will be used. In the picture referring to TaskData-
TableName, the field index for example is 2.
You can set a general allowance to release dates by the property Tolerance-
TimeOnJITReleaseDates.
Data Type Explanation
Property value Long Index of the data field in the task data table that is
designated to hold the release date.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskReleaseDateFieldIndex = 2
TaskResultEndDateFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the tasks data table which holds the
calculated end date of the latest operation scheduled that is part of the task. In
the picture referring to TaskDataTableName, the field index for example is
8.
Property value Long Index of the data field in the task data table that is
designated to hold the end date.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskResultEndDateFieldIndex = 8
TaskResultPostEndDateFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the task data table which holds the
scheduled end date of the post time of a task. If the post time equals 0, the
date is identical to the value in the data field which is referred to by the
property TaskResultEndDateFieldIndex.
Data Type Explanation
Property value Long Index of the data field in the task data table that is
designated to hold the end date of the post time.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskResultPostEndDateFieldIndex = 15
TaskResultPreparationStartDateFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the task data table which holds the
scheduled start date of the preparation phase of a task. If the preparation
phase is 0, this date is identical to the value in the data field which is referred
to by the property TaskResultStartDateFieldIndex.
Property value Long Index of the data field in the task data table that is
designated to hold the start date of the preparation
phase.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskResultPreparationStartDateFieldIndex = 10
TaskResultProcessingStepFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the tasks data table which holds a sequence
number by which the task was scheduled. This value is useful to recognize
the first task that cannot be scheduled due to resource bottlenecks.
The task scheduled first will receive 0, the tasks following will receive the
consecutive numbers in ascending order. In the picture referring to Task-
DataTableName, the field index for example is 11.
Data Type Explanation
Property value Long Index of the data field in the task data table that is
designated to hold the sequence number.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskResultProcessingStepFieldIndex = 11
TaskResultProcessingTimeFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the tasks data table which holds the
calculated total processing time of the operations that form the task and that
were scheduled. It is the time span between the start date of the first
operation and the final date of the last operation. Units: as set by the base
time unit. In the picture referring to TaskDataTableName, the field index
for example is 10.
Property value Long Index of the data field in the task data table that is
designated to hold the processing time.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskResultProcessingTimeFieldIndex = 10
TaskResultRouteFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the tasks data table which holds the name
of a route that was selected for the task by the scheduling procedure.
The value of this property should be set to a value different from -1, if the
property OperationRouteFieldIndex is also used. In the picture referring to
TaskDataTableName, the field index for example is 9.
Data Type Explanation
Property value Long Index of the data field in the task data table that is
designated to hold the name of the route.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskResultRouteFieldIndex = 9
TaskResultStartDateFieldIndex
Property of VcResourceScheduler2
The index specifies a data field in the tasks data table which holds the
calculated start date of the earliest operation scheduled that is part of the task.
In the picture referring to TaskDataTableName, the field index for example
is 7.
Property value Long Index of the data field in the task data table that is
designated to hold the start date.
{-1...NumberOfFieldsInTaskDataTable -1}. By
setting the index to -1, no data field of the task data
table will be assigned to this property.
Default value: -1
Example Code
VcGantt1.ResourceScheduler2.TaskResultStartDateFieldIndex = 7
ToleranceTimeOnASAPDueDates
Property of VcResourceScheduler2
By this property you can set or retrieve an allowance to due dates. It only
works with the ASAP planning strategy. The unit equals the one set by the
property BaseTimeUnit.
During the scheduling procedure, the due dates of the tasks are postponed by
the number of units set by this property, prolonging the period of time
allowed to a task. This property is useful to detect whether after enlarging the
scheduling period all operations and tasks could be scheduled. It saves you
from modifying and testing tasks individually.
Example Code
VcGantt1.ResourceScheduler2.ToleranceTimeOnASAPDueDates = 1
ToleranceTimeOnJITReleaseDates
Property of VcResourceScheduler2
By this property you can set or retrieve a variation allowed to release dates.
This setting only works if the JIT planning strategy is set. The unit equals
what was set by the property BaseTimeUnit.
During the scheduling procedure, the release dates of the tasks are put earlier
by the number of units set by this property, prolonging the period of time
Example Code
VcGantt1.ResourceScheduler2.ToleranceTimeOnJITReleaseDates = 1
ToleranceTimeOnStartLockDates
Property of VcResourceScheduler2
By this property you can set or retrieve an allowance to a locked start date of
an operation (see OperationStartLockDateFieldIndex). Its unit equals the
one set by the property BaseTimeUnit.
Example Code
VcGantt1.ResourceScheduler2.ToleranceTimeOnStartLockDatess = 1
WorkInProcessType
Property of VcResourceScheduler2
This property sets the unit to specify the degree of completion (please see
OperationWorkInProcessFieldIndex).
Data Type Explanation
Possible Values:
Example Code
VcGantt1.ResourceScheduler2.WorkInProcessType = vcResSchedWIPCompleted
WritingDebugFilesEnabled
Property of VcResourceScheduler2
If this property is set to True, debug files can be stored to the directory of the
application, which may be useful for error analysis.
Data Type Explanation
Property value Boolean True: debug files can be written into the current
directory.
Example Code
VcGantt1.ResourceScheduler2.WritingDebugFilesEnabled = True
Methods
DetermineIDOfFirstOperationByTaskID
Method of VcResourceScheduler2
This method determines the ID of the first operation of a task by the given
TaskID and helps the developer updating the data field of a link which
contains the first operation of a task.
Parameter:
taskID String ID of a task of the corresponding data table which
was set by the VcResourceScheduler2 property
TaskDataTableName.
DetermineIDOfLastOperationByTaskID
Method of VcResourceScheduler2
This method determines the ID of the last operation of a task by the given
TaskID and helps the developer updating the data field of a link which
contains the last operation of a task.
Parameter:
taskID String ID of a task of the corresponding data table which
was set by the VcResourceScheduler2 property
TaskDataTableName.
Process
Method of VcResourceScheduler2
This method starts the scheduling procedure after the desired properties were
set. For messages on the progress please also see OnResourceScheduling-
Progress. Beside, warnings are put out by ResourceSchedulingWarning.
Data Type Explanation
Example Code
VcGantt1.ResourceScheduler2.Process
7.71 VcRibbon
An object of the type VcRibbon represents a defined ribbon in the time scale
of homogeneous units and scaling. You can set the background color, the
type of unit separation, font type, color, size, alignment and other attributes to
a ribbon.
Properties
• CalendarName
• DateOutputFormat
• Font
• FontColor
• MajorTicks
• MinorTicks
• ObserveDST
• PatternBackgroundColorAsARGB
• PatternColorAsARGB
• PatternEx
• Position
• ReferenceDate
• TextAlignment
• TickColor
• TickPosition
• Type
• UnitSeparation
• UseReferenceDate
Properties
CalendarName
Property of VcRibbon
DateOutputFormat
Property of VcRibbon
This property lets you specify the date output format of a ribbon. To compose
the date you can use the below codes:
Note: Characters which are not to be interpreted as part of the date should be
preceded by a backslash '\'. '\\' for instance results in '\'. The special
characters: ':, /, -' and blank don't need '\' as prefix
Data Type Explanation
{DMYhms:;/} or {01234CXx}
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
Font
Property of VcRibbon
This property lets you set or retrieve all font attributes of the ribbon.
Data Type Explanation
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
Dim newFont As New StdFont
FontColor
Property of VcRibbon
This property lets you set or retrieve the font color of the ribbon.
Data Type Explanation
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
MajorTicks
Property of VcRibbon
This property lets you set or retrieve after how many time units a major tick
is drawn. The time unit depends on the ribbon type used. The major ticks are
labelled when there is enough space. This property you can also set in the
Edit Time Scale Section dialog.
Data Type Explanation
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
MinorTicks
Property of VcRibbon
This property lets you set or retrieve after how many time units a minor tick
is drawn. The time unit depends on the ribbon type used. The minor ticks are
not labelled. This property you can also set in the Edit Time Scale Section
dialog.
Data Type Explanation
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
ObserveDST
Read Only Property of VcRibbon
This property lets you set or retrieve whether for this ribbon daylight saving
time is considered or not.
Possible Values:
vcGODDefault 9999 Default setting from .INI file is used
vcRODNo 0 Daylight saving time is not considered
vcRODYes 1 Daylight saving time is considered
PatternBackgroundColorAsARGB
Property of VcRibbon
This property lets you set or retrieve the background color of the ribbon.
Color values have a transparency or alpha value, followed by a value for a
red, a blue and a green partition (ARGB). The values range between 0..255.
An alpha value of 0 equals complete transparency, whereas 255 represents a
completely solid color. When casting an RGB value on an ARGB value, an
alpha value of 255 has to be added.
Data Type Explanation
({0...255},{0...255},{0...255},{0...255})
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
PatternColorAsARGB
Property of VcRibbon
This property lets you set or retrieve the pattern color of the ribbon. Color
values have a transparency or alpha value, followed by a value for a red, a
blue and a green partition (ARGB). The values range between 0..255. An
alpha value of 0 equals complete transparency, whereas 255 represents a
completely solid color. When casting an RGB value on an ARGB value, an
alpha value of 255 has to be added.
Data Type Explanation
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
PatternEx
Property of VcRibbon
This property lets you set or retrieve the fill pattern type of the ribbon.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
Position
Property of VcRibbon
This property lets you set or retrieve the position of the ribbon.
Data Type Explanation
Possible Values:
vcRPBottom 2 bottom
vcRPNone 0 none
vcRPTop 1 top
ReferenceDate
Property of VcRibbon
Parameter:
Rückgabewert Boolean Ribbon uses (True) / does not use (False) reference
date
TextAlignment
Property of VcRibbon
This property lets you set or retrieve the alignment of the major ticks of the
ribbon.
Data Type Explanation
Possible Values:
vcRTAtTickAligned 1039 Text placed at tick
vcRTHorCenterAligned -1 Text horizontally centered between two major
ticks
vcRTLeftAligned -3 Text left aligned between two major ticks
vcRTRightAligned -2 Text right aligned between two major ticks
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
TickColor
Property of VcRibbon
TickPosition
Property of VcRibbon
Possible Values:
vcTPAbove 1044 above
vcTPBelow 1045 below
Type
Property of VcRibbon
This property lets you set or retrieve the ribbon type. The types available are
listed below.
Data Type Explanation
Possible Values:
vcDayRibbon 5 Ribbon showing days' units
vcFiscalQuarterRibbon 3002 Ribbon showing fiscal quarters' units
vcFiscalYearRibbon 3001 Ribbon showing fiscal years' units
vcHourRibbon 6 Ribbon showing hours' units
vcMinuteRibbon 7 Ribbon showing minutes' units
vcMonthRibbon 3 Ribbon showing months' units
vcQuarterRibbon 10 Ribbon showing quarters' units
vcSecondRibbon 9 Ribbon showing seconds' units
vcShiftRibbon 8 Ribbon showing shifts
vcWeekRibbon 4 Ribbon showing weeks' units
vcYearRibbon 1 Ribbon showing years' units
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
UnitSeparation
Property of VcRibbon
This property lets you set or retrieve the appearance of the major ticks of the
ribbon. A full line, a tick and no line are the features available.
Data Type Explanation
Possible Values:
vcUSFullLine 4 Units separated by full lines
vcUSNone 1 Units not separated
vcUSTick 1035 Units separated by ticks
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
UseReferenceDate
Property of VcRibbon
This property lets you set or retrieve whether the ribbon uses a reference date.
Data Type Explanation
7.72 VcScheduler
Properties
• ActualEndDateDataFieldIndex
• ActualStartDateDataFieldIndex
• AutomaticSchedulingEnabled
• DurationDataFieldIndex
• EarlyEndDateDataFieldIndex
• EarlyStartDateDataFieldIndex
• EndDateForAutomaticScheduling
• EndDateNotLaterThanDataFieldIndex
• FreeFloatDataFieldIndex
• LateEndDateDataFieldIndex
• LateStartDateDataFieldIndex
• LinkDurationDataFieldIndex
• ScheduledProjectEndDate
• ScheduledProjectStartDate
• ScheduleSuccessorsOnlyEnabled
• StartDateForAutomaticScheduling
• StartDateNotEarlierThanDataFieldIndex
• TotalFloatDataFieldIndex
Methods
• ScheduleProject
Properties
ActualEndDateDataFieldIndex
Property of VcScheduler
With this property you can set/retrieve the index of the data field which
contains the present end date of the activity. This is only possible as long as
no data has been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the valid end date
ActualStartDateDataFieldIndex
Property of VcScheduler
This property lets you set/retrieve the index of the data field which contains
the start date set to the activity. This is only possible as long as no data has
been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the valid start
date
AutomaticSchedulingEnabled
Property of VcScheduler
This property lets you set or retrieve whether automatic time scheduling is
switched on or off.
Data Type Explanation
DurationDataFieldIndex
Property of VcScheduler
With this property you can set/retrieve the index of the data field which
contains the duration of the activity. This is only possible as long as no data
has been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the duration of
the activity
EarlyEndDateDataFieldIndex
Property of VcScheduler
With this property you can set/retrieve the index of the data field which
contains the calculated earliest possible end date of the activity. This is only
possible as long as no data has been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the earliest
possible end date of an acitivity
EarlyStartDateDataFieldIndex
Property of VcScheduler
With this property you can set/retrieve the index of the data field which
contains the calculated earliest possible start date of the activity. This is only
possible as long as no data has been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the earliest
possible start date of an activity
EndDateForAutomaticScheduling
Property of VcScheduler
EndDateNotLaterThanDataFieldIndex
Property of VcScheduler
With this property you can set/retrieve the index of the data field which
contains the desired latest end date of the activity. This is only possible as
long as no data has been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the desired latest
end date
FreeFloatDataFieldIndex
Property of VcScheduler
With this property you can set/retrieve the index of the data field which
contains the calculated free float of the activity. This is only possible as long
as no data has been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the free float
LateEndDateDataFieldIndex
Property of VcScheduler
With this property you can set/retrieve the index of the data field which
contains the calculated latest possible end date of the activity. This is only
possible as long as no data has been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the latest
possible end date
LateStartDateDataFieldIndex
Property of VcScheduler
With this property you can set/retrieve the index of the data field which
contains the calculated latest possible start date of the activity. This is only
possible as long as no data has been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the latest
possible start date
LinkDurationDataFieldIndex
Property of VcScheduler
This property lets you set or retrieve the index of a data field in the project in
which a minimum temporal distance between predecessor and successor can
be stored. This is only possible as long as no data has been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the minimum time
space between a predecessor and a successor
node
ScheduledProjectEndDate
Read Only Property of VcScheduler
This property returns the early end of a project after having calculated the
project dates by VcScheduler.ScheduleProject if the start date was set
before.
Property value Date Index of the data field which holds the scheduled
end date of the project
ScheduledProjectStartDate
Read Only Property of VcScheduler
This property returns the late start of a project after the project dates were
calculated by VcScheduler.ScheduleProject if an end date was set before.
Property value Date Index of the data field which holds the scheduled
start date of the project
ScheduleSuccessorsOnlyEnabled
Property of VcScheduler
With this property you can set/retrieve whether the scheduling of only those
nodes that have a predecessor node is switched on or off; otherwise all nodes
will be scheduled. A "project start" will thus be ignored.
Data Type Explanation
StartDateForAutomaticScheduling
Property of VcScheduler
StartDateNotEarlierThanDataFieldIndex
Property of VcScheduler
This property lets you set or retrieve the index of the data field which
contains the desired earliest start date of the activity. This is only possible as
long as no data has been loaded.
Property value Long Index of the data field which holds the desired early
start date
TotalFloatDataFieldIndex
Property of VcScheduler
This property lets you set or retrieve the index of the data field which
contains the calculated total float of the activity. This is only possible as long
as no data has been loaded.
Data Type Explanation
Property value Long Index of the data field which holds the total float
Methods
ScheduleProject
Method of VcScheduler
This method lets you calculate the dates of a project (early / late start, early /
late end, free float, total float) of a project. The desired start and end date can
be set by this method. By passing only the end date, the project start will be
calculated, by passing only the start date, the project end will be calculated.
You can pass both dates, which will add the corresponding float to the
activities. (This only works with matching dates, which means that the end
date for example should not be within the project time period.) At least one
date must be passed, otherwise an error message will occur. If a cycle
amongst the nodes and links is identified, the ones affected will be marked.
The results will be stored to fields that you can set by the propertiesEarly-
StartDateDataFieldIndex, LateStartDateDataFieldIndex, EarlyEndDate-
DataFieldIndex, LateEndDateDataFieldIndex, FreeFloatDataFieldIndex
and TotalFloatDataFieldIndex.
Data Type Explanation
Parameter:
startDate Date Desired start date
Return value Boolean The project data were successfully calculated (true) /
were not calculated (False)
Example Code
VcScheduler.ScheduleProject (3.5.2012,1.10.2012)
7.73 VcSection
Properties
• CalendarGridEx
• Collapse
• DateLineGrid
• Ribbon
• StartDate
• Unit
• UnitWidth
• UnitWidthEx
Properties
CalendarGridEx
Read Only Property of VcSection
Parameter:
gridIndex Integer Index of the calendar grid
Collapse
Property of VcSection
This property lets you set or retrieve whether workfree periods of this section
are to be collapsed. This property can also be set in the subdialog Edit time
scale section of the Specify Time Scale dialog which you can reach by the
Time scales... button on the property page Objects.
Tip: Please note that the visible time scale section will be shifted when you
modify the property value at runtime. If you want to make sure that always
the same reference date is displayed on the left, please call the following
method:
Set_NonWorkIntervalsCollapsed(vcGantt1, true);
gantt.TimeScaleCollection.Active.get_Section(0).NonWorkIntervalsCollapse
d = collapse;
gantt.ScrollToDate(dt_left, VcHorizontalAlignment.vcLeftAligned,
0);
}
Data Type Explanation
Example Code
Dim timeScaleCltn As VcTimeScaleCollection
Dim timeScale As VcTimeScale
DateLineGrid
Read Only Property of VcSection
This property gives you access to the DateLineGrid object, that lets you mark
time periods such as days, weeks or months by vertical lines.
Data Type Explanation
Parameter:
gridIndex Integer Index of the date line grid
Example Code
Dim timeScale As VcTimeScale
Dim section As VcSection
Dim dateLineGrid As VcDateLineGrid
Ribbon
Property of VcSection
Parameter:
ribbonIndex Integer Index of the ribbon
Example Code
Dim timeScale As VcTimeScale
Dim section As VcSection
Dim ribbon As VcRibbon
StartDate
Property of VcSection
This property lets you set or retrieve the start date of a section. Note: The
start date of the first section (Section 0) is specified by the project start and
must not be edited here. Besides, you cannot specify a start date that is
beyond the time scale.
Data Type Explanation
Example Code
Dim timeScale As VcTimeScale
Dim section As VcSection
Unit
Property of VcSection
This property lets you set or retrieve the time unit that a section is based on.
Data Type Explanation
Possible Values:
vcDay 5 Time unit day
vcHour 6 Time unit hour
vcMinute 7 Time unit minute
vcSecond 8 Time unit second
Example Code
Dim timeScale As VcTimeScale
Dim section As VcSection
UnitWidth
Property of VcSection
This property lets you set or retrieve the unit width of a section (in 1/100
mm). This property also can be set in the Specify Time Scale dialog.
Property value Long Unit width (by 1/100 mm; minimum width: > 0)
Example Code
Dim timeScale As VcTimeScale
Dim section As VcSection
UnitWidthEx
Property of VcSection
This property only differs from the property UnidtWidth by the data type
Double that is more exact than the data type Long.
Data Type Explanation
Example Code
Dim timeScale As VcTimeScale
Dim section As VcSection
7.74 VcTable
An object of the type VcTable object controls the graphical design of the
table section of the diagram: the table heading, column widths and the
available formats.
Properties
• ColumnTitle
• ColumnWidth
• Name
• NoOfColumns
• Position
• TableFormatCollection
• UpdateBehaviorName
• Visible
Methods
• IdentifyFormatField
• OptimizeColumnWidth
Properties
ColumnTitle
Property of VcTable
This property lets you specify the caption for each table column. This
property also can be set in the Edit Table dialog.
Data Type Explanation
Parameter:
colNumber Integer Number of table column
Example Code
Dim table As VcTable
ColumnWidth
Property of VcTable
This property lets you specify the width of each table column. This property
can also be set in the Edit Table dialog.
Data Type Explanation
Parameter:
colNumber Integer Number of table column
Example Code
Dim table As VcTable
Name
Property of VcTable
This property lets you set or retrieve the name of the table. This property also
can be set in the Edit Table dialog.
Data Type Explanation
NoOfColumns
Read Only Property of VcTable
This property lets you retrieve the number of columns of the table.
Data Type Explanation
Position
Read Only Property of VcTable
This property lets you enquire whether the table is displayed left or right of
the diagram.
Data Type Explanation
Possible Values:
vcLeftTable 0 Table on the left of the diagram
vcRightTable 1 Table on the right of the diagram
Example Code
Dim table As VcTable
TableFormatCollection
Read Only Property of VcTable
This property gives access to the table format collection that contains all table
formats available to the table.
Data Type Explanation
Example Code
Dim table As VcTable
Dim formatCltn As VcTableFormatCollection
UpdateBehaviorName
Property of VcTable
This property lets you set or retrieve the name of the UpdateBehavior.
Data Type Explanation
Visible
Property of VcTable
This property lets you set or retrieve whether the table is visible or not.
Data Type Explanation
Example Code
Private Sub chkBoxTable_Click()
End Sub
Methods
IdentifyFormatField
Method of VcTable
This method lets you retrieve the index of the format field at the specified
position. If there is a field at the position specified, True will be returned, if
there isn't, the method will deliver False.
Data Type Explanation
Parameter:
x Long X coordinate of the position
Return value Boolean A format field exists/does not exist at the position
specified
OptimizeColumnWidth
Method of VcTable
This method lets you calculate the optimized width of a column. It depends
on the length of the longest text in the column. The setting ColumnNo = 0
optimizes all columns.
Data Type Explanation
Parameter:
columnNo Integer Column number
7.75 VcTableCollection
Properties
• _NewEnum
• Active
• Count
Methods
• FirstTable
• NextTable
• TableByIndex
• TableByName
Properties
_NewEnum
Read Only Property of VcTableCollection
Example Code
Dim table As VcTable
Active
Property of VcTableCollection
This property lets you set or retrieve the table currently displayed in the
diagram.
Data Type Explanation
Example Code
Dim tableCltn As VcTableCollection
Dim activeTable As VcTable
Count
Read Only Property of VcTableCollection
This property lets you retrieve the number of tables in the table collection.
Data Type Explanation
Example Code
Dim tableCltn As VcTableCollection
Dim numberTables As Integer
Methods
FirstTable
Method of VcTableCollection
This method can be used to access the initial value, i.e. the first table of a
table collection, and to continue in a forward iteration loop by the method
NextTable for the tables following. If there is no table in the table collection,
a none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim tableCltn As VcTableCollection
Dim table As VcTable
NextTable
Method of VcTableCollection
Example Code
Dim tableCltn As VcTableCollection
Dim table As VcTable
Dim stringTable As String
TableByIndex
Method of VcTableCollection
This method lets you access a table by its index. If a table of the specified
index does not exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
index Integer Index of the table
TableByName
Method of VcTableCollection
This method retrieves a table object by its name. If a table of the specified
name does not exist, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Parameter:
tableName String Name of the data table
Example Code
Dim tableCltn As VcTableCollection
Dim table As VcTable
7.76 VcTableFormat
An object of the type VcTableFormat defines the content and the appearance
of a table row. A table row contains either the activity data or the group
headings. In a table format, you can specify the data field contained in a table
field. Each table field is specified by its column. Furthermore, you can
specify a font (name, size, body, color), a background color, an horizontal
alignment and margins individually for each field.
Available table formats:
StandardList (for activities that are not summarized)
ListFormat2 (alternative of StandardList, can be assigned by filters)
ListFormat3 (alternative of StandardList, can be assigned by filters)
Subtitle (for group headings when group is expanded)
Subtitle_n (for multi-level grouping for group headings when group is
expanded)
Collapsed (for group headings when group is collapsed)
Collapsed_n (for multi-level grouping for group headings when group is
collapsed)
Hierarchy (für summarized activities in a hierarchy)
HierarchyCollapsed (for collapsed summarized activities in a hierarchy)
Properties
• _NewEnum
• CollapseColumn
• FieldsSeparatedByLines
• FilterName
• FormatField
• FormatFieldCount
• IndentColumn
• IndentWidth
• Name
• SeparationLineColor
• ThreeDEffect
Properties
_NewEnum
Read Only Property of VcTableFormat
Example Code
Dim formatField As VcTableFormatField
CollapseColumn
Property of VcTableFormat
This property lets you specify whether in a column which contains more than
one line + or - for collapsing or showing the lines shall be displayed.
Data Type Explanation
Example Code
' Display of +/- in the fifth column
VcGantt1.Table.TableFormatCollection.FormatByName("Hierarchy").CollapseColumn =
5
VcGantt1.Table.TableFormatCollection.FormatByName("HierarchyCollapsed").Collapse
Column = 5
FieldsSeparatedByLines
Property of VcTableFormat
This property lets you set or retrieve whether the table fields are to be
separated by lines.
Data Type Explanation
Property value Boolean Table fields are separated by lines (True)/ are not
separated by lines (False).
Example Code
Dim format As VcTableFormat
FilterName
Property of VcTableFormat
This property lets you specify the name of the filter that defines what
activities the table format is to apply to.
Data Type Explanation
Example Code
Dim format As VcTableFormat
FormatField
Read Only Property of VcTableFormat
Note to users of versions previous to 3.0: The index does not count in the
range from 1 to FormatFieldCount as in the versions up to 3.0.
Data Type Explanation
Parameter:
index Integer Index of the table format field
0 ... .FormatFieldCount-1
FormatFieldCount
Read Only Property of VcTableFormat
This property lets you retrieve the number of table columns of this table
format.
Data Type Explanation
Example Code
Dim format As VcTableFormat
Dim numberOfColumns As Integer
IndentColumn
Property of VcTableFormat
This property lets you specify the number of the column which shall be
indented.
Data Type Explanation
Example Code
' Second column is indented
VcGantt1.Table.TableFormatCollection.FormatByName("StandardList").IndentColumn
= 2
IndentWidth
Property of VcTableFormat
This property lets you set or retrieve the indentation (in mm) of the text lines
in a table column
Data Type Explanation
Example Code
' Second column is indented by 100 mm
VcGantt1.Table.TableFormatCollection.FormatByName("StandardList").IndentColumn
= 2
VcGantt1.Table.TableFormatCollection.FormatByName("StandardList").IndentWidth =
100
Name
Property of VcTableFormat
This property lets you set or retrieve the name of the table format.
Data Type Explanation
Example Code
Dim format As VcTableFormat
Dim formatName As String
SeparationLineColor
Property of VcTableFormat
This property lets you set or retrieve the color of the separation lines of the
table fields. The default color is white.
Data Type Explanation
({0...255},{0...255},{0...255})
Default value: RGB(0,0,0)
Example Code
VcTableFormat.SeparationLineColor = RGB(255, 204, 204)
ThreeDEffect
Property of VcTableFormat
This property lets you set or retrieve whether this table format will be
highlighted by a 3D effect.
Example Code
Dim format As VcTableFormat
7.77 VcTableFormatCollection
Properties
• _NewEnum
• Count
Methods
• FirstFormat
• FormatByIndex
• FormatByName
• NextFormat
Properties
_NewEnum
Read Only Property of VcTableFormatCollection
Example Code
Dim format As VcTableFormat
Count
Read Only Property of VcTableFormatCollection
This property lets you retrieve the number of table formats in the table format
collection.
Data Type Explanation
Example Code
Dim formatCltn As VcTableFormatCollection
Dim numberOfFormats As Long
Methods
FirstFormat
Method of VcTableFormatCollection
This method can be used to access the initial value, i.e. the first table format
of a table format collection and then to continue in a forward iteration loop
by the method NextFormat for the table formats following. If there is no
table format in the table format collection, a none object will be returned
(Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim format As VcTableFormat
FormatByIndex
Method of VcTableFormatCollection
This method lets you access a table format by its index. If a table format of
the specified index does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the table format
FormatByName
Method of VcTableFormatCollection
By this method you can retrieve a table format by its name. If a table format
of the specified name does not exist, a none object will be returned (Nothing
in Visual Basic).
Data Type Explanation
Parameter:
formatName String Name of the table format
Example Code
Dim format As VcTableFormat
NextFormat
Method of VcTableFormatCollection
Example Code
Dim formatCltn As VcTableFormatCollection
Dim format As VcTableFormat
7.78 VcTableFormatField
Properties
• Alignment
• BottomMargin
• CombiField
• ConstantText
• FormatName
• GraphicsFileName
• GraphicsFileNameDataFieldIndex
• GraphicsFileNameMapName
• GraphicsHeight
• Index
• LeftMargin
• MaximumTextLineCount
• MinimumTextLineCount
• MultiState
• PatternBackgroundColorAsARGB
• PatternBackgroundColorDataFieldIndex
• PatternBackgroundColorMapName
• PatternColorAsARGB
• PatternColorDataFieldIndex
• PatternColorMapName
• PatternEx
• PatternExDataFieldIndex
• PatternExMapName
• RightMargin
• TextDataFieldIndex
• TextFont
• TextFontColor
• TextFontColorDataFieldIndex
• TextFontColorMapName
• TextFontDataFieldIndex
• TextFontMapName
• TopMargin
• Type
Properties
Alignment
Property of VcTableFormatField
This property lets you set or retrieve the alignment of the content of the table
format field.
Data Type Explanation
Possible Values:
vcFFABottom 28 bottom
vcFFABottomLeft 27 bottom left
vcFFABottomRight 29 bottom right
vcFFACenter 25 center
vcFFALeft 24 left
vcFFARight 26 right
vcFFATop 22 top
vcFFATopLeft 21 top left
vcFFATopRight 23 top right
BottomMargin
Property of VcTableFormatField
This property lets you set or retrieve the width (in mm) of the bottom margin
of the table format field. It can also be set in the Edit Table Format dialog
box.
Property value Integer Width of the bottom margin of the table format field
0...9
CombiField
Property of VcTableFormatField
This property lets you set or retrieve whether the table field is a combi field.
(See also Edit Table Format dialog.)
Data Type Explanation
ConstantText
Property of VcTableFormatField
This property allows the table format field to display a constant text, if the
table format field is of the type vcFFTText and if the property TextDat-
FieldIndex was set to -1.
Data Type Explanation
FormatName
Read Only Property of VcTableFormatField
This property lets you retrieve the name of the table format to which this
table format field belongs.
Data Type Explanation
GraphicsFileName
Property of VcTableFormatField
only for the type vcFFTGraphics: This property lets you set or retrieve the
name of a graphics file the content of which is displayed in the table format
field. The graphics file name has to be valid. Available formats:
EMF, EMF+, VMF and WMF are vector formats that allow to store a file
independent of pixel resolution. All other formats are pixel-oriented and
confined to a limited resolution.
The VMF format basically has been deprecated, but it will still be supported
for some time to maintain compatibility with existing applications.
Data Type Explanation
GraphicsFileNameDataFieldIndex
Property of VcTableFormatField
only for the type vcFFTGraphics: This property lets you set or retrieve the
data field index that is specified in the property
GraphicsFileNameMapName. If the property has the value -1, in the table
format field the graphics that is specified for the corresponding table format
will be displayed. If a valid data field index is specified, but no map is
specified, the graphics file name will be read from the specified data field.
Data Type Explanation
GraphicsFileNameMapName
Property of VcTableFormatField
only for the type vcFFTGraphics: This property lets you set or retrieve the
name of a map of the type vcGraphicsFileMap or "". If a name and
additionally a data field index is specified in the property GraphicsFile-
NameDataFieldIndex, a graphics of the map will be displayed. If no data
field entry applies, the graphics specified in the property GraphicsFileName
will be displayed.
Data Type Explanation
GraphicsHeight
Property of VcTableFormatField
This property lets you set or retrieve the height of a graphics of the type
vcFFTGraphics in the table format field.
Data Type Explanation
0 ... 99
Index
Read Only Property of VcTableFormatField
This property lets you enquire the index of the table format field in the
corresponding table format.
LeftMargin
Property of VcTableFormatField
This property lets you set or retrieve the width (in mm) of the left margin of
the table format field. It can also be set in the Edit Table Format dialog box.
Data Type Explanation
Property value Integer Width of the left margin of the table format field
0…9
MaximumTextLineCount
Property of VcTableFormatField
This property lets you set or retrieve the maximum number of lines in the
table format field, if the table format field is of the type vcFFTText. Also see
the property MinimumTextLineCount.
Data Type Explanation
MinimumTextLineCount
Property of VcTableFormatField
This property lets you set or retrieve the minimum number of lines in the
table format field, if it is of the type vcFFTText. If there is more text than
can be taken by the lines, the format field will be enlarged dynamically up to
the maximum number of lines. When assigning a value by this property,
please also remember to set the MaximumTextLineCount value anew, since
otherwise the minimum value might overwrite the maximum value.
Data Type Explanation
MultiState
Property of VcTableFormatField
This property lets you set or retrieve, whether the table format field is a
multi-state field. Multi-state fields are used for example to trigger a rotating
sequence of different states and of the associated data fields when clicked.
Data Type Explanation
PatternBackgroundColorAsARGB
Property of VcTableFormatField
This property lets you set or retrieve the background color of the table format
field. Color values have a transparency or alpha value, followed by a value
for a red, a blue and a green partition (ARGB). The values range between
0..255. An alpha value of 0 equals complete transparency, whereas 255
represents a completely solid color. When casting an RGB value on an
ARGB value, an alpha value of 255 has to be added.
If the table format field shall have the color of the table format, select the
value -1.
PatternBackgroundColorDataFieldIndex
Property of VcTableFormatField
This property lets you set or retrieve the data field index to be used with a
color map specified by the property PatternBackgroundColorMapName. If
you set this property to -1, no map will be used.
PatternBackgroundColorMapName
Property of VcTableFormatField
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. If a map name and
additionally a data field index is specified in the property
PatternBackgroundColorDataFieldIndex, then the background color is
controlled by the map. If no data field entry applies, the background color
that is specified in the property BackColor will be used.
Data Type Explanation
PatternColorAsARGB
Property of VcTableFormatField
This property lets you set or retrieve the pattern color of the table format
field. Color values have a transparency or alpha value, followed by a value
for a red, a blue and a green partition (ARGB). The values range between
0..255. An alpha value of 0 equals complete transparency, whereas 255
represents a completely solid color. When casting an RGB value on an
ARGB value, an alpha value of 255 has to be added.
If the table format field shall have the background color of the table format,
select the value -1.
Data Type Explanation
Example Code
Dim tableFormatCltn As VcTableFormatCollection
Dim tableFormatField As VcTableFormatField
PatternColorDataFieldIndex
Read Only Property of VcTableFormatField
This property lets you set or retrieve the data field index that has to be
specified if the property PatternColorMapName is used. If you set this
property to -1, no map will be used.
Data Type Explanation
PatternColorMapName
Read Only Property of VcTableFormatField
This property lets you set or retrieve the name of a color map (type
vcColorMap). If set to "", no map will be used. Only if a map name and a
data field index are specified in the property PatternColorDataFieldIndex,
the pattern color is controlled by the map. If no data field entry applies, the
pattern color of the calendar grid that is specified in the property
PatternColor will be used.
Data Type Explanation
PatternEx
Read Only Property of VcTableFormatField
This property lets you set or retrieve the pattern of the field background of
the table format field.
Data Type Explanation
Possible Values:
vc05PercentPattern... Dots in foreground color on background
vc90PercentPattern 01 - 11 color, the density of the foreground
pattern increasing with the percentage
PatternExDataFieldIndex
Property of VcTableFormatField
This property lets you set or retrieve the data field index to be used together
with the property PatternExMapName. If you set this property to -1, no
map will be used.
PatternExMapName
Property of VcTableFormatField
This property lets you set or retrieve the name of a font map (type
vcPatternMap). If set to "", no map will be used. If a map name and
additionally a data field index is specified in the property
PatternExDataFieldIndex, then the pattern is controlled by the map. If no
data field entry applies, the pattern that is specified in the property
PatternEx will be used.
Data Type Explanation
RightMargin
Property of VcTableFormatField
This property lets you set or retrieve the width (in mm) of the right margin of
the table format field. It can also be set in the Edit Table Format dialog box.
Data Type Explanation
Property value Integer Width of the right margin of the table format field
0...9
TextDataFieldIndex
Property of VcTableFormatField
only for the type vcFFTText: This property lets you set or retrieve the index
of the data field the content of which is to be displayed in the table format
field. If its value equals -1, the content of the property ConstantText will be
returned.
Data Type Explanation
TextFont
Property of VcTableFormatField
This property lets you set or retrieve the font color of the table format field, if
it is of the type vcFFTText. If a map was set by the property TextFontMap-
Name, the map will control the text font in dependence of the data.
Data Type Explanation
TextFontColor
Property of VcTableFormatField
This property lets you set or retrieve the font color of the table format field, if
it is of the type vcFFTText. If a map was set by the property TextFontMap-
Name, the map will control the text font color in dependence of the data.
Data Type Explanation
TextFontColorDataFieldIndex
Property of VcTableFormatField
This property lets you set or retrieve the data field index to be used with a
font color map specified by the property TextFontColorMapName. If you
set this property to -1, no map will be used.
Data Type Explanation
TextFontColorMapName
Property of VcTableFormatField
This property lets you set or retrieve the name of a color map (type
vcColorMap) for the font color, if the format field is of the type vcFFTText.
If the name of the color map is set to "", no map will be used. If a map name
TextFontDataFieldIndex
Property of VcTableFormatField
This property lets you set or retrieve the data field index required by the
property TextFontMapName for a font map. If you set this property to -1,
no map will be used.
Data Type Explanation
TextFontMapName
Property of VcTableFormatField
This property lets you set or retrieve the name of a font map (type
vcFontMap). If set to "", no map will be used. If a map name and additionally
a data field index is specified in the property TextFontDataFieldIndex, then
the font is controlled by the map. If no data field entry applies, the font that is
specified in the property TextFont will be used.
Data Type Explanation
TopMargin
Property of VcTableFormatField
This property lets you set or retrieve the width (in mm) of the top margin of
the table format field. It can also be set in the Edit Table Format dialog
box.
Property value Integer Width of the top margin of the table format field
0...9
Type
Property of VcTableFormatField
This property lets you enquire the type of the table format field.
Data Type Explanation
Possible Values:
vcFFTGraphics 64 graphics
vcFFTText 36 text
7.79 VcTimeScale
The VcTimeScale object represents the time scale at the top of the node area
in the diagram. From several time scales that display different units, such as
hours or weeks, you can select the time scale that meets your demands. The
color and several font attributes can be set as you like. In the settings of the
time scale the (vertical) grid lines and possibly the emphasizing of weekends
also can be activated.
Properties
• BackgroundColor
• Font
• FontColor
• Name
• Ribbon
• Section
• ShowCalendarGrids
• ShowDateGrids
• ThreeDEffect
• UpdateBehaviorName
Properties
BackgroundColor
Property of VcTimeScale
This property lets you set or retrieve the background color of the time scale.
Data Type Explanation
Example Code
Dim timeScale As VcTimeScale
Font
Property of VcTimeScale
This property lets you set or retrieve all font attributes of the time scale.
Data Type Explanation
Example Code
Dim font As StdFont
font = VcGantt1.TimeScaleCollection.Active.Font
FontColor
Property of VcTimeScale
This property lets you set or retrieve the font color of the time scale.
Data Type Explanation
Example Code
Dim timeScale As VcTimeScale
Name
Property of VcTimeScale
This property lets you set or retrieve the name of the time scale.
Data Type Explanation
Example Code
Dim timeScale As VcTimeScale
Ribbon
Read Only Property of VcTimeScale
Parameter:
sectionIndex Integer Index of the time scale section
Example Code
Dim timeScale As VcTimeScale
Dim ribbon As VcRibbon
Section
Read Only Property of VcTimeScale
Parameter:
sectionIndex Integer Index of the section
Example Code
Dim timeScale As VcTimeScale
Dim section As VcSection
ShowCalendarGrids
Property of VcTimeScale
This property lets you set or retrieve whether workfree periods are marked by
gray shadings. This property also can be set in the Specify Time Scale
dialog.
Example Code
Private Sub chkBoxCalGrids_Click()
End Sub
ShowDateGrids
Property of VcTimeScale
This property lets you set or retrieve whether a vertical date grid is displayed.
This property also can be set in the Specify Time Scale dialog.
Data Type Explanation
Example Code
Private Sub chkBoxDateGrid_Click()
End Sub
ThreeDEffect
Property of VcTimeScale
This property lets you set or retrieve whether the time scale should have or
has a three-dimensional appearance. This property also can be set in the
Specify Time Scale dialog.
Example Code
Dim timescale As VcTimeScale
UpdateBehaviorName
Property of VcTimeScale
This property lets you set or retrieve the name of the UpdateBehavior.
Data Type Explanation
7.80 VcTimeScaleCollection
Properties
• _NewEnum
• Active
• Count
Methods
• FirstTimeScale
• NextTimeScale
• TimeScaleByIndex
• TimeScaleByName
Properties
_NewEnum
Read Only Property of VcTimeScaleCollection
Example Code
Dim timescale As VcTimeScale
Active
Property of VcTimeScaleCollection
This method lets you set or retrieve the time scale currently displayed in the
diagram.
Data Type Explanation
Example Code
Dim timeScaleCltn As VcTimeScaleCollection
Dim timeScale As VcTimeScale
Count
Read Only Property of VcTimeScaleCollection
This property lets you retrieve the number of time scales in the
TimeScaleCollection object.
Data Type Explanation
Example Code
Dim numberOfTimeScales As Long
numberOfTimeScales = VcGantt1.TimeScaleCollection.Count
Methods
FirstTimeScale
Method of VcTimeScaleCollection
This method can be used to access the initial value, i.e. the first time scale of
a time scale collection, and then to continue in a forward iteration loop by the
method NextTimeScale for the scales following. If there is no scale in the
time scale collection, a none object will be returned (Nothing in Visual
Basic).
Data Type Explanation
Example Code
Dim timeScaleCltn As VcTimeScaleCollection
Dim timeScale As VcTimeScale
NextTimeScale
Method of VcTimeScaleCollection
Example Code
Dim timeScaleCltn As VcTimeScaleCollection
Dim timeScale As VcTimeScale
TimeScaleByIndex
Method of VcTimeScaleCollection
This method lets you access a time scale by its index. If a time scale of the
specified index does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the time scale
TimeScaleByName
Method of VcTimeScaleCollection
By this method you can retrieve a time scale by its name. If a time scale of
the specified name does not exist, a none object will be returned (Nothing in
Visual Basic).
Data Type Explanation
Parameter:
timeScaleName String Name of the time scale
Example Code
Dim timeScaleCltn As VcTimeScaleCollection
timeScaleCltn.Active = timeScaleCltn.TimeScaleByName("Days")
7.81 VcUpdateBehavior
Properties
• IsEditable
• Name
• Specification
Methods
• Context
• PutInOrderAfter
Properties
IsEditable
Property of VcUpdateBehavior
This property lets you set or retrieve whether the update behavior should be
editable at run time.
Data Type Explanation
Example Code
Dim updBeh As VcUpdateBehavior
Name
Property of VcUpdateBehavior
This property lets you set or retrieve the name of an update behavior
Data Type Explanation
Example Code
Dim updBehCltn As VcUpdateBehaviorCollection
Dim updBeh As VcUpdateBehavior
Specification
Property of VcUpdateBehavior
Example Code
Dim updateBehaviorCltn As VcUpdateBehaviorCollection
Dim updateBehavior As VcUpdateBehavior
updateBehaviorCltn = VcGantt1.UpdateBehaviorCollection
updateBehavior = updateBehaviorCltn.FirstUpdateBehavior
MsgBox(updateBehavior.Specification)
Methods
Context
Method of VcUpdateBehavior
This method lets you retrieve the context settings of the update behavior.
Data Type Explanation
PutInOrderAfter
Method of VcUpdateBehavior
This method lets you set the update behavior behind an update behavior
specified by name, within the UpdateBehaviorCollection. If you set the name
to "", the update behavior will be put in the first position. The order of the
update behaviors within the collection determines the order by which they
apply to the objects that they were assigned to.
Data Type Explanation
Parameter:
refUpdateBehaviorName String Name of the update behavior behind which the
current update behavior is to be put.
Example Code
Dim updBehCltn As VcUpdateBehaviorCollection
Dim updBeh1 As VcUpdateBehavior
Dim updBeh2 As VcUpdateBehavior
updBehCltn = VcGantt1.UpdateBehaviorCollection()
updBeh1 = updBehCltn.Add("updBeh1")
updBeh2 = updBehCltn.Add("updBeh2")
updBeh1.PutInOrderAfter("updBeh2")
updBehCltn.Update()
7.82 VcUpdateBehaviorCollection
Properties
• _NewEnum
• Active
• Count
Methods
• Add
• AddBySpecification
• Copy
• FirstUpdateBehavior
• NextUpdateBehavior
• Remove
• UpdateBehaviorByIndex
• UpdateBehaviorByName
Properties
_NewEnum
Read Only Property of VcUpdateBehaviorCollection
Example Code
Dim updBeh As VcUpdateBehavior
Active
Property of VcUpdateBehaviorCollection
This property lets you set or retrieve the update behavior that currently is in
effect.
Data Type Explanation
Example Code
Dim updBehCltn As VcUpdateBehaviorCollection
Dim updBeh As VcUpdateBehavior
Count
Read Only Property of VcUpdateBehaviorCollection
This property lets you retrieve the number of update behaviors in the
collection.
Data Type Explanation
Example Code
Dim updBeh As VcUdateBehvior
Dim updBehCltn As VcUpdateBehaviorCollection
Dim numberOfUpdateBehaviors As Long
Set updBeh =
VcGantt1.UpdateBehviorCollection.UpdateBehviorByName("UPDBEHAVIOR_1")
Set updBehCltn = updBeh.UpdateBehaviorCollection
numberOfUpdateBehaviors = updBehCltn.Count
Methods
Add
Method of VcUpdateBehaviorCollection
Parameter:
updateBehaviorName String Update behavior name
Example Code
Set newUpdateBehavior = VcGantt1.UpdateBehaviorCollection.Add("test1")
AddBySpecification
Method of VcUpdateBehaviorCollection
This method lets you create an update behavior by using a specification. This
way of creating allows update behavior objects to become persistent. The
specification of an update behavior can be saved and re-loaded (see
VcUpdateBehavior property Specification). In a subsequent session the
update behavior can be created again from the specification and is identified
by ist name.
Data Type Explanation
Parameter:
Specification String Update behavior specification
Example Code
Dim updBehCltn As VcUpdateBehaviorCollection
updBehCltn = VcGantt1.UpdateBehaviorCollection
updBehCltn.AddBySpecification(textSpecification)
Copy
Method of VcUpdateBehaviorCollection
By this method you can copy an update behavior. If the update behavior that
is to be copied exists, and if the name for the new update behavior does not
yet exist, the new update behavior object will be returned. Otherwise
"Nothing" (in Visual Basic) or "0" (other languages) will be returned.
Data Type Explanation
Parameter:
updateBehaviorName String Name of the update behavior to be copied
Example Code
Dim updBeh As VcUpdateBehavior
Dim updBehCltn As VcUpdateBehaviorCollection
Dim updBeh As VcUpdateBehavior
FirstUpdateBehavior
Method of VcUpdateBehaviorCollection
This method can be used to access the initial value, i.e. the first update
behavior of a update behavior collection and then to continue in a forward
iteration loop by the method NextUpdateBehavior for the update behaviors
following. If there is no update behavior in the update behavior collection, a
none object will be returned (Nothing in Visual Basic).
Data Type Explanation
Example Code
Dim updBeh As VcUpdateBehavior
NextUpdateBehavior
Method of VcUpdateBehaviorCollection
Example Code
Dim updBehCltn As VcUpdateBehaviorCollection
Dim updBeh As VcUpdateBehavior
Remove
Method of VcUpdateBehaviorCollection
This method lets you delete an update behavior. If the update behavior is
used in another object, it cannot be deleted. In that case, False will be
returned, otherwise True.
Data Type Explanation
Parameter:
updateBehaviorName String Update behavior name
Example Code
Dim histogram As VcHistogram
Dim updBehCltn As VcUpdateBehaviorCollection
UpdateBehaviorByIndex
Method of VcUpdateBehaviorCollection
This method lets you access a update behavior by its index. If an update
behavior of the specified index does not exist, a none object will be returned
(Nothing in Visual Basic).
Data Type Explanation
Parameter:
index Integer Index of the update behavior
Example Code
Dim updBehCltn As VcUpdateBehaviorCollection
Dim updBeh As VcUpdateBehavior
UpdateBehaviorByName
Method of VcUpdateBehaviorCollection
By this method you can retrieve a update behavior by its name. If an update
behavior of the specified name does not exist, a none object will be returned
(Nothing in Visual Basic).
Data Type Explanation
Parameter:
updateBehaviorName String Name of the update behavior
Example Code
Dim updBehCltn As VcUpdateBehaviorCollection
Dim updBeh As VcUpdateBehavior
7.83 VcUpdateBehaviorContext
Properties
• DelayTime
• IsEditable
• Type
• UpdateMode
Properties
DelayTime
Property of VcUpdateBehaviorContext
This property lets you set the delay time after which the modified objects of
the live update visually are to appear while the mouse cursor is moving.
Setting this property makes sense only if the property UpdateMode was set
to OnPauseWhileMouseMoving.
Data Type Explanation
Example Code
Dim updBehCtx As VcUpdateBehaviorContext
Dim delTim As Integer
delTim = VcGantt1.updBehCtx.DelayTime
IsEditable
Property of VcUpdateBehaviorContext
This property lets you set or retrieve whether the context of the update
behavior should be editable at run time.
Data Type Explanation
Example Code
Dim updBehCtx As VcUpdateBehaviorContext
updBehCtx.Editable = False
Type
Read Only Property of VcUpdateBehaviorContext
This property lets you retrieve defined areas (context types) that are affected
by the live update and to which the properties Editable, UpdateMode und
DelayTime can be applied.
Data Type Explanation
Possible Values:
vcHistogramsLayerSourceCurvesCalculations 1101Curve calculation from layer
data in histograms
vcLinksChangeSuccessorNode 402 Links change their successor
node
vcNodeLevelLayoutsChangeNodesSortingOrder 201 Node level layouts change the
sorting order of nodes
vcNodesAutoScheduling 105 Nodes are automatically
scheduled
vcNodesChangeDatesDuration 101 Nodes change their dates or
their duration
vcNodesFiltering 102 Nodes are filtered
vcNodesGrouping 104 Nodes are grouped
vcNumericScalesChangeUnitWidth 1201 Numeric scales change unit
width
vcSashesChangePosition 1501 Sashes change position
vcTablesChangeColumnWidth 901 Tables change column width
vcTimeScalesChangeSectionStartDate 1002 Time scales change the start
date of a section
vcTimeScalesChangeUnitWidth 1001 Time scales change unit width
UpdateMode
Property of VcUpdateBehaviorContext
In a self-created update behavior this property lets you set or retrieve a cursor
action on which the live update is to take place. If this property was set to
OnPauseWhileMouseMoving, you can set the desired delay time
Possible Values:
vcOnMouseMove 1 The update is displayed when the mouse
cursor moves
vcOnMouseUp 0 The update is displayed when the left mouse
button is released
vcOnPauseWhileMouseMoving 2 The update is displayed when a pause occurs
during the movements of the mouse cursor
7.84 VcWorldView
Properties
• Border
• Height
• HeightActualValue
• Left
• LeftActualValue
• MarkingColor
• Mode
• ParentHWnd
• ScrollBarMode
• Top
• TopActualValue
• UpdateBehaviorName
• Visible
• Width
• WidthActualValue
Properties
Border
Property of VcWorldView
This property lets you set or retrieve whether the world view should have a
frame (not valid for vcPopupWindow mode). The color of the frame is
Color.Black. This property also can be set on the Additional Views property
page.
Property value Boolean World view with a border line (True)/without border
line (False)
Default value: True
Example Code
VcGantt1.WorldView.Mode = vcNotFixed
VcGantt1.WorldView.Border = True
Height
Property of VcWorldView
This property lets you retrieve the vertical extent of the world view. In the
modes vcFixedAtTop, vcFixedAtBottom, vcNotFixed and
vcPopupWindow of the property Mode it can also be set.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
This property also can be set on the Additional Views property page.
Data Type Explanation
{0, ...}
Default value: 100
Example Code
VcGantt1.WorldView.Height = 100
HeightActualValue
Read Only Property of VcWorldView
This property lets you retrieve the vertical extension of the world view which
actually is displayed. In the modes b!vcLVFixedAtBottom,
vcLVFixedAtLeft, vcLVFixedAtRight, vcLVFixedAtTop the actual value
may differ from the one that was set because in these modes either the height
or the width is preset.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/in Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
{0, ...}
Default value: 100
Example Code
VcGantt1.LegendView.Height = 300
Left
Property of VcWorldView
This property lets you retrieve the left position of the Additional Views. In
the modes vcNotFixed and vcPopupWindow of the property Mode it can
also be set.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
This property also can be set on the Additional Views property page.
Data Type Explanation
Example Code
VcGantt1.WorldView.Left = 200
LeftActualValue
Read Only Property of VcWorldView
This property lets you retrieve the left position of the world view which
actually ist displayed. In the modes b!vcLVFixedAtBottom,
vcLVFixedAtLeft, vcLVFixedAtRight, vcLVFixedAtTop the actual value
may differ from the one that was set because in these modes either the height
or the width is preset.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
Example Code
VcGantt1.LegendView.LeftActualValue = 150
MarkingColor
Property of VcWorldView
This property lets you enquire/set the line color of the rectangle that indicates
in the Additional Views the currently selected section. This property also can
be set on the Additional Views property page.
Data Type Explanation
Example Code
VcGantt1.WorldView.MarkingColor = RGB(255, 0, 0)
Mode
Property of VcWorldView
This property lets you enquire/set the Additional Views mode. This property
also can be set on the Additional Views property page.
Data Type Explanation
Possible Values:
vcFixedAtBottom 4 The world view is displayed on the bottom of the
control window. The reference system of the
coordinates is the control. With this value set, the
height can be specified, whereas the position and
the width are fixed.
vcFixedAtLeft 1 The world view is displayed on the left side of the
control window. The reference system of the
coordinates is the control. With this value set, the
width can be specified, whereas the position and the
height are fixed.
vcFixedAtRight 2 The world view is displayed on the right side of the
control window. The reference system of the
coordinates is the control. With this value set, the
width can be specified, whereas the position and the
height are fixed.
Example Code
VcGantt1.WorldView.Mode = vcFixedAtBottom
ParentHWnd
Property of VcWorldView
In the vcNotFixed mode, this property lets you set the HWnd handle of the
parent window, for example, if the world view is to appear in a frame
window implemented by your own. By default, the frame window is
positioned on the HWnd handle of the parent window of the VARCHART
ActiveX main window. This property can be used only at run time.
Data Type Explanation
Example Code
MsgBox (VcGantt1.worldview.ParentHWnd)
ScrollBarMode
Property of VcWorldView
This property lets you set or retrieve the scroll bar mode of the world view.
This property also can be set on the Additional Views property page.
Data Type Explanation
Possible Values:
Example Code
VcGantt1.WorldView.ScrollBarMode = vcAutomaticScrollBar
Top
Property of VcWorldView
This property lets you retrieve the top position of the world view. n the
modes vcNotFixed und vcPopupWindow of the property Mode it also can
be set.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
This property also can be set on the Additional Views property page.
Data Type Explanation
Example Code
VcGantt1.WorldView.Top = 20
TopActualValue
Read Only Property of VcWorldView
This property lets you enquire the top position of the world view which
actually is displayed. In the modes b!vcLVFixedAtBottom,
vcLVFixedAtLeft, vcLVFixedAtRight, vcLVFixedAtTop the actual value
may differ from the one that was set because in these modes either the height
or the width is preset.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
Example Code
VcGantt1.LegendView.TopActualValue = 40
UpdateBehaviorName
Property of VcWorldView
This property lets you set or retrieve the name of the UpdateBehavior.
Data Type Explanation
Visible
Property of VcWorldView
This property lets you enquire/set whether the worldview is visible or not.
This property also can be set on the Additional Views property page.
Data Type Explanation
Example Code
VcGantt1.WorldView.Visible = True
Width
Property of VcWorldView
This property lets you retrieve the horizontal extent of the world view. In the
modes vcFixedAtLeft, vcFixedAtRight, vcNotFixed and vcPopupWindow
of the property Mode it also can be set.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
This property also can be set on the Additional Views property page.
{0, ...}
Default value: 100
Example Code
VcGantt1.WorldView.Width = 200
WidthActualValue
Read Only Property of VcWorldView
This property lets you retrieve the horizontal extent of the legend view which
actually is displayed. In the modes b!vcLVFixedAtBottom,
vcLVFixedAtLeft, vcLVFixedAtRight, vcLVFixedAtTop the actual value
may differ from the one that was set because in these modes either the height
or width is preset.
Please note that the pixel coordinates are system coordinates, i. e. in Visual
Basic you have to perform a conversion from/to Twips by the properties
App.TwipsPerPixelX and App.TwipsPerPixelY.
Data Type Explanation
{0, ...}
Default value: 100
Example Code
VcGantt1.LegendView.WidthActualValue = 600
8 Index
VcNumericScaleCollection 1110
_ VcTableCollection 1231
_NewEnum VcTableFormat 1236
Property of VcTableFormatCollection 1241
DataObjectFiles 416 VcTimeScaleCollection 1266
VcBoxCollection 441 VcUpdateBehaviorCollection 1273
VcBoxFormat 447
VcBoxFormatCollection 452 A
VcCalendarCollection 476 About box 722
VcCalendarGridCollection 498 AboutBox
VcCalendarProfileCollection 508 Method of
VcCurveCollection 543 VcGantt 721
VcDataDefinitionTable 550, 555 AbsoluteBottomMarginInCM
VcDataRecordCollection 565 Property of
VcDataTableCollection 574 VcPrinter 1115
VcDataTableFieldCollection 585 AbsoluteBottomMarginInInches
VcDateLineCollection 600 Property of
VcDateLineGridCollection 617 VcPrinter 1116
VcFilter 629 AbsoluteLeftMarginInCM
VcFilterCollection 635 Property of
VcGroupCollection 870 VcPrinter 1116
VcGroupLevelLayoutCollection AbsoluteLeftMarginInInches
895
Property of
VcHistogramCollection 915
VcPrinter 1116
VcIntervalCollection 945
AbsoluteRightMarginInCM
VcLayerCollection 979
Property of
VcLayerFormat 984
VcPrinter 1117
VcLineFormat 1004
AbsoluteRightMarginInInches
VcLineFormatCollection 1008
Property of
VcLinkAppearanceCollection 1041
VcPrinter 1117
VcLinkCollection 1047
AbsoluteTopMarginInCM
VcMap 1050
Property of
VcMapCollection 1056
VcPrinter 1118
VcNodeCollection 1083
AbsoluteTopMarginInInches
Property of Property of
VcCurve 514 VcGantt 655
Additional text 369 AllowNewNodes
AddSubCondition Property of
Method of VcGantt 656
VcFilter 632 AllowNumericScaleRescale
AdjustToReferenceDate Property of
Property of VcGantt 656
VcDateLineGrid 607 AllowTableColumnWidthOptimization
Administrate calendar profiles Property of
dialog 297 VcGantt 656
Alignment AllowTimescaleRescale
Property of Property of
VcBorderBox 420 VcGantt 657
VcBoxFormatField 458 AllowVerticalGroupMovementViaDiag
ram
VcLayerFormatField 988
Property of
VcLineFormatField 1015
VcGroupLevelLayout 876
VcPrinter 1118
AllowVerticalGroupMovementViaTabl
VcTableFormatField 1246
e
AllBorderBoxesShownOnCombinedC
Property of
ontrols
VcGroupLevelLayout 876
Property of
AllowVerticalNodeMovement
VcPrinter 1119
Property of
AllData
VcGantt 657
Property of
AllowVerticalNodeMovementViaTable
VcDataRecord 560
Property of
VcLink 1027
VcGantt 658
VcNode 1073
AlwaysCurrentDate
AllNodesInOneRow
Property of
Property of
VcDateLine 591
VcGroup 862
AnchoringInteractionsAllowed
VcGroupLevelLayout 875
Property of
VcHierarchyLevelLayout 901
VcBox 428
AllowMultipleBoxMarking
AnchoringLineVisible
Property of
Property of
VcGantt 655
VcBox 428
AllowNewBoxes
AnchorToNode AssignmentMaximumLoadFieldIndex
Method of Property of
VcBox 436 VcResourceScheduler2 1146
AnnotationAtBottom AssignmentMinimumLoadFieldIndex
Property of Property of
VcDateLineGrid 607 VcResourceScheduler2 1147
AnnotationAtCenter AssignmentMinimumMaximumLoadT
ype
Property of
Property of
VcDateLineGrid 607
VcResourceScheduler2 1148
AnnotationAtTop
AssignmentOperationIDFieldIndex
Property of
Property of
VcDateLineGrid 608
VcResourceScheduler2 1148
Arrangement
AssignmentResourceIDFieldIndex
Property of
Property of
VcGantt 658
VcResourceScheduler2 1149
ArrowKeyMode
AssignmentResourceSelectionStrateg
Property of
yFieldIndex
VcGantt 659
Property of
ArrowKeyStepSizeMultiplier
VcResourceScheduler2 1149
Property of
AutomaticSchedulingEnabled
VcGantt 660
Property of
AssignCalendarToNodes
VcScheduler 1214
Property of
Autoschedule 215
VcGantt 660
AssignmentDataTableName
B
Property of
BackColorAsARGB
VcResourceScheduler2 1143
Property of
AssignmentIsResultFieldIndex
VcCalendarGrid 483
Property of
VcInterval 930
VcResourceScheduler2 1144
VcLayer 950
AssignmentIsVisibleFieldIndex
BackColorDataFieldIndex
Property of
Property of
VcResourceScheduler2 1145
VcCalendarGrid 483
AssignmentLoadOrConsumptionPerIt
emFieldIndex VcLayer 951
Property of BackColorMapName
Method of Method of
VcGantt 726 VcGantt 727
Editing EndMonth
group fields in the diagram 683 Property of
group fields in the table 684 VcInterval 932
node fields in the diagram area 684 EndTime
node fields in the table 685 Property of
EditLink VcInterval 932
Method of EndWeekday
VcGantt 726 Property of
EditNewNode VcInterval 932
Property of Ereignis
VcGantt 672 tool tip text 675
EditNode Error
Method of Event of
VcGantt 727 VcGantt 762
Enabled Error handling 762
Property of Error messages 403
VcGantt 673 ErrorAsVariant
EnableSupplyTextEntryEvent Event of
Property of VcGantt 763
VcGantt 673 Esker ActiveX Plug-In 19
End date Evaluate
calculate 35 Method of
EndDataFieldIndex VcFilter 633
Property of Event
VcLayer 954 modifications to XGantt 813
EndDateForAutomaticScheduling return status 674
Property of security check 674
VcScheduler 1215 EventReturnStatus
EndDateNotLaterThanDataFieldIndex Property of
Property of VcGantt 674
VcScheduler 1216 Events 87
EndDateTime Error
Property of VcGantt 762
VcInterval 931 ErrorAsVariant
EndLoading VcGantt 763
OnZoomFactorModifyComplete FieldText
ExportGraphicsToFile FilePath
Method of Property of
VcGantt 676
Files FilterCollection
Property of Property of
DataObject 411 VcGantt 676
Fill2Color see also
Property of VcFilterCollection 635
VcCurve 516 FilterName
Fill2Pattern Property of
Property of VcCurve 525
VcCurve 517 VcFilterSubCondition 643
Fill2ReferenceName VcLayer 954
Property of VcLinkAppearance 1032
VcCurve 520 VcTableFormat 1237
FillColor Filters 88
Property of administration 237
VcCurve 520 comparison value 240
FillPattern editing 239
Property of FilterSubCondition
VcCurve 521 see also
FillReferenceName VcFilterSubCondition 641
Property of FirstBox
VcCurve 524 Method of
Filter VcBoxCollection 445
by index 638 FirstCalendar
marked nodes 636 Method of
name 630 VcCalendarCollection 480
number 636 FirstCalendarGrid
retrieving a filter by its name 638 Method of
see also VcCalendarGridCollection 502
VcFilter 628 FirstCalendarProfile
selecting nodes 655 Method of
using 47 VcCalendarProfileCollection 510
FilterByIndex FirstCurve
Method of Method of
VcFilterCollection 638 VcCurveCollection 547
FilterByName FirstDataRecord
Method of Method of
VcFilterCollection 638 VcDataRecordCollection 568
FirstDataTable Method of
Method of VcLayerCollection 981
VcDataTableCollection 577 FirstLink
FirstDataTableField Method of
Method of VcLinkCollection 1048
VcDataTableFieldCollection 588 FirstLinkAppearance
FirstDateLine Method of
Method of VcLinkAppearanceCollection 1044
VcDateLineCollection 604 FirstMap
FirstDateLineGrid Method of
Method of VcMapCollection 1059
VcDateLineGridCollection 620 FirstMapEntry
FirstField Method of
Method of VcMap 1054
VcDataDefinitionTable 553, 558 FirstNode
FirstFilter Method of
Method of VcNodeCollection 1084
VcFilterCollection 639 FirstNumericScale
FirstFormat Method of
Method of VcNumericScaleCollection 1112
VcBoxFormatCollection 455 FirstTable
VcLineFormatCollection 1011 Method of
VcTableFormatCollection 1242 VcTableCollection 1233
FirstGroup FirstTimeScale
Method of Method of
VcGroupCollection 871 VcTimeScaleCollection 1268
FirstGroupLevelLayout FirstUpdateBehavior
Method of Method of
VcGroupLevelLayoutCollection VcUpdateBehaviorCollection 1276
898
FitChartIntoView
FirstHistogram
Method of
Method of
VcGantt 730
VcHistogramCollection 918
FitHistogramsIntoView
FirstInterval
Method of
Method of
VcGantt 730
VcIntervalCollection 947
FitRangeIntoView
FirstLayer
Method of
Property of GetData
VcResourceScheduler2 1153 Method of
DataObject 412
G GetDate
GetActualExtent Method of
Method of VcGantt 735
VcBox 437 GetDateAsString
GetActualScaleValues Method of
Method of VcGantt 735
VcHistogram 912 GetEndOfPreviousWorktime
GetActualScaleValuesAsVariant Method of
Method of VcCalendar 472
VcHistogram 913 GetFirstOverload
GetAValueFromARGB Method of
Method of VcCurve 535
VcGantt 731 GetFirstOverloadAsVariant
GetBValueFromARGB Method of
Method of VcCurve 536
VcGantt 732 GetFirstOverloadEx
GetCurrentComponentStart Method of
Method of VcCurve 536
VcGantt 733 GetFormat
GetCurrentViewDates Method of
Method of DataObject 413
VcGantt 733 GetGValueFromARGB
GetCurrentViewDatesAsString Method of
Method of VcGantt 736
VcGantt 734 GetLinkByID
GetCurrentViewDatesAsVariant Method of
Method of VcGantt 736
VcGantt 734 GetLinkByIDs
GetCurrentYValues Method of
Method of VcGantt 737
VcHistogram 913 GetMapEntry
GetCurrentYValuesAsVariant Method of
Method of VcMap 1054
VcHistogram 913 GetNewUniqueID
HeightDataFieldIndex HierarchyLevelLayout
Property of Property of
VcLayer 958 VcGantt 681
HeightMapName see also
Property of VcHierarchyLevelLayout 901
VcLayer 958 Histogram 103, 208
Help event 793 actual high-low values of numeric
scale 913
Hidden
actual high-low values of the numeric
Property of
scale 912
VcDataTableField 581
administrate 314
VcDefinitionField 624
all histograms in a window 730
Hierarchical order 100
assign calendar 909
Hierarchy 250, 251
creating 51
all nodes of one group of this level in
curve collection 544, 909
one line 901
curves 318
enquire the hierarchy properties 681
deleting curve point 784, 785
modification 810
displaying curves in context menu
moving nodes interactively 101
832
moving summary bars interactively
edit 316
102
high-low curve values 913
recalculation of code 752
inserting curve point 797, 798
Hierarchy levels
marking curves 528
line thickness 905
matching numeric scale 912
line type 905
maximum value of the numeric scale
node layout optimized 903
910
page break after each group 902
maximum value of the numeric scale
page break after groups 903 of the (first) histogram 740
separation line color 904 minimum value of the numeric scale
show node separation lines 903 910
HTML 12 IdentifyObject
HTML page 19 Method of
hWnd 682 VcGantt 742
Property of IdentifyObjectAt
VcGantt 682 Method of
VcGantt 744
I IdentifyObjectAtAsVariant
ID Method of
Property of VcGantt 746
VcDataRecord 562 IncomingLinks
VcDefinitionField 625 Property of
VcGroup 864 VcNode 1074
VcLink 1028 IndentColumn
VcNode 1074 Property of
Identifiable VcTableFormat 1238
Property of IndentWidth
VcCalendarGrid 485 Property of
VcDateLine 592 VcTableFormat 1238
IdentifyField Index
Method of Property of
VcGantt 741 VcBoxFormatField 460
IdentifyFormatField VcDataTableField 581
Method of VcFilterSubCondition 644
VcBox 439 VcLayerFormatField 989
VcTable 1229 VcLineFormatField 1017
IdentifyInterval VcTableFormatField 1249
Method of InfoWindow
VcCalendarGrid 496 Property of
IdentifyIntervalAsVariant VcGantt 683
Method of see also
VcCalendarGrid 497 VcInfoWindow 920
IdentifyLayerAt InfowWindow 683
Method of Inplace editing 683, 684, 685
VcGantt 741 In-place editing
IdentifyLayerAtAsVariant groups in diagram 187
Method of groups in table 187
VcGantt 742 nodes in diagram 187
LinkDataTableName LinksDataTableName
Property of Property of
VcResourceScheduler2 1154 VcGantt 688
LinkDurationDataFieldIndex LinkSuccessorDataFieldIndex
Property of Property of
VcScheduler 1217 VcGantt 688
LinkDurationFieldIndex LinkSuccessorOperationIDFieldIndex
Property of Property of
VcResourceScheduler2 1155 VcResourceScheduler2 1157
LinkPredecessorDataFieldIndex LinkSuccessorTaskIDFieldIndex
Property of Property of
VcGantt 687 VcResourceScheduler2 1158
LinkPredecessorOperationIDFieldInde LinkTypeDataFieldIndex
x
Property of
Property of
VcGantt 689
VcResourceScheduler2 1156
Live Update 135
LinkPredecessorTaskIDFieldIndex
Loading
Property of
end 727
VcResourceScheduler2 1157
Links 131
M
Administrate Link Appearances 278
MajorTicks
appearances 130
Property of
creating 799, 800
VcNumericScale 1100
data 1027
VcRibbon 1204
data field 1028
MajorTicksEx
delete 723
Property of
deleting 800, 801, 1030
VcNumericScale 1101
editing 726
MakeARGB
loading 746
Method of
number 1048
VcGantt 747
predecessor node 213, 1029
Map 141, 690
rounded slants 192
by index 1059
show 213
creating entry 1053
successor node 214, 1029
deleting entry 1053
type 214
edit map 265
updating 1031
name 1051
updating data 760
number of entries 1051
NextGroupLevelLayout OptimizeTimeScaleStartEnd
VcGroupLevelLayoutCollection VcGantt 749
899
OutlineIndent
NextHistogram
VcNode 1079
VcHistogramCollection 919
OutlineOutdent
NextInterval
VcNode 1080
VcIntervalCollection 948
PageLayout
NextLayer
VcGantt 749
VcLayerCollection 983
PrintDirectEx
NextLink
VcGantt 749
VcLinkCollection 1048
PrinterSetup
NextLinkAppearance
VcGantt 750
VcLinkAppearanceCollection 1045
PrintIt
NextMap
VcGantt 751
VcMapCollection 1060
PrintPreview
NextMapEntry
VcGantt 751
VcMap 1055
PrintToFile
NextNode
VcGantt 751
VcNodeCollection 1085
Process
NextNumericScale
VcResourceScheduler2 1199
VcNumericScaleCollection 1112
PutInOrderAfter
NextTable
VcCalendarProfile 505
VcTableCollection 1233
VcDateLine 598
NextTimeScale
VcHistogram 913
VcTimeScaleCollection 1268
VcInterval 942
NextUpdateBehavior
VcLayer 978
VcUpdateBehaviorCollection 1277
VcLinkAppearance 1040
NodeRowInView
VcUpdateBehavior 1272
VcNode 1079
RecalculateAllStructureCodes
NumericScaleByIndex
VcGantt 752
VcNumericScaleCollection 1113
RelatedDataRecord
NumericScaleByName
VcDataRecord 563
VcNumericScaleCollection 1113
VcGroup 868
Open
VcLink 1030
VcGantt 748
VcNode 1080
OptimizeColumnWidth
Remove
VcTable 1230
DataObjectFiles 418
ModificationsAllowed
N
Property of
Name
VcGroupLevelLayout 879
Property of
MouseProcessingEnabled
VcBox 432
Property of
VcBoxFormat 449
VcGantt 690
VcCalendar 469
Move layers
VcCalendarGrid 488
with shift key 202
VcCalendarProfile 504
Moveable
VcCurve 529
Property of
VcDataTable 573
VcBox 432
VcDataTableField 582
VcDateLine 595
VcDateLine 596
VcLayer 966
VcDateLineGrid 612
MoveAllSelectedNodes
VcDefinitionField 625
Property of
VcFilter 630
VcGantt 691
VcGroup 864
MoveLayersAsNodeWithShiftKey
VcGroupLevelLayout 879
Property of
VcHistogram 909
VcGantt 691
VcInterval 935
MoveMode
VcLayer 967
Property of
VcLineFormat 1005
VcNode 1075
VcLinkAppearance 1035
MoveNodeAlways
VcMap 1051
Property of
VcNumericScale 1102
VcGantt 692
VcTable 1227
MoveNodeWhenMarked
VcTableFormat 1239
Property of
VcTimeScale 1262
VcGantt 692
VcUpdateBehavior 1271
Moving
Navigation
nodes or layers 341
Diagram 339
MultiplePrimaryKeysAllowed
Table 339
Property of
Netscape 19
VcDataTable 572
NewNodesViaDoubleClick
MultiState
Property of
Property of
VcGantt 693
VcTableFormatField 1251
NextBox
MultiState fields 146
NextTable Property of
Method of VcBox 433
VcTableCollection 1233 NodeLevelLayout
NextTimeScale Property of
Method of VcGantt 694
VcTimeScaleCollection 1268 see also
NextUpdateBehavior VcNodeLevelLayout 1087
Method of NodeRowInView
VcUpdateBehaviorCollection 1277 Method of
Node VcNode 1079
editing data 349 NodeRowNumberDataFieldIndex
ID 1074 Property of
information window 683 VcGantt 694
related data record 1080 Nodes 148
see also all data 1073
VcNode 1072 all nodes of one group in one line
862
node order
all nodes of one group of this level in
change in table 202
one line 875
Node rows
allow new nodes 200
initial number 207
assign calendars to nodes 201
minimal height 207
creating 148, 806, 807
NodeCalendarNameDataFieldIndex
creating new nodes via double-click
Property of 693
VcGantt 693 data field 1073
NodeCollection data record 1077
Property of delete 724, 807
VcGantt 693 delete, cut, copy, paste 348, 352
VcGroup 865 deleting 148, 379, 808, 1077
see also edit new node 200
VcNodeCollection 1083 editing 349, 727
NodeDurationDataFieldIndex editing new nodes 673
Property of groups in one line 254
VcGantt 694 identifying table field below cursor
NodeEndDateDataFieldIndex 741
NodeID
ObserveDST Property of
OnHistogramsHeightModifyEx Event of
Event of VcGantt 804
VcGantt 797 OnMouseDown
OnInsertCurvePoint Event of
Event of VcGantt 804
VcGantt 797 OnMouseMove
OnInsertCurvePointEx Event of
Event of VcGantt 805
VcGantt 798 OnMouseUp
OnLegendViewClosed Event of
Event of VcGantt 805
VcGantt 798 OnNodeCreate
OnLinkCreate Event of
Event of VcGantt 806
VcGantt 799 OnNodeCreateCompleteEx
OnLinkCreateComplete Event of
Event of VcGantt 807
VcGantt 799 OnNodeDelete
OnLinkDelete Event of
Event of VcGantt 807
VcGantt 800 OnNodeDeleteCompleteEx
OnLinkDeleteComplete Event of
Event of VcGantt 808
VcGantt 801 OnNodeLClick
OnLinkLClickCltn Event of
Event of VcGantt 808
VcGantt 801 OnNodeLDblClick
OnLinkLDblClickCltn Event of
Event of VcGantt 809
VcGantt 802 OnNodeModifyComplete
OnLinkRClickCltn Event of
Event of VcGantt 810
VcGantt 802 OnNodeModifyCompleteEx
OnModifyComplete Event of
Event of VcGantt 810
VcGantt 803 OnNodeModifyEx
OnMouseDblClk Event of
OperationLoadPerItemFieldIndex OperationResultProcessingTimeFieldI
ndex
Property of
Property of
VcResourceScheduler2 1159
VcResourceScheduler2 1168
OperationMaximumInterruptionTimeFi
eldIndex OperationResultSelectedTimingReso
urceIDFieldIndex
Property of
Property of
VcResourceScheduler2 1160
VcResourceScheduler2 1168
OperationMinimumSupplementTimeFi
eldIndex OperationResultStartDateFieldIndex
Property of Property of
VcResourceScheduler2 1161 VcResourceScheduler2 1169
OperationOverlapQuantityFieldIndex OperationResultStatusFieldIndex
Property of Property of
VcResourceScheduler2 1162 VcResourceScheduler2 1169
OperationPostLoadFieldIndex OperationRouteFieldIndex
Property of Property of
VcResourceScheduler2 1163 VcResourceScheduler2 1170
OperationPostOffsetFieldIndex OperationSequenceNumberFieldIndex
Property of Property of
VcResourceScheduler2 1164 VcResourceScheduler2 1170
OperationPreparationLoadFieldIndex OperationStartLockDateFieldIndex
Property of Property of
VcResourceScheduler2 1165 VcResourceScheduler2 1171
OperationPreparationOffsetFieldIndex OperationTaskIDFieldIndex
Property of Property of
VcResourceScheduler2 1165 VcResourceScheduler2 1172
OperationResultEndDateFieldIndex OperationWorkInProcessFieldIndex
Property of Property of
VcResourceScheduler2 1166 VcResourceScheduler2 1172
OperationResultPostEndDateFieldInd Operator
ex
Property of
Property of
VcFilterSubCondition 644
VcResourceScheduler2 1167
OptimizeColumnWidth
OperationResultPreparationStartDate
Method of
FieldIndex
VcTable 1230
Property of
OptimizedNodesSortDataFieldIndex
VcResourceScheduler2 1167
Property of
Property of PageDescription
Property of PageDescriptionString
AbsoluteTopMarginInInches AllowMultipleBoxMarking
VcPrinter 1118 VcGantt 655
Active AllowNewBoxes
VcCalendarCollection 477 VcGantt 655
VcHistogramCollection 916 AllowNewNodes
VcNumericScaleCollection 1111 VcGantt 656
VcTableCollection 1232 AllowNumericScaleRescale
VcTimeScaleCollection 1267 VcGantt 656
VcUpdateBehaviorCollection 1274 AllowTableColumnWidthOptimization
ActiveNodeFilter VcGantt 656
VcGantt 655 AllowTimescaleRescale
ActualEndDateDataFieldIndex VcGantt 657
VcScheduler 1214 AllowVerticalGroupMovementViaDiag
ram
ActualStartDateDataFieldIndex
VcGroupLevelLayout 876
VcScheduler 1214
AllowVerticalGroupMovementViaTabl
Addend
e
VcCurve 514
VcGroupLevelLayout 876
AdjustToReferenceDate
AllowVerticalNodeMovement
VcDateLineGrid 607
VcGantt 657
Alignment
AllowVerticalNodeMovementViaTable
VcBorderBox 420
VcGantt 658
VcBoxFormatField 458
AlwaysCurrentDate
VcLayerFormatField 988
VcDateLine 591
VcLineFormatField 1015
AnchoringInteractionsAllowed
VcPrinter 1118
VcBox 428
VcTableFormatField 1246
AnchoringLineVisible
AllBorderBoxesShownOnCombinedC
VcBox 428
ontrols
AnnotationAtBottom
VcPrinter 1119
VcDateLineGrid 607
AllData
AnnotationAtCenter
VcDataRecord 560
VcDateLineGrid 607
VcLink 1027
AnnotationAtTop
VcNode 1073
VcDateLineGrid 608
AllNodesInOneRow
Arrangement
VcGroup 862
VcGantt 658
VcGroupLevelLayout 875
ArrowKeyMode
VcHierarchyLevelLayout 901
DatesWithHourAndMinute DoubleOutputFormat
VcFilter 629 VcGantt 672
DayInEndMonth VcNumericScale 1099
VcInterval 930 DropEndDate
DayInStartMonth DataObject 410
VcInterval 931 DropStartDate
DefaultOperationMaximumInterruptio DataObject 411
nTime
Duration
VcResourceScheduler2 1152
VcInterval 931
DefaultPrinterName
DurationDataFieldIndex
VcPrinter 1122
VcLayer 953
DefaultResourceCalendarName
VcScheduler 1215
VcResourceScheduler2 1153
EarlyEndDateDataFieldIndex
DefinitionTable
VcScheduler 1215
VcDataDefinition 549
EarlyStartDateDataFieldIndex
DelayTime
VcScheduler 1215
VcUpdateBehaviorContext 1279
Editable
Description
VcDataTableField 580
VcDataTable 572
VcDefinitionField 624
DiagramAlternatingRowBackColor
EditNewNode
VcGantt 669
VcGantt 672
DiagramBackColor
Enabled
VcGantt 669
VcGantt 673
DiagramEnabled
EnableSupplyTextEntryEvent
VcPrinter 1123
VcGantt 673
DiagramHistogramHeightRatio
EndDataFieldIndex
VcGantt 670
VcLayer 954
DiagramHistogramHeightRatioEx
EndDateForAutomaticScheduling
VcGantt 670
VcScheduler 1215
DiagramVisible
EndDateNotLaterThanDataFieldIndex
VcGantt 671
VcScheduler 1216
DialogFont
EndDateTime
VcGantt 671
VcInterval 931
DirectDataWritingModeEnabled
EndMonth
VcGantt 671
VcInterval 932
DocumentName
EndTime
VcPrinter 1123
VcInterval 932
ID IntervalCollection
VcDataRecord 562 VcCalendar 469
VcDefinitionField 625 VcCalendarProfile 504
VcGroup 864 IsEditable
VcLink 1028 VcUpdateBehavior 1270
VcNode 1074 VcUpdateBehaviorContext 1280
Identifiable Item
VcCalendarGrid 485 DataObjectFiles 417
VcDateLine 592 LabelPosition
IncomingLinks VcDateLine 593
VcNode 1074 LabelSizeDependence
IndentColumn VcLayer 959
VcTableFormat 1238 LateEndDateDataFieldIndex
IndentWidth VcScheduler 1216
VcTableFormat 1238 LateStartDateDataFieldIndex
Index VcScheduler 1217
VcBoxFormatField 460 LayerCollection
VcDataTableField 581 VcGantt 685
VcFilterSubCondition 644 LayerFormat
VcLayerFormatField 989 VcLayer 960
VcLineFormatField 1017 LayerName
VcTableFormatField 1249 VcCurve 525
InfoWindow LayerShape
VcGantt 683 VcLayer 960
InPlaceEditingOnGroupsInDiagramEn Left
abled
VcLegendView 999
VcGantt 683
VcRect 1138
InPlaceEditingOnGroupsInTableEnabl
VcWorldView 1284
ed
LeftActualValue
VcGantt 683
VcLegendView 999
InPlaceEditingOnNodesInDiagramEn
abled VcWorldView 1284
VcGantt 684 LeftMargin
InPlaceEditingOnNodesInTableEnabl VcLayerFormatField 990
ed VcTableFormatField 1250
VcGantt 684 Legend
InteractionMode VcMapEntry 1067
VcGantt 685 LegendElementsArrangement
NoOfInitialRows OperationPreparationLoadFieldIndex
VcGantt 696 VcResourceScheduler2 1165
Number OperationPreparationOffsetFieldIndex
VcMapEntry 1068 VcResourceScheduler2 1165
NumericScaleCollection OperationResultEndDateFieldIndex
VcHistogram 910 VcResourceScheduler2 1166
ObjectDrawEventsEnabled OperationResultPostEndDateFieldInd
ex
VcLayer 967
VcResourceScheduler2 1167
ObserveDST
OperationResultPreparationStartDate
VcDateLineGrid 612
FieldIndex
VcRibbon 1204
VcResourceScheduler2 1167
OLEDragHorizontalMovementAllowed
OperationResultProcessingTimeFieldI
VcGantt 697 ndex
OLEDragMode VcResourceScheduler2 1168
VcGantt 697 OperationResultSelectedTimingReso
OLEDragWithOwnMouseCursor urceIDFieldIndex
OLEDragWithPhantom OperationResultStartDateFieldIndex
OLEDropMode OperationResultStatusFieldIndex
OperationDataTableName OperationRouteFieldIndex
OperationLoadPerItemFieldIndex OperationSequenceNumberFieldInde
x
VcResourceScheduler2 1159
VcResourceScheduler2 1170
OperationMaximumInterruptionTimeFi
eldIndex OperationStartLockDateFieldIndex
OperationMinimumSupplementTimeFi OperationTaskIDFieldIndex
eldIndex VcResourceScheduler2 1172
VcResourceScheduler2 1161 OperationWorkInProcessFieldIndex
OperationOverlapQuantityFieldIndex VcResourceScheduler2 1172
VcResourceScheduler2 1162 Operator
OperationPostLoadFieldIndex VcFilterSubCondition 644
VcResourceScheduler2 1163 OptimizedNodesSortDataFieldIndex
OperationPostOffsetFieldIndex VcGroupLevelLayout 880
VcResourceScheduler2 1164 OptimizedNodesSortOrder
SuperGroup TaskResultPreparationStartDateFieldI
ndex
VcGroup 866
VcResourceScheduler2 1193
VcNode 1076
TaskResultProcessingStepFieldIndex
SuppressTruncatedText
VcResourceScheduler2 1194
VcLayerFormatField 992
TaskResultProcessingTimeFieldIndex
Table
VcResourceScheduler2 1194
VcGantt 709
TaskResultRouteFieldIndex
TableCollection
VcResourceScheduler2 1195
VcGantt 710
TaskResultStartDateFieldIndex
TableColumnRanges
VcResourceScheduler2 1195
VcPrinter 1133
Text
TableDiagramWidthRatio
VcBorderBox 425
VcGantt 710
VcDateLine 597
TableDiagramWidthRatioEx
VcInterval 941
VcGantt 710
TextAlignment
TableFormatCollection
VcRibbon 1210
VcTable 1228
TextDataFieldIndex
TableWidthAdoptionFromViewOnScre
en VcLayerFormatField 992
VcPrinter 1134 VcLineFormatField 1023
TaskDataTableName VcTableFormatField 1257
VcResourceScheduler2 1187 TextFont
TaskDueDateFieldIndex VcBorderBox 425
VcResourceScheduler2 1188 VcBoxFormatField 466
TaskPlanningStrategyFieldIndex VcLayerFormatField 992
VcResourceScheduler2 1189 VcLineFormatField 1024
TaskPriorityFieldIndex VcTableFormatField 1258
VcResourceScheduler2 1190 TextFontColor
TaskQuantityFieldIndex VcBoxFormatField 466
VcResourceScheduler2 1191 VcLayerFormatField 993
TaskReleaseDateFieldIndex VcLineFormatField 1024
VcResourceScheduler2 1192 VcTableFormatField 1258
TaskResultEndDateFieldIndex TextFontColorDataFieldIndex
VcResourceScheduler2 1192 VcLayerFormatField 993
TaskResultPostEndDateFieldIndex VcLineFormatField 1024
VcResourceScheduler2 1193 VcTableFormatField 1258
TextFontColorMapName
AssignmentResourceIDFieldIndex OperationPreparationOffsetFieldIndex
1149 1165
AssignmentResourceSelectionStrateg OperationResultEndDateFieldIndex
yFieldIndex 1149 1166
BaseCalendarUsageForSupplementTi OperationResultPostEndDateFieldInd
mes 1150 ex 1167
BaseTimeUnit 1151 OperationResultPreparationStartDate
FieldIndex 1167
BaseTimeUnitsPerStep 1151
OperationResultProcessingTimeFieldI
DataRecordEventsEnabled 1152
ndex 1168
DefaultOperationMaximumInterruptio
OperationResultSelectedTimingReso
nTime 1152
urceIDFieldIndex 1168
DefaultResourceCalendarName
OperationResultStartDateFieldIndex
1153
1169
DetermineIDOfFirstOperationByTaskI
OperationResultStatusFieldIndex
D 1198
1169
DetermineIDOfLastOperationByTaskI
OperationRouteFieldIndex 1170
D 1199
OperationSequenceNumberFieldInde
FullUsageOfPlanningUnitsEnabled
x 1170
1153
OperationStartLockDateFieldIndex
LinkDataTableName 1154
1171
LinkDurationFieldIndex 1155
OperationTaskIDFieldIndex 1172
LinkPredecessorOperationIDFieldInd
OperationWorkInProcessFieldIndex
ex 1156
1172
LinkPredecessorTaskIDFieldIndex
PlanningEndDate 1173
1157
PlanningStartDate 1173
LinkSuccessorOperationIDFieldIndex
1157 PlanningStrategy 1174
LinkSuccessorTaskIDFieldIndex Process 1199
1158
ResourceCalendarNameFieldIndex
OperationDataTableName 1158 1175
OperationLoadPerItemFieldIndex ResourceCapacityType 1175
1159
ResourceCapacityTypeFieldIndex
OperationMaximumInterruptionTimeFi 1176
eldIndex 1160
ResourceConstraintTypeFieldIndex
OperationMinimumSupplementTimeFi 1177
eldIndex 1161
ResourceDataTableName 1178
OperationOverlapQuantityFieldIndex
ResourceEfficiencyFieldIndex 1180
1162
ResourceGroupDataTableName
OperationPostLoadFieldIndex 1163
1181
OperationPostOffsetFieldIndex 1164
ResourceGroupIDFieldIndex 1182
OperationPreparationLoadFieldIndex
ResourceNameFieldIndex 1182
1165
Property of
X
VcGantt 721
XP Visual Style
ZoomFactorAsDouble
activate 391
Property of
VcPrinter 1135
Z
Zooming 340, 761
Zoom
by mouse wheel 721
adjust the diagram to window size
while keeping the heigth-to-width- per mouse wheel 190
ration 730 zoom factor 721
Method of ZoomingPerMouseWheelAllowed
VcGantt 761 Property of
Zoom event 860 VcGantt 721
ZoomFactor