This numbering is used for .SetSymbolProperty and .SetToolboxSymbolProperty. It will set the vertical offset (from the middle of the task row) to one of these numbers.
Note that the property VerticalLevel (an older property) uses a different number scheme.
VerticalLevel2 = 5 : 5 levels above
VerticalLevel2 = 4: 4 levels above
VerticalLevel2 = 3 : 3 levels above
VerticalLevel2 = 2 : 2 levels above
VerticalLevel2 = 1 : 1 level above
VerticalLevel2 = 0 : middle
VerticalLevel2 = -1 : 1 level below
VerticalLevel2 = -2 : 2 levels below
VerticalLevel2 = -3: 3 levels below
VerticalLevel2 = -4 : 4 levels below
VerticalLevel2 = -5 : 5 levels below
Note:
Use SetSymbolProperty (VerticalLevel property) with a value of -1 to reset the symbol level to the Toolbox default.
|
Public Sub SetVerticalLevelExample() objmilestones = CreateObject("Milestones") With objmilestones .Activate 'add 11 bars on the same row, but on different vertical levels symboltext = "level " + CStr(nCounter) .addtaskusingduration("1", datestring, 1, 1, 0, 2, "30", "day", 0, 0, symboltext, "", "") For nCounter = 1 To 3 symboltext = "level " + CStr(nCounter) .addtaskusingduration("2", datestring, 1, 1, 0, 2, "30", "day", 0, 0, symboltext, "", "")
.setlinesperpage("3") .Close End With
Use SetSymbolProperty (VerticalLevel property) with a value of -1 to reset the symbol level to the Toolbox default.
|
Related Topics
To effectively program with this interface, it's important to learn all about Milestones Professional. Learn about Milestones.
Milestones Professional 2025 Automation Methods and Properties. © Copyright 2000-2025, KIDASA Software, Inc. All rights reserved.