732. I haven't found options to localize (in Italian) the strings ( dates, tooltip ) that shows in the chart area
| Visual Basic 6 |
|---|
With Gantt1 .BeginUpdate With .Chart .LevelCount = 2 .PaneWidth(False) = 0 .Label(exWeek) = "<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256" .Label(exDay) = "<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> " & _ "<%yyyy%><||><||>4096" .LabelToolTip(exWeek) = "<%d%> <%mmmm%> <%yyyy%> <%ww%>" .LabelToolTip(exDay) = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>" .FirstWeekDay = exMonday .MonthNames = "gennaio febbraio marzo aprile maggio giugno luglio agosto settembre ottobre novembre dicembre" .WeekDays = "domenica lunedì martedì mercoledì giovedì venerdì sabato" .ToolTip = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>" .UnitScale = exDay End With .EndUpdate End With |
731. I haven't found options to localize (in Dutch) the strings ( dates, tooltip ) that shows in the chart area
| Visual Basic 6 |
|---|
With Gantt1 .BeginUpdate With .Chart .LevelCount = 2 .PaneWidth(False) = 0 .Label(exWeek) = "<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256" .Label(exDay) = "<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> " & _ "<%yyyy%><||><||>4096" .LabelToolTip(exWeek) = "<%d%> <%mmmm%> <%yyyy%> <%ww%>" .LabelToolTip(exDay) = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>" .FirstWeekDay = exMonday .MonthNames = "januari februari maart april mei juni juli augusts september oktober november december" .WeekDays = "zondag maandag dinsdag woensdag donderdag vrijdag zaterdag" .ToolTip = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>" .UnitScale = exDay End With .EndUpdate End With |
730. I haven't found options to localize (in German) the strings ( dates, tooltip ) that shows in the chart area
| Visual Basic 6 |
|---|
With Gantt1 .BeginUpdate With .Chart .LevelCount = 2 .PaneWidth(False) = 0 .Label(exWeek) = "<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%>.<%mmmm%> <%yyyy%><r><%ww%><||><||>256" .Label(exDay) = "<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%>.<%m3%> '<%yy%><|><%dddd%> <%d%>.<%mmmm%> " & _ "<%yyyy%><||><||>4096" .LabelToolTip(exWeek) = "<%d%>.<%mmmm%> <%yyyy%> <%ww%>" .LabelToolTip(exDay) = "<%dddd%>, <%d%>.<%mmmm%> <%yyyy%>" .FirstWeekDay = exMonday .MonthNames = "Januar Februar März April Mai Juni Juli August September Oktober November Dezember" .WeekDays = "Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag" .ToolTip = "<%dddd%>,<%d%>.<%mmmm%> <%yyyy%>" .UnitScale = exDay End With .EndUpdate End With |
729. I haven't found options to localize (in French) the strings ( dates, tooltip ) that shows in the chart area
| Visual Basic 6 |
|---|
With Gantt1 .BeginUpdate With .Chart .LevelCount = 2 .PaneWidth(False) = 0 .Label(exWeek) = "<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256" .Label(exDay) = "<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> " & _ "<%yyyy%><||><||>4096" .LabelToolTip(exWeek) = "<%d%> <%mmmm%> <%yyyy%> <%ww%>" .LabelToolTip(exDay) = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>" .FirstWeekDay = exMonday .MonthNames = "janvier février mars avril mai juin juillet août septembre octobre novembre décembre" .WeekDays = "dimanche lundi mardi mercredi jeudi vendredi samedi" .ToolTip = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>" .UnitScale = exDay End With .EndUpdate End With |
728. How can I filter programatically using more columns
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.PaneWidth(True) = 0
With .Columns
.Add "Car"
.Add "Equipment"
End With
With .Items
.CellCaption(.AddItem("Mazda"),1) = "Air Bag"
.CellCaption(.AddItem("Toyota"),1) = "Air Bag,Air condition"
.CellCaption(.AddItem("Ford"),1) = "Air condition"
.CellCaption(.AddItem("Nissan"),1) = "Air Bag,ABS,ESP"
.CellCaption(.AddItem("Mazda"),1) = "Air Bag, ABS,ESP"
.CellCaption(.AddItem("Mazda"),1) = "ABS,ESP"
End With
With .Columns.Item("Car")
.FilterType = exFilter
.Filter = "Mazda"
End With
With .Columns.Item("Equipment")
.FilterType = exPattern
.Filter = "*ABS*|*ESP*"
End With
.ApplyFilter
.EndUpdate
End With
|
727. I have seen the IN function but it returns -1 or 0. How can I display the value being found ( SWITCH usage )
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
With .Columns.Add("Value")
.Width = 24
End With
With .Columns.Add("SWITCH - statment")
.ComputedField = "%0 switch ('not found', 1,2,3,4,5,7,8,9,11,13,14)"
.ToolTip = .ComputedField
End With
With .Items
.AddItem 0
.AddItem 1
.AddItem 2
End With
.EndUpdate
End With
|
726. I have a large collection of constant values and using or operator is a time consuming (IN usage). Is there any way to increase the speed to check if a value maches the collection
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
With .Columns.Add("Value")
.Width = 24
End With
With .Columns.Add("IN - statment")
.ComputedField = "%0 in (1,2,3,4,5,7,8,9,11,13,14) ? 'found' : ''"
.ToolTip = .ComputedField
End With
With .Items
.AddItem 0
.AddItem 1
.AddItem 2
End With
.EndUpdate
End With
|
725. How can I use the CASE statement (CASE usage)
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
With .Columns.Add("Value")
.Width = 24
End With
With .Columns.Add("CASE - statment")
.ComputedField = "%0 case (default:'not found';1:%0;2:2*%0;3:3*%0;4:4*%0;5:5*%0;7:'Seven';8:'Eight';9:'Nine';11:'" & _
"Eleven';13:'Thirtheen';14:'Fourtheen')"
.ToolTip = .ComputedField
End With
With .Items
.AddItem 0
.AddItem 1
.AddItem 2
End With
.EndUpdate
End With
|
724. How can I use the CASE statement (CASE usage)
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
With .Columns.Add("Value")
.Width = 24
End With
With .Columns.Add("CASE - statment")
.ComputedField = "%0 case (default:'not found';1:'One';2:'Two';3:'Three';4:'Four';5:'Five';7:'Seven';8:'Eight';9:" & _
"'Nine';11:'Eleven';13:'Thirtheen';14:'Fourtheen')"
.ToolTip = .ComputedField
End With
With .Items
.AddItem 0
.AddItem 1
.AddItem 2
End With
.EndUpdate
End With
|
723. Is is possible to use HTML tags to display in the filter caption
| Visual Basic 6 |
|---|
With Gantt1 .BeginUpdate .FilterBarPromptVisible = True .FilterBarCaption = "This is a bit of text being displayed in the filter bar." .Columns.Add "" With .Items .AddItem "Item 1" .AddItem "Item 2" .AddItem "Item 3" End With .EndUpdate End With |
722. How can I find the number of items after filtering
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Columns.Add ""
With .Items
h = .AddItem("")
.CellCaption(h,0) = .VisibleItemCount
End With
.EndUpdate
End With
|
721. How can I change the filter caption
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.PaneWidth(True) = 0
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = &H2000 Or FilterPromptEnum.exFilterPromptContainsAll Or FilterPromptEnum.exFilterPromptStartWords
.FilterBarPromptPattern = "london robert"
.FilterBarCaption = "<r>Found: ... "
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
720. While using the filter prompt is it is possible to use wild characters
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.PaneWidth(True) = 0
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exFilterPromptPattern
.FilterBarPromptPattern = "lon* seat*"
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
719. How can I list all items that contains any of specified words, not necessary at the beggining
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.PaneWidth(True) = 0
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = FilterPromptEnum.exFilterPromptContainsAny Or FilterPromptEnum.exFilterPromptStartWords
.FilterBarPromptPattern = "london davolio"
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
718. How can I list all items that contains any of specified words, not strings
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.Chart.PaneWidth(True) = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = &H2000 Or FilterPromptEnum.exFilterPromptContainsAny Or FilterPromptEnum.exFilterPromptStartWords
.FilterBarPromptPattern = "london nancy"
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
717. How can I list all items that contains all specified words, not strings
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.PaneWidth(True) = 0
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = &H2000 Or FilterPromptEnum.exFilterPromptContainsAll Or FilterPromptEnum.exFilterPromptStartWords
.FilterBarPromptPattern = "london robert"
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
716. I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = FilterPromptEnum.exFilterPromptContainsAny Or FilterPromptEnum.exFilterPromptCaseSensitive
.FilterBarPromptPattern = "Anne"
.Chart.PaneWidth(True) = 0
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
715. Is it possible to list only items that ends with any of specified strings
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exFilterPromptEndWith
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "Fuller"
.Chart.PaneWidth(True) = 0
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
714. Is it possible to list only items that ends with any of specified strings
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exFilterPromptEndWith
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "Fuller"
.Chart.PaneWidth(True) = 0
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
713. Is it possible to list only items that starts with any of specified strings
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exFilterPromptStartWith
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "An M"
.Chart.PaneWidth(True) = 0
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
712. Is it possible to list only items that starts with specified string
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exFilterPromptStartWith
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "A"
.Chart.PaneWidth(True) = 0
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
711. How can I specify that the list should include any of the seqeunces in the pattern
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exFilterPromptContainsAny
.FilterBarPromptPattern = "london seattle"
.Chart.PaneWidth(True) = 0
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
710. How can I specify that all sequences in the filter pattern must be included in the list
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.PaneWidth(True) = 0
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exFilterPromptContainsAll
.FilterBarPromptPattern = "london manager"
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
709. How do I change at runtime the filter prompt
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.Chart.PaneWidth(True) = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptPattern = "london manager"
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
708. How do I specify to filter only a single column when using the filter prompt
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.Chart.PaneWidth(True) = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptColumns = "2,3"
.FilterBarPromptPattern = "london"
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
707. How do I change the prompt or the caption being displayed in the filter bar
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.PaneWidth(True) = 0
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPrompt = "changed"
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
.EndUpdate
End With
|
706. How do I enable the filter prompt feature
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.PaneWidth(True) = 0
.ColumnAutoResize = True
.ContinueColumnScroll = 0
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add "City"
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.CellCaption(h0,1) = "Vice President, Sales"
.CellCaption(h0,2) = "Tacoma"
.SelectItem(h0) = True
h0 = .AddItem("Janet Leverling")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.CellCaption(h0,1) = "Sales Manager"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Michael Suyama")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Robert King")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
h0 = .AddItem("Laura Callahan")
.CellCaption(h0,1) = "Inside Sales Coordinator"
.CellCaption(h0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.CellCaption(h0,1) = "Sales Representative"
.CellCaption(h0,2) = "London"
End With
.EndUpdate
End With
|
705. Is it possible to colour a particular column, I mean the cell's foreground color
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
With .ConditionalFormats.Add("1")
.ForeColor = RGB(255,0,0)
.ApplyTo = &H1
End With
.MarkSearchColumn = False
With .Columns
.Add "Column 1"
.Add "Column 2"
End With
With .Items
.CellCaption(.AddItem(0),1) = 1
.CellCaption(.AddItem(2),1) = 3
.CellCaption(.AddItem(4),1) = 5
End With
.EndUpdate
End With
|
704. Is it possible to colour a particular column for specified values
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
With .ConditionalFormats.Add("int(%1) in (3,4,5)")
.BackColor = RGB(255,0,0)
.ApplyTo = &H1
End With
.MarkSearchColumn = False
With .Columns
.Add "Column 1"
.Add "Column 2"
End With
With .Items
.CellCaption(.AddItem(0),1) = 1
.CellCaption(.AddItem(2),1) = 3
.CellCaption(.AddItem(4),1) = 5
End With
.EndUpdate
End With
|
703. Is it possible to colour a particular column
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.MarkSearchColumn = False
With .Columns
.Add "Column 1"
.Add("Column 2").Def(exCellBackColor) = 255
End With
With .Items
.CellCaption(.AddItem(0),1) = 1
.CellCaption(.AddItem(2),1) = 3
.CellCaption(.AddItem(4),1) = 5
End With
.EndUpdate
End With
|
702. How do i get all the children items that are under a certain parent Item handle
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.LinesAtRoot = exLinesAtRoot
.Columns.Add "P"
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.ExpandItem(h) = True
End With
With .Items
hChild = .ItemChild(.FirstVisibleItem)
Debug.Print(.CellCaption(hChild,0))
Debug.Print(.CellCaption(.NextSiblingItem(hChild),0))
End With
.EndUpdate
End With
|
701. How can I change the predefined labels being displayed in the chart's header so it shows the data in short format with no literals
| Visual Basic 6 |
|---|
With Gantt1 .BeginUpdate With .Chart .PaneWidth(False) = 0 .LevelCount = 3 .OverviewVisible = True .AllowOverviewZoom = exAlwaysZoom .Label(exYear) = "<%yy%><|><%yyyy%>" .Label(exHalfYear) = "" .Label(exQuarterYear) = "" .Label(exMonth) = "<|><%m%><|><%m%>/<%yy%><|><%m%>/<%yyyy%>" .Label(exThirdMonth) = "" .Label(exWeek) = "<|><%ww%><|><%m%>/<%d%>/<%yy%><r><%ww%><|><%m%>/<%d%>/<%yyyy%><r><%ww%><||><||>256" .Label(exDay) = "<|><%d%><|><%m%>/<%d%>/<%yy%><|><%m%>/<%d%>/<%yyyy%><||><||>4096" .Label(exHour) = "<|><%hh%><|><%m%>/<%d%>/<%yy%> <%h%> <%AM/PM%><|><%m%>/<%d%>/<%yyyy%> <%h%> <%AM/PM%><||><||>65" & _ "536" .Label(exMinute) = "<|><%nn%><|><%h%>:<%nn% <%AM/PM%>><|><%m%>/<%d%>/<%yy%> <%h%>:<%nn%> <%AM/PM%><|><%m%>/<%d%>/<%" & _ "yyyy%> <%h%>:<%nn%> <%AM/PM%>" .Label(exSecond) = "<|><%ss%><|><%nn%>:<%ss%><|><%h%>:<%nn%>:<%ss%> <%AM/PM%><|><%m%>/<%d%>/<%yy%> <%h%>:<%nn%>:<%s" & _ "s%> <%AM/PM%><|><%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>" .LabelToolTip(exYear) = "<%yyyy%>" .LabelToolTip(exHalfYear) = "" .LabelToolTip(exQuarterYear) = "" .LabelToolTip(exMonth) = "<%m%>/<%yyyy%>" .LabelToolTip(exThirdMonth) = "" .LabelToolTip(exWeek) = "<%m%>/<%d%>/<%yyyy%> <%ww%>" .LabelToolTip(exDay) = "<%m%>/<%d%>/<%yyyy%>" .LabelToolTip(exHour) = "<%m%>/<%d%>/<%yyyy%> <%h%> <%AM/PM%>" .LabelToolTip(exMinute) = "<%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%> <%AM/PM%>" .LabelToolTip(exSecond) = "<%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>" .UnitScale = exDay End With .EndUpdate End With |
700. How can I get the caption of focused item
| Visual Basic 6 |
|---|
' SelectionChanged event - Fired after a new item has been selected.
Private Sub Gantt1_SelectionChanged()
With Gantt1
With .Items
Debug.Print("Handle")
Debug.Print(.FocusItem)
Debug.Print("Caption")
Debug.Print(.CellCaption(.FocusItem,0))
End With
End With
End Sub
With Gantt1
.BeginUpdate
.LinesAtRoot = exLinesAtRoot
.Columns.Add "Items"
With .Items
h = .AddItem("R1")
.InsertItem h,0,"Cell 1.1"
.InsertItem h,0,"Cell 1.2"
.ExpandItem(h) = True
h = .AddItem("R2")
.InsertItem h,0,"Cell 2.1"
.InsertItem h,0,"Cell 2.2"
.ExpandItem(h) = True
End With
.EndUpdate
End With
|
699. How can I get the caption of selected item
| Visual Basic 6 |
|---|
' SelectionChanged event - Fired after a new item has been selected.
Private Sub Gantt1_SelectionChanged()
With Gantt1
With .Items
Debug.Print("Handle")
Debug.Print(.SelectedItem(0))
Debug.Print("Caption")
Debug.Print(.CellCaption(.SelectedItem(0),0))
End With
End With
End Sub
With Gantt1
.BeginUpdate
.LinesAtRoot = exLinesAtRoot
.Columns.Add "Items"
With .Items
h = .AddItem("R1")
.InsertItem h,0,"Cell 1.1"
.InsertItem h,0,"Cell 1.2"
.ExpandItem(h) = True
h = .AddItem("R2")
.InsertItem h,0,"Cell 2.1"
.InsertItem h,0,"Cell 2.2"
.ExpandItem(h) = True
End With
.EndUpdate
End With
|
698. How can I highligth the item from the cursor as it moves
| Visual Basic 6 |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Gantt1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
With Gantt1
.BeginUpdate
h = .ItemFromPoint(-1,-1,c,hit)
With .Items
.ClearItemBackColor Gantt1.Background(&H280 Or BackgroundPartEnum.exDateHeader Or BackgroundPartEnum.exCursorHoverColumn Or BackgroundPartEnum.exToolTipAppearance Or BackgroundPartEnum.exVSUp)
.ItemBackColor(h) = RGB(240,250,240)
End With
.Background(&H280 Or BackgroundPartEnum.exDateHeader Or BackgroundPartEnum.exCursorHoverColumn Or BackgroundPartEnum.exToolTipAppearance Or BackgroundPartEnum.exVSUp) = h
.EndUpdate
End With
End Sub
With Gantt1
.BeginUpdate
.LinesAtRoot = exLinesAtRoot
.DrawGridLines = exHLines
.SelBackColor = RGB(240,250,240)
.SelForeColor = RGB(0,0,0)
.ShowFocusRect = False
With .Chart
.SelBackColor = RGB(240,250,240)
End With
.Columns.Add "Items"
With .Items
h = .AddItem("R1")
.InsertItem h,0,"Cell 1.1"
.InsertItem h,0,"Cell 1.2"
.ExpandItem(h) = True
h = .AddItem("R2")
.InsertItem h,0,"Cell 2.1"
.InsertItem h,0,"Cell 2.2"
.ExpandItem(h) = True
End With
.EndUpdate
End With
|
697. How can I get the item from the cursor
| Visual Basic 6 |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Gantt1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
With Gantt1
h = .ItemFromPoint(-1,-1,c,hit)
Debug.Print("Handle")
Debug.Print(h)
Debug.Print("Index")
Debug.Print(.Items.ItemToIndex(h))
End With
End Sub
With Gantt1
.BeginUpdate
.LinesAtRoot = exLinesAtRoot
.DrawGridLines = exHLines
.Columns.Add "Items"
With .Items
h = .AddItem("R1")
.InsertItem h,0,"Cell 1.1"
.InsertItem h,0,"Cell 1.2"
.ExpandItem(h) = True
h = .AddItem("R2")
.InsertItem h,0,"Cell 2.1"
.InsertItem h,0,"Cell 2.2"
.ExpandItem(h) = True
End With
.EndUpdate
End With
|
696. How can I get the column from the cursor, not only in the header
| Visual Basic 6 |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Gantt1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
With Gantt1
Debug.Print(.ColumnFromPoint(-1,0))
End With
End Sub
With Gantt1
.BeginUpdate
.LinesAtRoot = exLinesAtRoot
.Columns.Add "P1"
.Columns.Add "P2"
.DrawGridLines = exAllLines
With .Items
h = .AddItem("R1")
.CellCaption(h,1) = "R2"
.CellCaption(.InsertItem(h,0,"Cell 1.1"),1) = "Cell 1.2"
.CellCaption(.InsertItem(h,0,"Cell 2.1"),1) = "Cell 2.2"
.ExpandItem(h) = True
End With
.EndUpdate
End With
|
695. How can I get the column from the cursor
| Visual Basic 6 |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Gantt1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
With Gantt1
Debug.Print(.ColumnFromPoint(-1,-1))
End With
End Sub
With Gantt1
.BeginUpdate
.LinesAtRoot = exLinesAtRoot
.DrawGridLines = exAllLines
.Columns.Add "P1"
.Columns.Add "P2"
With .Items
h = .AddItem("R1")
.CellCaption(h,1) = "R2"
.CellCaption(.InsertItem(h,0,"Cell 1.1"),1) = "Cell 1.2"
.CellCaption(.InsertItem(h,0,"Cell 2.1"),1) = "Cell 2.2"
.ExpandItem(h) = True
End With
.EndUpdate
End With
|
694. How can I get the cell's caption from the cursor
| Visual Basic 6 |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Gantt1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
With Gantt1
h = .ItemFromPoint(-1,-1,c,hit)
Debug.Print(.Items.CellCaption(h,c))
End With
End Sub
With Gantt1
.BeginUpdate
.LinesAtRoot = exLinesAtRoot
.Columns.Add "Items"
With .Items
h = .AddItem("R1")
.InsertItem h,0,"Cell 1.1"
.InsertItem h,0,"Cell 1.2"
.ExpandItem(h) = True
h = .AddItem("R2")
.InsertItem h,0,"Cell 2.1"
.InsertItem h,0,"Cell 2.2"
.ExpandItem(h) = True
End With
.EndUpdate
End With
|
693. Is it possible to change the style for the vertical or horizontal grid lines, in the list area
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.DrawGridLines = exAllLines
.GridLineStyle = GridLinesStyleEnum.exGridLinesHDot4 Or GridLinesStyleEnum.exGridLinesVSolid
.Columns.Add "C1"
.Columns.Add "C2"
.Columns.Add "C3"
With .Items
h = .AddItem("Item 1")
.CellCaption(h,1) = "SubItem 1.2"
.CellCaption(h,2) = "SubItem 1.3"
h = .AddItem("Item 2")
.CellCaption(h,1) = "SubItem 2.2"
.CellCaption(h,2) = "SubItem 2.3"
End With
.EndUpdate
End With
|
692. How can I show the bars over the grid lines, i.e. so you cannot see the grid lines 'through' the bar
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.DrawGridLines = exAllLines
.GridLineColor = RGB(220,220,220)
With .Chart
.PaneWidth(0) = 48
.FirstVisibleDate = #1/1/2001#
.DrawGridLines = exAllLines
.GridLineStyle = exGridLinesBehind
.LevelCount = 2
With .Level(1)
.DrawGridLines = True
.GridLineColor = RGB(220,220,220)
End With
With .Bars.Item("Task")
.Pattern = exPatternSolid
.Height = 14
End With
End With
.Columns.Add "Column"
With .Items
h = .AddItem("Item 1")
.AddBar h,"Task",#1/2/2001#,#1/5/2001#,"A"
.AddBar h,"Task",#1/8/2001#,#1/15/2001#,"B"
End With
.EndUpdate
End With
|
691. Is it possible to change the style for the vertical grid lines, in the chart area only
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.DrawGridLines = exAllLines
.GridLineStyle = exGridLinesDash
With .Chart
.PaneWidth(0) = 48
.FirstVisibleDate = #1/1/2001#
.DrawGridLines = exAllLines
.GridLineStyle = exGridLinesDash
.LevelCount = 2
.Level(1).DrawGridLines = True
With .Level(0)
.GridLineColor = RGB(255,0,0)
.GridLineStyle = exGridLinesVSolid
End With
.Bars.Item("Task").Pattern = exPatternSolid
End With
.Columns.Add "Column"
With .Items
h = .AddItem("Item 1")
.AddBar h,"Task",#1/2/2001#,#1/5/2001#,"A"
.AddBar h,"Task",#1/8/2001#,#1/15/2001#,"B"
End With
.EndUpdate
End With
|
690. Is it possible to change the style for the grid lines, for instance to be solid not dotted
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.DrawGridLines = exAllLines
.GridLineStyle = exGridLinesSolid
With .Chart
.PaneWidth(0) = 48
.FirstVisibleDate = #1/1/2001#
.DrawGridLines = exAllLines
.GridLineStyle = exGridLinesSolid
.LevelCount = 2
.Level(1).DrawGridLines = True
.Bars.Item("Task").Pattern = exPatternSolid
End With
.Columns.Add "Column"
With .Items
h = .AddItem("Item 1")
.AddBar h,"Task",#1/2/2001#,#1/5/2001#,"A"
.AddBar h,"Task",#1/8/2001#,#1/15/2001#,"B"
End With
.EndUpdate
End With
|
689. How can I show the grid lines for the chart and list area
| Visual Basic 6 |
|---|
With Gantt1
.DrawGridLines = exAllLines
With .Chart
.PaneWidth(0) = 48
.FirstVisibleDate = #1/1/2001#
.DrawGridLines = exAllLines
.LevelCount = 2
.Level(1).DrawGridLines = True
.Bars.Item("Task").Pattern = exPatternSolid
End With
.Columns.Add "Column"
With .Items
h = .AddItem("Item 1")
.AddBar h,"Task",#1/2/2001#,#1/5/2001#,"A"
.AddBar h,"Task",#1/8/2001#,#1/15/2001#,"B"
End With
End With
|
688. How can I get the link from the point
| Visual Basic 6 |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Gantt1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
With Gantt1
Debug.Print(.Chart.LinkFromPoint(-1,-1))
End With
End Sub
With Gantt1
.BeginUpdate
.Columns.Add "Task"
With .Chart
.FirstVisibleDate = #12/29/2000#
.PaneWidth(False) = 64
.LevelCount = 2
End With
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkText) = "L1"
h3 = .AddItem("Task 3")
.AddBar h3,"Task",#1/8/2001#,#1/10/2001#,"K3"
.AddLink "L2",h2,"K2",h3,"K3"
.Link("L2",exLinkText) = "L2"
End With
.EndUpdate
End With
|
687. How can I get the bar from the point
| Visual Basic 6 |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Gantt1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
With Gantt1
Debug.Print(.Chart.BarFromPoint(-1,-1))
End With
End Sub
With Gantt1
.BeginUpdate
.Columns.Add "Task"
With .Chart
.FirstVisibleDate = #12/29/2000#
.PaneWidth(False) = 64
.LevelCount = 2
End With
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/4/2001#,#1/6/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
h3 = .AddItem("Task 3")
.AddBar h3,"Task",#1/8/2001#,#1/10/2001#,"K3"
.AddLink "L2",h2,"K2",h3,"K3"
End With
.EndUpdate
End With
|
686. How can I get the level from the cursor
| Visual Basic 6 |
|---|
' MouseMove event - Occurs when the user moves the mouse. Private Sub Gantt1_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single) With Gantt1 Debug.Print(.Chart.LevelFromPoint(-1,-1)) End With End Sub With Gantt1 With .Chart .FirstVisibleDate = #6/25/2010# .PaneWidth(False) = 0 .LevelCount = 4 End With End With |
685. I display numbers in my chart, but the AddBar requires a date how can I add a bar
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Columns.Add "Tasks"
With .Chart
.PaneWidth(False) = 0
.NonworkingDays = 0
.FirstVisibleDate = 0
.ToolTip = ""
With .Level(0)
.Label = "<%i%>"
.ToolTip = ""
End With
.UnitWidth = 24
End With
With .Items
.AddBar .AddItem("Task 1"),"Task",2,4
.AddBar .AddItem("Task 2"),"Task",6,10
End With
.EndUpdate
End With
|
684. I display numbers in the chart's header but do not want to get displayed negative numbers. How can i do that
| Visual Basic 6 |
|---|
' DateChange event - Occurs when the first visible date is changed. Private Sub Gantt1_DateChange() With Gantt1 .Chart.FirstVisibleDate = 0 .ScrollPartEnable(exHChartScroll,exLeftBPart) = False End With End Sub With Gantt1 .BeginUpdate With .Chart .PaneWidth(False) = 0 .NonworkingDays = 0 .FirstVisibleDate = 0 .ToolTip = "" With .Level(0) .Label = "<%i%>" .ToolTip = "<%i%>" End With .UnitWidth = 24 End With .EndUpdate End With |
683. How can I display numbers in the chart's header instead dates
| Visual Basic 6 |
|---|
With Gantt1 .BeginUpdate With .Chart .PaneWidth(False) = 0 .NonworkingDays = 0 .FirstVisibleDate = 0 .ToolTip = "" With .Level(0) .Label = "<%i%>" .ToolTip = "" End With .UnitWidth = 24 End With .EndUpdate End With |
682. How can I determine that a certain bar is the topmost
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
With .Chart
.PaneWidth(False) = 48
.FirstVisibleDate = #12/27/2000#
End With
With .Items
h = .AddItem("Bars A B")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"A"
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"B"
.ItemBar(h,"B",exBarColor) = 255
h = .AddItem("Bars B A")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"B"
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"A"
.ItemBar(h,"A",exBarColor) = 255
End With
End With
|
681. Is there any automatic way to change a property for all bars in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 2"),"Task",#1/2/2001#,#1/4/2001#,"K2"
.AddBar .AddItem("Task 3"),"Task",#1/2/2001#,#1/4/2001#,"K3"
.AddBar .AddItem("Task 4"),"Task",#1/2/2001#,#1/4/2001#,"K4"
.ItemBar(0,"<ALL>",exBarColor) = 255
End With
End With
|
680. I have an EBN file how can I apply different colors to it, so no need to create a new one
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.SelBackColor = .BackColor
.SelForeColor = .ForeColor
.HasLines = exNoLine
.Columns.Add "Default"
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,0,"Default")
.ItemBackColor(hC) = &H1000000
.ItemHeight(.InsertItem(h,0,"")) = 6
hC = .InsertItem(h,0,"Light Green")
.ItemBackColor(hC) = &H100ff00
.ItemHeight(.InsertItem(h,0,"")) = 6
hC = .InsertItem(h,0,"Dark Green")
.ItemBackColor(hC) = &H1007f00
.ItemHeight(.InsertItem(h,0,"")) = 6
hC = .InsertItem(h,0,"Magenta")
.ItemBackColor(hC) = &H1ff7fff
.ItemHeight(.InsertItem(h,0,"")) = 6
hC = .InsertItem(h,0,"Yellow")
.ItemBackColor(hC) = &H17fffff
.ItemHeight(.InsertItem(h,0,"")) = 6
.ExpandItem(h) = True
End With
End With
|
679. How can I remove all bars from the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 2"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 3"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 4"),"Task",#1/2/2001#,#1/4/2001#,"K2"
.ClearBars 0
End With
End With
|
678. How can I change the color for all bars with a specified key
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 2"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 3"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 4"),"Task",#1/2/2001#,#1/4/2001#,"K2"
.ItemBar(0,"K1",exBarColor) = 255
End With
End With
|
677. Is there any automatic way to change a property for all bars with a specified key
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 2"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 3"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 4"),"Task",#1/2/2001#,#1/4/2001#,"K2"
.ItemBar(0,"K1",exBarColor) = 255
End With
End With
|
676. How can I remove all bars with specified key
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 2"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 3"),"Task",#1/2/2001#,#1/4/2001#,"K1"
.AddBar .AddItem("Task 4"),"Task",#1/2/2001#,#1/4/2001#,"K2"
.RemoveBar 0,"K1"
End With
End With
|
675. Is there any option to show gradient bars without using EBN technology
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Chart.Bars.Item("Task")
.Color = RGB(255,0,0)
.StartColor = RGB(0,255,0)
.EndColor = RGB(255,255,0)
.Pattern = exPatternBox
End With
With .Items
h = .AddItem("Task")
.AddBar h,"Task",#1/2/2001#,#1/5/2001#,""
End With
End With
|
674. How can I disable the control's splitter so the user can't resize the list area
| Visual Basic 6 |
|---|
With Gantt1 .OnResizeControl = OnResizeControlEnum.exResizeChart Or OnResizeControlEnum.exDisableSplitter .Chart.PaneWidth(0) = 60 End With |
673. How can I disable the control's splitter so the user can't resize the chart area
| Visual Basic 6 |
|---|
With Gantt1 .OnResizeControl = exDisableSplitter .Chart.PaneWidth(1) = 60 End With |
672. How can I define a bar that shows two colors, one up and one down, without using skin or EBN files
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Chart.Bars.Add("A")
.Color = RGB(255,0,0)
.Shape = exShapeSolidUp
.Pattern = exPatternSolid
End With
With .Chart.Bars.Add("B")
.Color = RGB(128,0,0)
.Shape = exShapeSolidDown
.Pattern = exPatternSolid
End With
.Chart.Bars.Add("A%B").Shortcut = "AB"
With .Items
h = .AddItem("Task 1")
.AddBar h,"AB",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = "1"
End With
.EndUpdate
End With
|
671. Does your control support RightToLeft property for RTL languages or right to left
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.ScrollBars = exDisableBoth
.LinesAtRoot = exLinesAtRoot
With .Columns.Add("P1")
.Def(exCellHasCheckBox) = True
.PartialCheck = True
End With
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.ExpandItem(h) = True
End With
.RightToLeft = True
.EndUpdate
End With
|
670. Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
| Visual Basic 6 |
|---|
With Gantt1 .BeginUpdate .ScrollBars = exDisableBoth With .Columns .Add "C1" .Add "C2" .Add "C3" .Add "C4" .Add "C5" .Add "C6" .Add "C7" .Add "C8" End With .RightToLeft = True .EndUpdate End With |
669. Can I display the cell's check box after the text
| Visual Basic 6 |
|---|
With Gantt1
With .Columns.Add("Column")
.Def(exCellHasCheckBox) = True
.Def(exCellDrawPartsOrder) = "caption,check"
End With
With .Items
.CellHasCheckBox(.AddItem("Caption 1"),0) = True
.CellHasCheckBox(.AddItem("Caption 2"),0) = True
End With
End With
|
668. Can I change the order of the parts in the cell, as checkbox after the text, and so on
| Visual Basic 6 |
|---|
With Gantt1
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Columns.Add("Column").Def(exCellDrawPartsOrder) = "caption,check,icon,icons,picture"
With .Items
h = .AddItem("Text")
.CellImage(h,0) = 1
.CellHasCheckBox(h,0) = True
End With
End With
|
667. Can I have an image displayed after the text. Can I get that effect without using HTML content
| Visual Basic 6 |
|---|
With Gantt1
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Columns.Add("Column").Def(exCellDrawPartsOrder) = "caption,icon,check,icons,picture"
With .Items
h = .AddItem("Text")
.CellImage(h,0) = 1
End With
End With
|
666. Is there any option to print the columns section on each page
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Columns.Add "Col 1"
.Columns.Add "Col 2"
.MarkSearchColumn = False
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.LevelCount = 2
With .Items
h1 = .AddItem("Col 1")
.CellCaption(h1,1) = "Col 2"
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Col 1")
.CellCaption(h2,1) = "Col 2"
.AddBar h2,"Task",#2/5/2001#,#2/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkStartPos) = 0
End With
.EndUpdate
With CreateObject("Exontrol.Print")
.Options = "ColumnsOnEveryPage=-2"
.PrintExt = Gantt1
.Preview
End With
End With
|
665. Is there any option to print the columns section on each page
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.LevelCount = 2
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#2/5/2001#,#2/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkStartPos) = 0
End With
.EndUpdate
With CreateObject("Exontrol.Print")
.Options = "ColumnsOnEveryPage=1"
.PrintExt = Gantt1
.Preview
End With
End With
|
664. How do I print the control's content
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkStartPos) = 0
End With
.EndUpdate
With CreateObject("Exontrol.Print")
.PrintExt = Gantt1
.Preview
End With
End With
|
663. How can I display the column using currency format and enlarge the font for certain values
| Visual Basic 6 |
|---|
With Gantt1
With .Columns.Add("Currency")
.Def(exCellCaptionFormat) = 1
.FormatColumn = "len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)"
End With
With .Items
.AddItem "1.23"
.AddItem "2.34"
.AddItem "9.94"
.AddItem "11.94"
.AddItem "1000"
End With
End With
|
662. How can I highlight only parts of the cells
| Visual Basic 6 |
|---|
With Gantt1
With .Columns.Add("")
.Def(exCellCaptionFormat) = 1
.FormatColumn = "value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'"
End With
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.InsertItem h,0,"Child 3"
.ExpandItem(h) = True
End With
End With
|
661. How can I get the number of occurrences of a specified string in the cell
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add ""
With .Columns.Add("occurrences")
.ComputedField = "lower(%0) count 'o'"
.FormatColumn = "'contains ' + value + ' of \'o\' chars'"
End With
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1 oooof the root"
.InsertItem h,0,"Child 2"
.InsertItem h,0,"Child 3"
.ExpandItem(h) = True
End With
End With
|
660. How can I display dates in my format
| Visual Basic 6 |
|---|
With Gantt1
With .Columns.Add("Date")
.Def(exCellCaptionFormat) = 1
.FormatColumn = "'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0" & _
") +')'"
End With
With .Items
.AddItem #1/21/2001#
.AddItem #2/22/2002#
.AddItem #3/13/2003#
.AddItem #4/24/2004#
End With
End With
|
659. How can I display dates in short format
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add("Date").FormatColumn = "shortdate(value)"
With .Items
.AddItem #1/1/2001#
.AddItem #2/2/2002#
.AddItem #3/3/2003#
.AddItem #4/4/2004#
End With
End With
|
658. How can I display dates in long format
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add("Date").FormatColumn = "longdate(value)"
With .Items
.AddItem #1/1/2001#
.AddItem #2/2/2002#
.AddItem #3/3/2003#
.AddItem #4/4/2004#
End With
End With
|
657. How can I display only the right part of the cell
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add ""
With .Columns.Add("Right")
.ComputedField = "%0 right 2"
.FormatColumn = "'""' + value + '""'"
End With
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.InsertItem h,0,"SChild 3"
.ExpandItem(h) = True
End With
End With
|
656. How can I display only the left part of the cell
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add ""
.Columns.Add("Left").ComputedField = "%0 left 2"
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.InsertItem h,0,"SChild 3"
.ExpandItem(h) = True
End With
End With
|
655. How can I display true or false instead 0 and -1
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add("Boolean").FormatColumn = "value != 0 ? 'true' : 'false'"
With .Items
.AddItem True
.AddItem False
.AddItem True
.AddItem 0
.AddItem 1
End With
End With
|
654. How can I display icons or images instead numbers
| Visual Basic 6 |
|---|
With Gantt1
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
With .Columns.Add("Icons")
.Def(exCellCaptionFormat) = 1
.FormatColumn = "'The cell displays the icon <img>'+value+'</img> instead ' + value"
End With
With .Items
.AddItem 1
.AddItem 2
.AddItem 3
End With
End With
|
653. How can I display the column using currency
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add("Currency").FormatColumn = "currency(dbl(value))"
With .Items
.AddItem "1.23"
.AddItem "2.34"
.AddItem "0"
.AddItem 5
.AddItem "10000.99"
End With
End With
|
652. How can I display the currency only for not empty cells
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Number"
.Columns.Add("Currency").ComputedField = "len(%0) ? currency(dbl(%0)) : ''"
With .Items
.AddItem "1.23"
.AddItem "2.34"
.AddItem "0"
.ItemBackColor(.AddItem()) = RGB(255,128,128)
.AddItem "10000.99"
End With
End With
|
651. Is there a function to display the number of days between two date including the number of hours
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add("Start").Width = 32
.Columns.Add "End"
.Columns.Add("Duration").ComputedField = "2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor" & _
"(=:0))) ? (len(=:2) ? ' and ' : '') + =:3 + ' hour(s)' : '' )"
With .Items
h = .AddItem(#1/11/2001#)
.CellCaption(h,1) = #1/14/2001#
h = .AddItem(#2/22/2002 0:00:00 PM#)
.CellCaption(h,1) = #3/14/2002 1:00:00 PM#
h = .AddItem(#3/13/2003#)
.CellCaption(h,1) = #4/11/2003 11:00:00 AM#
End With
End With
|
650. Is there a function to display the number of days between two date including the number of hours
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Start"
.Columns.Add "End"
.Columns.Add("Duration").ComputedField = """D "" + int(date(%1)-date(%0)) + "" H "" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%" & _
"0))))"
With .Items
h = .AddItem(#1/11/2001#)
.CellCaption(h,1) = #1/14/2001 11:00:00 PM#
h = .AddItem(#2/22/2002 0:00:00 PM#)
.CellCaption(h,1) = #3/14/2002 1:00:00 PM#
h = .AddItem(#3/13/2003#)
.CellCaption(h,1) = #4/11/2003 11:00:00 AM#
End With
End With
|
649. How can I display the number of days between two dates
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Start"
.Columns.Add "End"
.Columns.Add("Duration").ComputedField = "(date(%1)-date(%0)) + ' days'"
With .Items
h = .AddItem(#1/11/2001#)
.CellCaption(h,1) = #1/14/2001#
h = .AddItem(#2/22/2002#)
.CellCaption(h,1) = #3/14/2002#
h = .AddItem(#3/13/2003#)
.CellCaption(h,1) = #4/11/2003#
End With
End With
|
648. How can I get second part of the date
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Date"
.Columns.Add("Second").ComputedField = "sec(date(%0))"
With .Items
.AddItem #1/11/2001 10:10:00 AM#
.AddItem #2/22/2002 11:01:22 AM#
.AddItem #3/13/2003 0:23:01 PM#
.AddItem #4/14/2004 1:11:59 PM#
End With
End With
|
647. How can I get minute part of the date
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Date"
.Columns.Add("Minute").ComputedField = "min(date(%0))"
With .Items
.AddItem #1/11/2001 10:10:00 AM#
.AddItem #2/22/2002 11:01:00 AM#
.AddItem #3/13/2003 0:23:00 PM#
.AddItem #4/14/2004 1:11:00 PM#
End With
End With
|
646. How can I check the hour part only so I know it was afternoon
| Visual Basic 6 |
|---|
With Gantt1
.ConditionalFormats.Add("hour(%0)>=12").Bold = True
.Columns.Add "Date"
.Columns.Add("Hour").ComputedField = "hour(%0)"
With .Items
.AddItem #1/11/2001 10:00:00 AM#
.AddItem #2/22/2002 11:00:00 AM#
.AddItem #3/13/2003 0:00:00 PM#
.AddItem #4/14/2004 1:00:00 PM#
End With
End With
|
645. What about a function to get the day in the week, or days since Sunday
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Date"
.Columns.Add("WeekDay").ComputedField = "weekday(%0)"
With .Items
.AddItem #1/11/2001 10:00:00 AM#
.AddItem #2/22/2002 11:00:00 AM#
.AddItem #3/13/2003 0:00:00 PM#
.AddItem #4/14/2004 1:00:00 PM#
End With
End With
|
644. Is there any function to get the day of the year or number of days since January 1st
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Date"
.Columns.Add("Day since January 1st").ComputedField = "yearday(%0)"
With .Items
.AddItem #1/11/2001 10:00:00 AM#
.AddItem #2/22/2002 11:00:00 AM#
.AddItem #3/13/2003 0:00:00 PM#
.AddItem #4/14/2004 1:00:00 PM#
End With
End With
|
643. How can I display only the day of the date
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Date"
.Columns.Add("Day").ComputedField = "day(%0)"
With .Items
.AddItem #1/11/2001 10:00:00 AM#
.AddItem #2/22/2002 11:00:00 AM#
.AddItem #3/13/2003 0:00:00 PM#
.AddItem #4/14/2004 1:00:00 PM#
End With
End With
|
642. How can I display only the month of the date
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Date"
.Columns.Add("Month").ComputedField = "month(%0)"
With .Items
.AddItem #1/1/2001 10:00:00 AM#
.AddItem #2/2/2002 11:00:00 AM#
.AddItem #3/3/2003 0:00:00 PM#
.AddItem #4/4/2004 1:00:00 PM#
End With
End With
|
641. How can I get only the year part from a date expression
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Date"
.Columns.Add("Year").ComputedField = "year(%0)"
With .Items
.AddItem #1/1/2001 10:00:00 AM#
.AddItem #2/2/2002 11:00:00 AM#
.AddItem #3/3/2003 0:00:00 PM#
.AddItem #4/4/2004 1:00:00 PM#
End With
End With
|
640. Can I convert the expression to date
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Number"
.Columns.Add("Date").ComputedField = "date(dbl(%0))"
With .Items
.AddItem "-1.98"
.AddItem "30000.99"
.AddItem "3561.23"
.AddItem "1232.34"
End With
End With
|
639. Can I convert the expression to a number, double or float
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Number"
.Columns.Add("Number + 2").ComputedField = "dbl(%0)+2"
With .Items
.AddItem "-1.98"
.AddItem "0.99"
.AddItem "1.23"
.AddItem "2.34"
End With
End With
|
638. How can I display dates in long format
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Date"
.Columns.Add("LongFormat").ComputedField = "longdate(%0)"
With .Items
.AddItem #1/1/2001 10:00:00 AM#
.AddItem #2/2/2002 11:00:00 AM#
.AddItem #3/3/2003 0:00:00 PM#
.AddItem #4/4/2004 1:00:00 PM#
End With
End With
|
637. How can I display dates in short format
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Date"
.Columns.Add("ShortFormat").ComputedField = "shortdate(%0)"
With .Items
.AddItem #1/1/2001 10:00:00 AM#
.AddItem #2/2/2002 11:00:00 AM#
.AddItem #3/3/2003 0:00:00 PM#
.AddItem #4/4/2004 1:00:00 PM#
End With
End With
|
636. How can I display the time only of a date expression
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Date"
.Columns.Add("Time").ComputedField = "'time is:' + time(date(%0))"
With .Items
.AddItem #1/1/2001 10:00:00 AM#
.AddItem #2/2/2002 11:00:00 AM#
.AddItem #3/3/2003 0:00:00 PM#
.AddItem #4/4/2004 1:00:00 PM#
End With
End With
|
635. Is there any function to display currencies, or money formatted as in the control panel
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Number"
.Columns.Add("Currency").ComputedField = "currency(dbl(%0))"
With .Items
.AddItem "1.23"
.AddItem "2.34"
.AddItem "10000.99"
End With
End With
|
634. How can I convert the expression to a string so I can look into the date string expression for month's name
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Number"
.Columns.Add("Str").ComputedField = "str(%0) + ' AA'"
With .Items
.AddItem "-1.98"
.AddItem "0.99"
.AddItem "1.23"
.AddItem "2.34"
End With
End With
|
633. Can I display the absolute value or positive part of the number
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Number"
.Columns.Add("Abs").ComputedField = "abs(%0)"
With .Items
.AddItem "-1.98"
.AddItem "0.99"
.AddItem "1.23"
.AddItem "2.34"
End With
End With
|
632. Is there any function to get largest number with no fraction part that is not greater than the value
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Number"
.Columns.Add("Floor").ComputedField = "floor(%0)"
With .Items
.AddItem "-1.98"
.AddItem "0.99"
.AddItem "1.23"
.AddItem "2.34"
End With
End With
|
631. Is there any function to round the values base on the .5 value
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Number"
.Columns.Add("Round").ComputedField = "round(%0)"
With .Items
.AddItem "-1.98"
.AddItem "0.99"
.AddItem "1.23"
.AddItem "2.34"
End With
End With
|
630. How can I get or display the integer part of the cell
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Number"
.Columns.Add("Int").ComputedField = "int(%0)"
With .Items
.AddItem "-1.98"
.AddItem "0.99"
.AddItem "1.23"
.AddItem "2.34"
End With
End With
|
629. How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add("").ComputedField = "proper(%0)"
With .Items
h = .AddItem("root")
.InsertItem h,0,"child child"
.InsertItem h,0,"child child"
.InsertItem h,0,"child child"
.ExpandItem(h) = True
End With
End With
|
628. Is there any option to display cells in uppercase
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add("").ComputedField = "upper(%0)"
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.InsertItem h,0,"Chld 3"
.ExpandItem(h) = True
End With
End With
|
627. Is there any option to display cells in lowercase
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add("").ComputedField = "lower(%0)"
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.InsertItem h,0,"Chld 3"
.ExpandItem(h) = True
End With
End With
|
626. How can I mark the cells that has a specified type, ie strings only
| Visual Basic 6 |
|---|
With Gantt1
.ConditionalFormats.Add("type(%0) = 8").ForeColor = RGB(255,0,0)
.Columns.Add ""
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,2
.InsertItem h,0,"Chld 3"
.ExpandItem(h) = True
End With
End With
|
625. How can I bold the items that contains data or those who displays empty strings
| Visual Basic 6 |
|---|
With Gantt1
.ConditionalFormats.Add("not len(%1)=0").Bold = True
.Columns.Add "C1"
.Columns.Add "C2"
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
hC = .InsertItem(h,0,"Child 2")
.CellCaption(hC,1) = "1"
.InsertItem h,0,"Child 3"
.ExpandItem(h) = True
End With
End With
|
624. Can I change the background color for items or cells that contains a specified string
| Visual Basic 6 |
|---|
With Gantt1
.ConditionalFormats.Add("%0 contains 'hi'").BackColor = RGB(255,0,0)
.Columns.Add ""
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.InsertItem h,0,"Chld 3"
.ExpandItem(h) = True
End With
End With
|
623. Is there any option to change the fore color for cells or items that ends with a specified string
| Visual Basic 6 |
|---|
With Gantt1
.ConditionalFormats.Add("%0 endwith '22'").ForeColor = RGB(255,0,0)
.Columns.Add ""
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 1.22"
.InsertItem h,0,"Child 2.22"
.ExpandItem(h) = True
End With
End With
|
622. How can I highlight the cells or items that starts with a specified string
| Visual Basic 6 |
|---|
With Gantt1
.ConditionalFormats.Add("%0 startwith 'C'").Underline = True
.Columns.Add ""
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.InsertItem h,0,"SChild 3"
.ExpandItem(h) = True
End With
End With
|
621. How can I change the background color or the visual appearance using ebn for a particular column
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
With .Columns
.Add "Column 1"
.Add("Column 2").Def(exHeaderBackColor) = 16777216
.Add("Column 3").Def(exHeaderBackColor) = 16777471
.Add "Column 4"
End With
End With
|
620. How can I change the background color for a particular column
| Visual Basic 6 |
|---|
With Gantt1
With .Columns
.Add "Column 1"
.Add("Column 2").Def(exHeaderBackColor) = 8439039
.Add "Column 3"
End With
End With
|
619. Is it possible to define level in terms of just increasing numbers (not a Date)
| Visual Basic 6 |
|---|
With Gantt1 With .Chart .PaneWidth(0) = 32 .UnitWidth = 32 .FirstVisibleDate = 1000 .Level(0).Label = "<%i%>" End With End With |
618. How can I hide the non-working units ( days or hours )
| Visual Basic 6 |
|---|
With Gantt1 .BeginUpdate With .Chart .PaneWidth(0) = 0 .LevelCount = 2 With .Level(0) .Label = "<%dddd%>" .Alignment = CenterAlignment End With .Level(1).Label = 65536 .NonworkingHours = 16773375 .ShowNonworkingUnits = False End With .EndUpdate End With |
617. Is there a way to have the display show the word "Noon" instead "12:00 PM" in the chart's header/levels
| Visual Basic 6 |
|---|
With Gantt1
With .Chart
.PaneWidth(False) = 0
.FirstVisibleDate = #1/1/2001 10:00:00 AM#
.LevelCount = 3
With .Level(0)
.Label = "<b><%mmm%> <%d%>, <%yyyy%></b>"
.Alignment = CenterAlignment
.Unit = exDay
End With
With .Level(1)
.Label = "<%h%>:00 <%AM/PM%>"
.Alignment = CenterAlignment
.Unit = exHour
.DrawTickLines = True
.DrawGridLines = True
.ReplaceLabel("12:00 PM") = "<fgcolor=0000FF><b>Noon</b></fgcolor>"
End With
With .Level(2)
.Label = ""
.Unit = exMinute
.Count = 15
End With
End With
End With
|
616. How can I change the selection background color in the chart area
| Visual Basic 6 |
|---|
With Gantt1
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.SelBackColor = RGB(255,0,0)
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Item 1"),"Task",#1/6/2001#,#1/14/2001#
.SelectItem(.FirstVisibleItem) = True
End With
End With
|
615. How can I change the selection background color in the chart area
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.SelBackColor = &H1000000
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Item 1"),"Task",#1/6/2001#,#1/14/2001#
.SelectItem(.FirstVisibleItem) = True
End With
End With
|
614. Is there any way to extend the selection on the chart
| Visual Basic 6 |
|---|
With Gantt1
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.SelBackColor = Gantt1.SelBackColor
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Item 1"),"Task",#1/6/2001#,#1/14/2001#
.SelectItem(.FirstVisibleItem) = True
End With
End With
|
613. How can I display the column's header using multiple lines
| Visual Basic 6 |
|---|
With Gantt1
.HeaderHeight = 128
.HeaderSingleLine = False
.Columns.Add("This is just a column that should break the header.").Width = 32
.Columns.Add "This is just another column that should break the header."
End With
|
612. How can change the width, transparency, style, visual appearance ( EBN), of the vertical bar that shows the current date-time
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
With .Chart
.LevelCount = 2
.Level(0).Label = 1048576
With .Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.MarkNowColor = &H1000000
.MarkNowWidth = 6
.MarkNowTransparent = 50
End With
.Columns.Add "Tasks"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/1/2008#,#1/1/2018#
End With
End With
|
611. How can change the width, style, visual appearance ( EBN), of the vertical bar that shows the current time
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
With .Chart
.LevelCount = 2
.Level(0).Label = 1048576
With .Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.MarkNowColor = &H1000000
.MarkNowWidth = 6
End With
.Columns.Add "Tasks"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/1/2008#,#1/1/2018#
End With
End With
|
610. How can I show a vertical bar that indicates the current time
| Visual Basic 6 |
|---|
With Gantt1
With .Chart
.LevelCount = 2
.Level(0).Label = 1048576
With .Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.MarkNowColor = RGB(0,0,255)
.MarkNowWidth = 7
End With
.Columns.Add "Tasks"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/1/2008#,#1/1/2018#
End With
End With
|
609. How can I show semi-transparent the vertical bar that indicates the current time
| Visual Basic 6 |
|---|
With Gantt1
With .Chart
.LevelCount = 2
.Level(0).Label = 1048576
With .Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.MarkNowColor = RGB(0,0,255)
.MarkNowWidth = 7
.MarkNowTransparent = 50
End With
.Columns.Add "Tasks"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/1/2008#,#1/1/2018#
End With
End With
|
608. Is there any way to highlight or show a vertical bar that indicates the current time, from 15 to 15 seconds
| Visual Basic 6 |
|---|
With Gantt1 .Chart.LevelCount = 2 .Chart.Level(0).Label = 1048576 With .Chart.Level(1) .Label = "<%ss%>" .Count = 15 End With .Chart.MarkNowColor = RGB(0,0,255) .Chart.MarkNowCount = 15 .Chart.MarkNowWidth = 3 End With |
607. Is there any way to highlight or show a vertical bar that indicates the current time, from minute to minute, hour and so on
| Visual Basic 6 |
|---|
With Gantt1 With .Chart .UnitWidth = 48 .LevelCount = 1 .Level(0).Label = 1048576 .MarkNowColor = RGB(255,0,0) .MarkNowUnit = exMinute .MarkNowWidth = .UnitWidth End With End With |
606. Is there any way to highlight or show a vertical bar that indicates the current time
| Visual Basic 6 |
|---|
With Gantt1 .Chart.LevelCount = 2 .Chart.Level(0).Label = 1048576 With .Chart.Level(1) .Label = "<%ss%>" .Count = 15 End With .Chart.MarkNowColor = RGB(255,0,0) End With |
605. Is there a way of making a bar flash on the screen
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Flashy task")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarTransparent) = 80
End With
End With
|
604. How can include the values in the inner cells in the drop down filter window
| Visual Basic 6 |
|---|
With Gantt1
.DrawGridLines = exRowLines
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.Description(exFilterBarBlanks) = ""
.Description(exFilterBarNonBlanks) = ""
With .Columns.Add("Single Column")
.HTMLCaption = "Single column with <b>inner cells</b>"
.ToolTip = "Click the drop down filter button, and the filter list includes the inner cells values too."
.DisplayFilterButton = True
.DisplayFilterPattern = False
.FilterList = exIncludeInnerCells
End With
.ShowFocusRect = False
With .Items
s = .SplitCell(.AddItem("S 1.1"),0)
.CellCaption(0,s) = "S 1.2"
.CellHAlignment(0,s) = CenterAlignment
.CellBackColor(0,s) = &H1000000
.CellWidth(0,s) = 84
s = .SplitCell(.AddItem("S 2.1"),0)
.CellCaption(0,s) = "S 2.2"
.CellHAlignment(0,s) = CenterAlignment
.CellWidth(0,s) = 84
s = .SplitCell(.AddItem("S 3.1"),0)
.CellCaption(0,s) = "S 3.2"
.CellHAlignment(0,s) = CenterAlignment
.CellBackColor(0,s) = &H1000000
.CellWidth(0,s) = 84
End With
End With
|
603. How can I sort the value gets listed in the drop down filter window
| Visual Basic 6 |
|---|
With Gantt1
.LinesAtRoot = exLinesAtRoot
.MarkSearchColumn = False
.Description(exFilterBarAll) = ""
.Description(exFilterBarBlanks) = ""
.Description(exFilterBarNonBlanks) = ""
With .Columns.Add("P1")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.FilterList = exSortItemsDesc
End With
With .Columns.Add("P2")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.FilterList = exSortItemsAsc
End With
With .Items
h = .AddItem("Z3")
.CellCaption(h,1) = "C"
.CellCaption(.InsertItem(h,0,"Z1"),1) = "B"
.CellCaption(.InsertItem(h,0,"Z2"),1) = "A"
.ExpandItem(h) = True
End With
End With
|
602. Is there a way to break the hours into 15 minute increments just showing lines instead of the minute numbers
| Visual Basic 6 |
|---|
With Gantt1 .BeginUpdate .Chart.FirstVisibleDate = #2/5/2008# .Chart.LevelCount = 3 .Chart.Level(0).Label = "<b><%mmm%> <%dd%></b> <%yyyy%> " With .Chart.Level(1) .Label = "<%hh%>" .Alignment = CenterAlignment End With With .Chart.Level(2) .Label = "" .Unit = exMinute .Count = 15 End With .Chart.UnitWidth = 6 .EndUpdate End With |
601. How can I change the visual appearance of the milestone bar using EBN
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"gBFLBCJwBAEHhEJAEGg4BKMMQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiF4aRTHUKAAKQahLEaSZL" & _
"hEZRQiqA4sS5FQBSBDQFwSByEY6mSaYJAWK4tCyNM7SfQAbxnAgYaLAAYRUjuHZOTZAc4UfAdFL/K4AKrfeZIeAiCRQGiYZy" & _
"HKaRShjDwXKLIIjbJhkNoJChCNQgBScPgxCx8JypaCaar2fjQM6zWAMdb2Cz7PjDH7wPA1WYJRaDYjhcB4LheAqGXBWUYLYb" & _
"8XS3EKJYhiWA4HjqFjGJpcEzPbRiNx3H6SABlLLaLo7JpGO52FrTHZjXyzLqBVpoOyEbrmcozYzjN41RpWETfQYDcwteqcLp" & _
"rhGVZrm6dp8j4bAnDQP5Uh+OpcH6R4Lg2YJvEIeg6kWEoJB2ZZyG6GoLCSXxtG+IZ1GmfhJjcawNFWfB/h+V5pnUc5VhWeZ4" & _
"BMX4jlySwtiAJodlEYRaBYFgHHgIA2gGExkFUdxFl6A5hgUbgXgcVRzFiXA3CICARAEgI"
With .Chart
.FirstVisibleDate = #1/1/2001#
With .Bars.Copy("Task","Milestone")
.Color = &H1000000
.Height = 16
End With
End With
.Columns.Add "Tasks"
With .Items
.AddBar .AddItem("Task 1"),"Milestone",#1/2/2001#,#1/3/2001#
End With
End With
|
600. How can I change the visual appearance of the summary bar using EBN
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"gBFLBCJwBAEHhEJAEGg4BGICg6AADACAxRDAMgBQKAAzQFAYZhhBaERiGEaIJhUAIIRZGMQxXAcMQvDSKQJhGDAADEMgyAJ" & _
"CIxjPIgZBoGqPBpASQJUhkMocR7HMygBIkSRNA8kMwxdQEaw9ECRIDpGaYWTFDhsABTVQRLL0Tw9ISERqoSSaGgkCYaA7CNJ" & _
"0PBNJSjJ6LJZGURbKqyCQ1DBbUB3BaUaQ9JaKa7pKa7cpWKIqSxEMrxcLFcT5DSbYDxGjLEhmPZBVZQNBxtJbFQHWJCNgzVA" & _
"dOAAfzQM70GpMQoWJYeVpEObSBD1dABTCBczADYoex7ID+aJuGiYVZdWxJOjfbhkTTIJAaCawABrWxR8iHN5paTnUpzDjwbg" & _
"0kqRRyr+XwjA8Go/HSBp6g6KJTFcGpWmYdg8H6dJTH0EZelueBfBuLwyBMd50nIfR+kmXB4BECQUAaEYMHQHRHCGFRYI2ZAw" & _
"EIExghQZA2EIQoGGoEhOgGBBYlAeYYHMWJcDcGx4HYHoHmICIFjeBohkaDAAC2DAjBYJIIiKSI2CSC5hjQJBsCOCwYiIKoGm" & _
"KWJkn6DANkiWgzCwYwolAcQkksWJaCuDohlicg2hDQR+EELBInKcJohMJBomILoGmISQuESFBOgkOQDg+SoTEyfoXCUSImDy" & _
"GZhjkaI1hcJgTnoXgACYCYKG2GQkEkVJchKIoZDIbIciYKY+HEP4mlmThSg+aBIlKBYUCUKgGHyG4jEkPoKiAKI6D6EokGkS" & _
"gyECF5jEKVJZD+aYqHKG4nGoCh+iKJ4qEqBokh+KYag6JoqmqKo2iWJpqgKRJHDiT5qk6NYtCsapmjiLprHqdo6i8awan6Qo" & _
"vCwOp6kSLQsBsHpGjKbBbBaMYhm0CgalILBtBsUpTiGUIUAQgIA=="
With .Chart
.FirstVisibleDate = #1/1/2001#
With .Bars.Copy("Task","Summary")
.Color = &H1000000
.Height = 16
End With
End With
.Columns.Add "Tasks"
With .Items
.AddBar .AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Task 2"),"Summary",#1/5/2001#,#1/7/2001#
End With
End With
|
599. How can I change the visual appearance of the task bar using EBN
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"gBFLBCJwBAEHhEJAEGg4BGoCg6AADACAxRDAMgBQKAAzQFAYZhhBaERiGEaIJhUAIIRZGMQxXAcMQvDSKQJhGLhQiSJoJDS" & _
"BEgSXDIZQ5D6OZYACDJQACJYJTbAYzyPJkPRAA6EZCmGAwCglf5HABRb7xNLkbQ8GySKJnWCQJhoD5BSLCNRUTRFFQtGgZBp" & _
"EWwLCjQNQwWLKFoTJIEPSBDKqYDoKYqTgOOZOThHQz3HakQRdAa/ZpnaKpUo2d47XjMWBwGA0EzeAAGaxoShqdoiFaGU7UOJ" & _
"VJBOGwHK6BchoMAKbp6XoVWRaOAWLZWVABM7XLZxbLccyGfZ1XhdV5UbqUMznR7PNrjLKIJpCOJbbyAFwgBaeQABYLhK7iHR" & _
"mi8XYwjMWpjFWOx1GIB5LmgdB4HCEBECSIBpDGHQOicIwokYPImikEIJj6eJIloEgogSc40FGcJEFiYZIG2VIoAURw1g2Qxy" & _
"AQNwNAMPJOgIYI4CoDIBmAeAKBIUpQDUKJYDoTpIB4vxgmgdgNgeYZDDoFw7CEJhQn+BohmKfImCWSZRlgYwikYMQ0gwF4Dn" & _
"iTA/gwBJYjQYwsgoIg6AyCRQDiIJODAZBImoOguAmMZ4lQLIJjOMI3CYZJpEIT4KiKSI6DqD5ZGAAgHC2DAjBYR4SGUGYGE+" & _
"GIlCmFhRhIB5iFAbwWsiJgMhoCoxngV4ZCcSYOHaGYnHmIg8COJpoCoOISmSWZeHWHgoEkRoAg4EIYB4NogmiSgKg6GRjGoJ" & _
"gFh+ZJKDaBYjmgaQygiBRUHmbhoDsTAyiqIIoioGoOw8aoKhKKoemeOIaAeF5HmqHoqiyKxKgYaN/locgBiuZRojoVIok8cw" & _
"sjaMBLGqDoAhGIpoEYWYEmAIxUkQLZmgiYg2g2I4JiCQwuAqWIOIkEAQICA=="
With .Chart
.FirstVisibleDate = #1/1/2001#
With .Bars.Item("Task")
.Color = &H1000000
.Height = 16
End With
End With
.Columns.Add "Tasks"
With .Items
.AddBar .AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Task 2"),"Task",#1/5/2001#,#1/7/2001#
End With
End With
|
598. How can I change the visual appearance of the task bar using EBN
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"gBFLBCJwBAEHhEJAEGg4BZsIQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiGoZATCMbDBIcSwSGgCJC" & _
"jeS4ZDKHIXSxFUKTBAcSQTGyBRokaYZRi6A4+TRPETTWAEcABHSbQCoKTKAoCHpLQLMYxDKItJSpGYaRgqWCaZpuUIaUzKVb" & _
"xbK9CSMGiQbIsOJrBqqQozWZHVITLR9VgBNqga7uGR5DoqdovU5dVTVda9Ly5LSsMQvfALCqOe45URdNp3RiVBYfI6+cZvfJ" & _
"LWh4NqeAbCMC1UJoYhlUKCBg0TRoVo9AIDX5QWaYXC0AkBA=="
With .Chart
.FirstVisibleDate = #1/1/2001#
With .Bars.Item("Task")
.Color = &H1000000
.Height = 16
End With
End With
.Columns.Add "Tasks"
With .Items
.AddBar .AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Task 2"),"Task",#1/5/2001#,#1/7/2001#
End With
End With
|
597. How can I clip the HTML text or caption inside the bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Chart.Bars.Item("Task")
.Pattern = exPatternBox
.Height = 13
End With
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1","This is a bit of text that get's clipped"
.ItemBar(h,"K1",exBarHAlignCaption) = 3
End With
End With
|
596. How can I align the text/caption on the scroll bar
| Visual Basic 6 |
|---|
With Gantt1 .ScrollPartCaption(exHScroll,exLowerBackPart) = "left" .ScrollPartCaptionAlignment(exHScroll,exLowerBackPart) = LeftAlignment .ScrollPartCaption(exHScroll,exUpperBackPart) = "right" .ScrollPartCaptionAlignment(exHScroll,exUpperBackPart) = RightAlignment .ColumnAutoResize = False .Columns.Add 1 .Columns.Add 2 .Columns.Add 3 .Columns.Add 4 End With |
595. How do I programmatically control the position of the horizontal scroll bar in the chart area, so I can specify a range of dates to scorll within
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Columns.Add "Task"
With .Chart
.LevelCount = 2
.PaneWidth(0) = 56
.ScrollRange(exStartDate) = #1/1/2001#
.ScrollRange(exEndDate) = #1/31/2001#
.FirstVisibleDate = #1/12/2001#
End With
.ScrollPartCaption(exHChartScroll,exLowerBackPart) = .Chart.ScrollRange(exStartDate)
.ScrollPartCaptionAlignment(exHChartScroll,exLowerBackPart) = LeftAlignment
.ScrollPartCaption(exHChartScroll,exUpperBackPart) = .Chart.ScrollRange(exEndDate)
.ScrollPartCaptionAlignment(exHChartScroll,exUpperBackPart) = RightAlignment
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/15/2001#,#1/18/2001#,"K1"
h = .AddItem("Task 1")
.AddBar h,"Task",#1/5/2001#,#1/11/2001#,"K1"
End With
.EndUpdate
End With
|
594. How can I programmatically control the position of the "splitter" between the item list on the left side and the gantt chart on the right
| Visual Basic 6 |
|---|
With Gantt1 .Chart.PaneWidth(True) = 196 End With |
593. How can I add a milestone bar and some text in the chart area
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Milestone",#1/2/2001#,#1/2/2001#,0,"<a1>text</a> outside"
.ItemBar(h,0,exBarHAlignCaption) = 18
End With
End With
|
592. How can I display or align the bar's caption or text outside of the bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.DefaultItemHeight = 32
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/3/2001#,#1/5/2001#,"K1"
.ItemBar(h,"K1",exBarCaption) = "<b>to do</b>"
.ItemBar(h,"K1",exBarHAlignCaption) = 18
.ItemBar(h,"K1",exBarVAlignCaption) = 16
End With
End With
|
591. How can I display or align the bar's caption or text outside of the bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/4/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarCaption) = "to do"
.ItemBar(h,"K1",exBarHAlignCaption) = 16
End With
End With
|
590. How can I display or align the bar's caption or text outside of the bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarCaption) = "to do "
.ItemBar(h,"K1",exBarHAlignCaption) = 18
End With
End With
|
589. Is there any option to count the non-working days
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.FirstVisibleDate = #1/1/2002#
.Columns.Add "Task"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2002#,#1/4/2002#,"A"
var_ItemBar = .ItemBar(h,"A",exBarNonWorkingCount)
End With
.EndUpdate
End With
|
588. Is there any option to count or to specify the working days
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.FirstVisibleDate = #1/1/2002#
.Columns.Add "Task"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2002#,#1/4/2002#,"A"
var_ItemBar = .ItemBar(h,"A",exBarWorkingCount)
End With
.EndUpdate
End With
|
587. How do I select the next row/item
| Visual Basic 6 |
|---|
With Gantt1 .Columns.Add "Column" With .Items .AddItem "Item 1" .AddItem "Item 2" .AddItem "Item 3" .SelectItem(.NextVisibleItem(.FocusItem)) = True End With End With |
586. How do I define the visual appearance of the bar by using your EBN/skin files
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.Chart.Bars.Copy("Task","EBN").Color = &H1000000
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"EBN",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Item 2"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
585. Is it possible to have an "empty box" pattern for the bars
| Visual Basic 6 |
|---|
With Gantt1
.Chart.Bars.Copy("Task","Box").Pattern = exPatternBox
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Box",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
584. How do I enable resizing ( changing the height ) the items at runtime
| Visual Basic 6 |
|---|
With Gantt1
.ItemsAllowSizing = exResizeItem
.DrawGridLines = exHLines
.ScrollBySingleLine = True
.Columns.Add "Column"
.Items.AddItem "Item 1"
With .Items
.ItemHeight(.AddItem("Item 2")) = 48
End With
.Items.AddItem "Item 3"
End With
|
583. How do I enable resizing all the items at runtime
| Visual Basic 6 |
|---|
With Gantt1
.ItemsAllowSizing = exResizeAllItems
.DrawGridLines = exHLines
.Columns.Add "Column"
.Items.AddItem "Item 1"
With .Items
.ItemHeight(.AddItem("Item 2")) = 48
End With
.Items.AddItem "Item 3"
End With
|
582. I'm trying to use the percentage display in my gantt's bars. Unfortunately, I don't see any percentage on the gantt chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Copy("Task","BarName").Color = RGB(0,0,0)
.Chart.Bars.Add("BarName%Progress").Shortcut = "Percent"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Percent",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".4"
.ItemBar(h,"K1",exBarShowPercentCaption) = True
End With
End With
|
581. How I can show Months in Time Unit panel into Roman numerals
| Visual Basic 6 |
|---|
With Gantt1 .Chart.LevelCount = 2 .Chart.Level(0).Label = 0 With .Chart.Level(1) .Label = "<%mr%>" .Unit = exMonth End With End With |
580. Can I show a bar with a different vertical position
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Opaque")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
h = .AddItem("Transparent and Opaque")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarOffset) = "-3"
.ItemBar(h,"K1",exBarTransparent) = 80
.AddBar h,"Task",#1/3/2001#,#1/7/2001#,"K2"
End With
End With
|
579. How can I show transparent and opaque bars in the same chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Opaque")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
h = .AddItem("Transparent and Opaque")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarOffset) = "-3"
.ItemBar(h,"K1",exBarTransparent) = 80
.AddBar h,"Task",#1/3/2001#,#1/7/2001#,"K2"
End With
End With
|
578. How can I draw bars using transparent colors
| Visual Basic 6 |
|---|
With Gantt1
.Chart.ShowTransparentBars = 60
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Copy("Task","TaskR").Color = RGB(255,0,0)
.Chart.PaneWidth(0) = 48
.Columns.Add "Column"
With .Items
h = .AddItem("Item 1")
.AddBar h,"Task",#1/2/2001#,#1/5/2001#,"A"
.AddBar h,"TaskR",#1/4/2001#,#1/7/2001#,"B"
End With
End With
|
577. Can I change the Task bar so it display a Progress or a Percent bar, but it is splitted when the task intersect a non working area
| Visual Basic 6 |
|---|
With Gantt1
With .Chart
.FirstVisibleDate = #1/1/2001#
.Bars.Add("Task%Progress:Split").Shortcut = "Task"
End With
.Columns.Add "Column"
With .Items
h = .AddItem("Item 1")
.AddBar h,"Task",#1/2/2001#,#1/16/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".15"
.ItemBar(h,"K1",exBarShowPercentCaption) = True
End With
End With
|
576. Can I change the Task bar so it display a Progress or a Percent bar
| Visual Basic 6 |
|---|
With Gantt1
With .Chart
.FirstVisibleDate = #1/1/2001#
.Bars.Add("Task%Progress").Shortcut = "Task"
End With
.Columns.Add "Column"
With .Items
h = .AddItem("Item 1")
.AddBar h,"Task",#1/2/2001#,#1/5/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".15"
.ItemBar(h,"K1",exBarShowPercentCaption) = True
End With
End With
|
575. How can I remove the filter
| Visual Basic 6 |
|---|
With Gantt1
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exBlanks
End With
.ApplyFilter
.ClearFilter
End With
|
574. I use the ShowEmptyBars property, but I display seconds from 15 to 15, and the bars are not shown correctly. What can I do
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
With .Chart
.FirstVisibleDate = #1/1/2002#
.LevelCount = 2
.Level(0).Label = 1048576
With .Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.ShowEmptyBars = 15
.ShowEmptyBarsUnit = exSecond
.PaneWidth(0) = 48
End With
.Columns.Add "Task"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/1/2002 0:00:15 AM#,#1/1/2002 0:00:15 AM#,"A"
.AddBar h,"Task",#1/1/2002 0:01:15 AM#,#1/1/2002 0:01:30 AM#,"B"
.AddLink "AB",h,"A",h,"B"
End With
.EndUpdate
End With
|
573. I need the bar works like in the MS Project, where task from 1/1/2001 to 1/1/2001 must display 1 day
| Visual Basic 6 |
|---|
With Gantt1
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.ShowEmptyBars = 1
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/1/2001#,#1/1/2001#
End With
End With
|
572. I have a bar that has the start and end date identical. Nothing is displayed. What can I do
| Visual Basic 6 |
|---|
With Gantt1
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.ShowEmptyBars = 1
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/2/2001#
End With
End With
|
571. How can I display seconds and bars for 15 to 15
| Visual Basic 6 |
|---|
With Gantt1
.BeginUpdate
.Chart.FirstVisibleDate = "1/1/2002 00:00"
.Chart.LevelCount = 2
.Chart.Level(0).Label = 1048576
With .Chart.Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.Chart.PaneWidth(0) = 48
.Chart.Bars.Copy("Task","Task2").Color = RGB(255,0,0)
.Columns.Add "Task"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task","1/1/2002 00:00:15","1/1/2002 00:00:45","A"
.AddBar h,"Task2","1/1/2002 00:01:15","1/1/2002 00:01:45","B"
.AddLink "AB",h,"A",h,"B"
End With
.EndUpdate
End With
|
570. How can I copy a predefined bar
| Visual Basic 6 |
|---|
With Gantt1
.Chart.Bars.Copy("Task","T2").Color = RGB(255,0,0)
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"T2",#1/2/2001#,#1/4/2001#
End With
End With
|
569. How can I define my own custom bar, using my icons or pictures
| Visual Basic 6 |
|---|
With Gantt1
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
With .Chart.Bars
.AddShapeCorner 12345,1
.AddShapeCorner 22345,2
With .Add("T2")
.StartShape = &H5740 Or ShapeCornerEnum.exShapeIconUp1 Or ShapeCornerEnum.exShapeIconRight
.EndShape = &H3020 Or ShapeCornerEnum.exShapeIconUp1 Or ShapeCornerEnum.exShapeIconRight Or ShapeCornerEnum.exShapeIconDown4
.EndColor = RGB(255,0,0)
.Pattern = exPatternDot
.Color = RGB(255,0,255)
.Shape = exShapeThinCenter
End With
End With
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"T2",#1/2/2001#,#1/4/2001#
End With
End With
|
568. How can I access a predefined bar
| Visual Basic 6 |
|---|
With Gantt1
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
.Chart.Bars.Item("Task").Color = RGB(255,0,0)
End With
|
567. How can I access a predefined bar
| Visual Basic 6 |
|---|
With Gantt1
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
.Chart.Bars.Item("Task").Color = RGB(255,0,0)
End With
|
566. How can I remove all predefined bars
| Visual Basic 6 |
|---|
With Gantt1
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
565. How can I remove a predefined bar
| Visual Basic 6 |
|---|
With Gantt1
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
564. How do I get the number of predefined bars
| Visual Basic 6 |
|---|
With Gantt1 .Columns.Add Gantt1.Chart.Bars.Count End With |
563. How can I change the height of the task bar
| Visual Basic 6 |
|---|
With Gantt1
With .Chart.Bars.Copy("Task","T2")
.EndShape = exShapeIconDown1
.EndColor = RGB(255,0,0)
End With
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"T2",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Item 2"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
562. How can I change the ending shape for all task bars
| Visual Basic 6 |
|---|
With Gantt1
With .Chart.Bars.Item("Task")
.EndShape = exShapeIconUp1
.EndColor = RGB(255,0,0)
End With
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
561. How can I change the height of the task bar
| Visual Basic 6 |
|---|
With Gantt1
With .Chart.Bars.Copy("Task","T2")
.StartShape = exShapeIconDown1
.StartColor = RGB(255,0,0)
End With
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"T2",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Item 2"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
560. How can I change the starting shape for all task bars
| Visual Basic 6 |
|---|
With Gantt1
With .Chart.Bars.Item("Task")
.StartShape = exShapeIconUp1
.StartColor = RGB(255,0,0)
End With
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
559. How can I change the height of the task bar
| Visual Basic 6 |
|---|
With Gantt1
.Chart.Bars.Copy("Task","T2").Height = 17
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"T2",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Item 2"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
558. How can I change the height for all task bars
| Visual Basic 6 |
|---|
With Gantt1
.Chart.Bars.Item("Task").Height = 17
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
557. How can I change the color of the task bar
| Visual Basic 6 |
|---|
With Gantt1
.Chart.Bars.Copy("Task","T2").Color = RGB(255,0,0)
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"T2",#1/2/2001#,#1/4/2001#
.AddBar .AddItem("Item 2"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
556. How can I change the color for all task bars
| Visual Basic 6 |
|---|
With Gantt1
.Chart.Bars.Item("Task").Color = RGB(255,0,0)
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
555. How can I change the shape for all task bars
| Visual Basic 6 |
|---|
With Gantt1
.Chart.Bars.Item("Task").Shape = exShapeSolidDown
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
554. How can I change the shape of the task bar
| Visual Basic 6 |
|---|
With Gantt1
.Chart.Bars.Copy("Task","T2").Shape = exShapeThinCenter
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"T2",#1/2/2001#,#1/4/2001#
End With
End With
|
553. How can I change the pattern or style for all task bars
| Visual Basic 6 |
|---|
With Gantt1
.Chart.Bars.Item("Task").Pattern = exPatternFDiagonal
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
552. How can I change the pattern of the task bar
| Visual Basic 6 |
|---|
With Gantt1
.Chart.Bars.Copy("Task","T2").Pattern = exPatternFDiagonal
.Chart.FirstVisibleDate = #1/1/2001#
.Columns.Add "Column"
With .Items
.AddBar .AddItem("Item 1"),"T2",#1/2/2001#,#1/4/2001#
End With
End With
|
551. How can I add a percent bar in the chart area, so the task bar is splited for non working days or hours
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.Bars.Add("Task%Progress:Split").Shortcut = "TS"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"TS",#1/2/2001#,#1/16/2001#,"P1"
.ItemBar(h,"P1",exBarPercent) = ".14"
.ItemBar(h,"P1",exBarShowPercentCaption) = True
End With
End With
|
550. How can I add a bar in the chart area, so the task bar is splited for non working days or hours
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.Bars.Add("Task:Split").Shortcut = "TS"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"TS",#1/2/2001#,#1/16/2001#
End With
End With
|
549. How can I add a split bar in the chart area
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Split",#1/2/2001#,#1/6/2001#
End With
End With
|
548. How can I add a progress bar in the chart area
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Progress",#1/2/2001#,#1/6/2001#
End With
End With
|
547. How can I add a milestone bar in the chart area
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Milestone",#1/2/2001#,#1/2/2001#
End With
End With
|
546. How can I add a summary bar in the chart area
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Summary",#1/2/2001#,#1/6/2001#
End With
End With
|
545. How can I add a project summary bar in the chart area
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Project Summary",#1/2/2001#,#1/6/2001#
End With
End With
|
544. How can I add a deadline bar in the chart area
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Deadline",#1/2/2001#,#1/2/2001#
End With
End With
|
543. How can I add a task bar in the chart area
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
.AddBar .AddItem("Task 1"),"Task",#1/2/2001#,#1/4/2001#
End With
End With
|
542. How can I assign a picture or an icon to a bar in the chart
| Visual Basic 6 |
|---|
With Gantt1
.HTMLPicture("p1") = "c:\exontrol\images\zipdisk.gif"
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.ItemHeight(h) = 48
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarCaption) = "<img>p1</img>"
.ItemBar(h,"K1",exBarHAlignCaption) = 2
End With
End With
|
541. How can I assign a picture or an icon to a bar in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarCaption) = "<img>1</img>"
End With
End With
|
540. How can I display or add an anchor or a hyperlink in the link
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/1/2001#,#1/3/2001#,"K1"
.AddItem ""
.AddItem ""
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkText) = "just <a1>link</a>"
End With
End With
|
539. How can I display a picture or an icon on the link
| Visual Basic 6 |
|---|
With Gantt1
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/1/2001#,#1/3/2001#,"K1"
.AddItem ""
.AddItem ""
.AddItem ""
.AddItem ""
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkText) = "just <img>1</img> link"
End With
End With
|
538. How can I display a picture or an icon on the link
| Visual Basic 6 |
|---|
With Gantt1
.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/1/2001#,#1/3/2001#,"K1"
.AddItem ""
.AddItem ""
.AddItem ""
.AddItem ""
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkText) = "<img>pic1</img><br><br>just a link"
End With
End With
|
537. How can I display some HTML text or caption on link
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/1/2001#,#1/3/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkText) = "L<b>1</b>"
End With
End With
|
536. How can I assign a tooltip to a link
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/1/2001#,#1/3/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkText) = "L<b>1</b>"
.Link("L1",exLinkToolTip) = "This is a bit of text that's shown when the cursor hovers the link"
End With
End With
|
535. Can I change the width or the size of the link
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkStyle) = 0
.Link("L1",exLinkWidth) = 2
End With
End With
|
534. Can I change the style of the link
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkStyle) = 4
End With
End With
|
533. Can I change the color of the link
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkColor) = 255
End With
End With
|
532. Can I change the part of the bar where the link ends
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkStartPos) = 1
.Link("L1",exLinkEndPos) = 1
End With
End With
|
531. Can I change the part of the bar where the link starts
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkStartPos) = 0
End With
End With
|
530. How can I associate an extra data to a link
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkUserData) = "your data"
End With
End With
|
529. How can I show or hide a specified link
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkEndBar) = False
End With
End With
|
528. How can I get the key of the bar where the link end
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.AddItem .Link("L1",exLinkEndBar)
End With
End With
|
527. How can I get the key of the bar where the link starts
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.AddItem .Link("L1",exLinkStartBar)
End With
End With
|
526. How can I get the handle of the item where the link ends
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.AddItem .Link("L1",exLinkEndItem)
End With
End With
|
525. How can I get the handle of the item where the link starts
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.AddItem .Link("L1",exLinkStartItem)
End With
End With
|
524. How can I enumerate the links in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.AddLink "L2",h2,"K2",h1,"K1"
.AddItem .FirstLink
.AddItem .NextLink(.FirstLink)
End With
End With
|
523. How can I access the properties and method of the link between two bars
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/1/2001#,#1/3/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.Link("L1",exLinkText) = "L<b>1</b>"
End With
End With
|
522. How can I remove a link between two bars
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.ClearLinks
End With
End With
|
521. How can I remove a link between two bars
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
.RemoveLink "L1"
End With
End With
|
520. How do I add a link between two bars
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
.AddLink "L1",h1,"K1",h2,"K2"
End With
End With
|
519. How do I ungroup the bars in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
End With
End With
|
518. How do I group one or more bars in the chart, so they are moved together
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h1 = .AddItem("Task 1")
.AddBar h1,"Task",#1/2/2001#,#1/4/2001#,"K1"
h2 = .AddItem("Task 2")
.AddBar h2,"Task",#1/5/2001#,#1/7/2001#,"K2"
End With
End With
|
517. How do I find the number or count of bars in the item
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/1/2001#,#1/2/2001#,"K1"
.AddBar h,"Task",#1/4/2001#,#1/6/2001#,"K2"
.ItemBar(h,"K2",exBarCaption) = .ItemBar(h,0,exBarsCount)
End With
End With
|
516. How can I assign any extra data to a bar in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",ItemBarPropertyEnum.exBarStart Or ItemBarPropertyEnum.exBarTransparent) = "your data"
End With
End With
|
515. Is there any way to change the background color for percent value being displayed on the progress bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Add("Task%Progress").Shortcut = "Percent"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Percent",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".35"
.ItemBar(h,"K1",exBarShowPercentCaption) = True
.ItemBar(h,"K1",exBarPercentCaptionFormat) = "<bgcolor=FF0000> %p%</bgcolor>"
End With
End With
|
514. Is there any way to change the color for percent value being displayed on the progress bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Add("Task%Progress").Shortcut = "Percent"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Percent",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".35"
.ItemBar(h,"K1",exBarShowPercentCaption) = True
.ItemBar(h,"K1",exBarPercentCaptionFormat) = "<fgcolor=FF0000>%p%</fgcolor>"
End With
End With
|
513. Is there any way to change the font for percent value being displayed on the progress bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Add("Task%Progress").Shortcut = "Percent"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Percent",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".35"
.ItemBar(h,"K1",exBarShowPercentCaption) = True
.ItemBar(h,"K1",exBarPercentCaptionFormat) = "<b><font Tahoma;12>%%p</font></b>"
End With
End With
|
512. Is there any way to align the percent value being displayed on the progress bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Add("Task%Progress").Shortcut = "Percent"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Percent",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".75"
.ItemBar(h,"K1",exBarShowPercentCaption) = True
.ItemBar(h,"K1",exBarPercentCaptionFormat) = "%p/100"
.ItemBar(h,"K1",exBarOffset) = 0
End With
End With
|
511. Is there any way to change the format of the percent being displayed on the progress bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Add("Task%Progress").Shortcut = "Percent"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Percent",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".4"
.ItemBar(h,"K1",exBarShowPercentCaption) = True
.ItemBar(h,"K1",exBarPercentCaptionFormat) = "<b>%p/100</b>"
End With
End With
|
510. How can I show or hide the percent value in the progress bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Add("Task%Progress").Shortcut = "Percent"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Percent",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".4"
.ItemBar(h,"K1",exBarShowPercentCaption) = True
End With
End With
|
509. How can I change the percent value in a progress bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Add("Task%Progress").Shortcut = "Percent"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Percent",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".4"
End With
End With
|
508. How can I add a percent bar
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Add "Task%Progress"
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task%Progress",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarPercent) = ".4"
End With
End With
|
507. How can I change the key of the bar in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"NewK",exBarCaption) = .ItemBar(h,"NewK",exBarKey)
End With
End With
|
506. Can I add a bar in the chart, using your EBN files
| Visual Basic 6 |
|---|
With Gantt1
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"",#1/2/2001#,#1/5/2001#,"K1"," EBN "
.ItemBar(h,"K1",exBarBackColor) = 16777216
.AddBar h,"Task",#1/6/2001#,#1/8/2001#,"K2"
End With
End With
|
505. How can I change the background color of the bar in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Copy("Task","TaskR").Color = RGB(255,0,0)
With .Items
h = .AddItem("Task 1")
.AddBar h,"TaskR",#1/2/2001#,#1/6/2001#,"K1"
End With
End With
|
504. How can I change the background color of the bar in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarBackColor) = 8421504
End With
End With
|
503. How can I change the background color of the HTML text or caption of the bar in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarCaption) = "<bgcolor=FF0000> to do </bgcolor>"
End With
End With
|
502. How can I change the foreground color of the HTML text or caption of the bar in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1","t<fgcolor=0000FF>o</fgcolor> do"
.ItemBar(h,"K1",exBarForeColor) = 16777215
End With
End With
|
501. How can I change the foreground color of the HTML text or caption of the bar in the chart
| Visual Basic 6 |
|---|
With Gantt1
.Columns.Add "Task"
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar h,"Task",#1/2/2001#,#1/6/2001#,"K1"
.ItemBar(h,"K1",exBarCaption) = "<bgcolor=FF0000> to do </bgcolor>"
.ItemBar(h,"K1",exBarForeColor) = 16777215
End With
End With
|