732. I haven't found options to localize (in Italian) the strings ( dates, tooltip ) that shows in the chart area
| VB.NET |
|---|
With Exgantt1 .BeginUpdate() With .Chart .LevelCount = 2 .set_PaneWidth(False,0) .set_Label(exontrol.EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256") .set_Label(exontrol.EXGANTTLib.UnitEnum.exDay,"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> " & _ "<%yyyy%><||><||>4096") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exWeek,"<%d%> <%mmmm%> <%yyyy%> <%ww%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exDay,"<%dddd%> <%d%> <%mmmm%> <%yyyy%>") .FirstWeekDay = exontrol.EXGANTTLib.WeekDayEnum.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 = exontrol.EXGANTTLib.UnitEnum.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
| VB.NET |
|---|
With Exgantt1 .BeginUpdate() With .Chart .LevelCount = 2 .set_PaneWidth(False,0) .set_Label(exontrol.EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256") .set_Label(exontrol.EXGANTTLib.UnitEnum.exDay,"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> " & _ "<%yyyy%><||><||>4096") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exWeek,"<%d%> <%mmmm%> <%yyyy%> <%ww%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exDay,"<%dddd%> <%d%> <%mmmm%> <%yyyy%>") .FirstWeekDay = exontrol.EXGANTTLib.WeekDayEnum.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 = exontrol.EXGANTTLib.UnitEnum.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
| VB.NET |
|---|
With Exgantt1 .BeginUpdate() With .Chart .LevelCount = 2 .set_PaneWidth(False,0) .set_Label(exontrol.EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%>.<%mmmm%> <%yyyy%><r><%ww%><||><||>256") .set_Label(exontrol.EXGANTTLib.UnitEnum.exDay,"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%>.<%m3%> '<%yy%><|><%dddd%> <%d%>.<%mmmm%> " & _ "<%yyyy%><||><||>4096") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exWeek,"<%d%>.<%mmmm%> <%yyyy%> <%ww%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exDay,"<%dddd%>, <%d%>.<%mmmm%> <%yyyy%>") .FirstWeekDay = exontrol.EXGANTTLib.WeekDayEnum.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 = exontrol.EXGANTTLib.UnitEnum.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
| VB.NET |
|---|
With Exgantt1 .BeginUpdate() With .Chart .LevelCount = 2 .set_PaneWidth(False,0) .set_Label(exontrol.EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256") .set_Label(exontrol.EXGANTTLib.UnitEnum.exDay,"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> " & _ "<%yyyy%><||><||>4096") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exWeek,"<%d%> <%mmmm%> <%yyyy%> <%ww%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exDay,"<%dddd%> <%d%> <%mmmm%> <%yyyy%>") .FirstWeekDay = exontrol.EXGANTTLib.WeekDayEnum.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 = exontrol.EXGANTTLib.UnitEnum.exDay End With .EndUpdate() End With |
728. How can I filter programatically using more columns
| VB.NET |
|---|
With Exgantt1
.BeginUpdate()
.Chart.set_PaneWidth(True,0)
With .Columns
.Add("Car")
.Add("Equipment")
End With
With .Items
.set_CellCaption(.AddItem("Mazda"),1,"Air Bag")
.set_CellCaption(.AddItem("Toyota"),1,"Air Bag,Air condition")
.set_CellCaption(.AddItem("Ford"),1,"Air condition")
.set_CellCaption(.AddItem("Nissan"),1,"Air Bag,ABS,ESP")
.set_CellCaption(.AddItem("Mazda"),1,"Air Bag, ABS,ESP")
.set_CellCaption(.AddItem("Mazda"),1,"ABS,ESP")
End With
With .Columns.Item("Car")
.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exFilter
.Filter = "Mazda"
End With
With .Columns.Item("Equipment")
.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.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 )
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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)
| VB.NET |
|---|
With Exgantt1
.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)
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
Dim h
With Exgantt1
.BeginUpdate()
.Columns.Add("")
With .Items
h = .AddItem("")
.set_CellCaption(h,0,.VisibleItemCount)
End With
.EndUpdate()
End With
|
721. How can I change the filter caption
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.Chart.set_PaneWidth(True,0)
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = &H2000 Or exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAll Or exontrol.EXGANTTLib.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")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
End With
.EndUpdate()
End With
|
720. While using the filter prompt is it is possible to use wild characters
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.Chart.set_PaneWidth(True,0)
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptPattern
.FilterBarPromptPattern = "lon* seat*"
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_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
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.Chart.set_PaneWidth(True,0)
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAny Or exontrol.EXGANTTLib.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")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
End With
.EndUpdate()
End With
|
718. How can I list all items that contains any of specified words, not strings
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.ColumnAutoResize = True
.ContinueColumnScroll = False
.Chart.set_PaneWidth(True,0)
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = &H2000 Or exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAny Or exontrol.EXGANTTLib.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")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
End With
.EndUpdate()
End With
|
717. How can I list all items that contains all specified words, not strings
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.Chart.set_PaneWidth(True,0)
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = &H2000 Or exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAll Or exontrol.EXGANTTLib.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")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_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
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAny Or exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptCaseSensitive
.FilterBarPromptPattern = "Anne"
.Chart.set_PaneWidth(True,0)
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
End With
.EndUpdate()
End With
|
715. Is it possible to list only items that ends with any of specified strings
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptEndWith
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "Fuller"
.Chart.set_PaneWidth(True,0)
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
End With
.EndUpdate()
End With
|
714. Is it possible to list only items that ends with any of specified strings
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptEndWith
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "Fuller"
.Chart.set_PaneWidth(True,0)
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
End With
.EndUpdate()
End With
|
713. Is it possible to list only items that starts with any of specified strings
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptStartWith
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "An M"
.Chart.set_PaneWidth(True,0)
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
End With
.EndUpdate()
End With
|
712. Is it possible to list only items that starts with specified string
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptStartWith
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "A"
.Chart.set_PaneWidth(True,0)
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_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
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAny
.FilterBarPromptPattern = "london seattle"
.Chart.set_PaneWidth(True,0)
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_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
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.Chart.set_PaneWidth(True,0)
.ColumnAutoResize = True
.ContinueColumnScroll = False
.MarkSearchColumn = False
.SearchColumnIndex = 1
.FilterBarPromptVisible = True
.FilterBarPromptType = exontrol.EXGANTTLib.FilterPromptEnum.exFilterPromptContainsAll
.FilterBarPromptPattern = "london manager"
With .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
End With
With .Items
h0 = .AddItem("Nancy Davolio")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
End With
.EndUpdate()
End With
|
709. How do I change at runtime the filter prompt
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.ColumnAutoResize = True
.ContinueColumnScroll = False
.Chart.set_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")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_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
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.ColumnAutoResize = True
.ContinueColumnScroll = False
.Chart.set_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")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_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
| VB.NET |
|---|
With Exgantt1
.BeginUpdate()
.Chart.set_PaneWidth(True,0)
.ColumnAutoResize = True
.ContinueColumnScroll = False
.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
| VB.NET |
|---|
Dim h0
With Exgantt1
.BeginUpdate()
.Chart.set_PaneWidth(True,0)
.ColumnAutoResize = True
.ContinueColumnScroll = False
.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")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Andrew Fuller")
.set_CellCaption(h0,1,"Vice President, Sales")
.set_CellCaption(h0,2,"Tacoma")
.set_SelectItem(h0,True)
h0 = .AddItem("Janet Leverling")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Kirkland")
h0 = .AddItem("Margaret Peacock")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"Redmond")
h0 = .AddItem("Steven Buchanan")
.set_CellCaption(h0,1,"Sales Manager")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Michael Suyama")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Robert King")
.set_CellCaption(h0,1,"Sales Representative")
.set_CellCaption(h0,2,"London")
h0 = .AddItem("Laura Callahan")
.set_CellCaption(h0,1,"Inside Sales Coordinator")
.set_CellCaption(h0,2,"Seattle")
h0 = .AddItem("Anne Dodsworth")
.set_CellCaption(h0,1,"Sales Representative")
.set_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
| VB.NET |
|---|
With Exgantt1
.BeginUpdate()
With .ConditionalFormats.Add("1")
.ForeColor = Color.FromArgb(255,0,0)
.ApplyTo = &H1
End With
.MarkSearchColumn = False
With .Columns
.Add("Column 1")
.Add("Column 2")
End With
With .Items
.set_CellCaption(.AddItem(0),1,1)
.set_CellCaption(.AddItem(2),1,3)
.set_CellCaption(.AddItem(4),1,5)
End With
.EndUpdate()
End With
|
704. Is it possible to colour a particular column for specified values
| VB.NET |
|---|
With Exgantt1
.BeginUpdate()
With .ConditionalFormats.Add("int(%1) in (3,4,5)")
.BackColor = Color.FromArgb(255,0,0)
.ApplyTo = &H1
End With
.MarkSearchColumn = False
With .Columns
.Add("Column 1")
.Add("Column 2")
End With
With .Items
.set_CellCaption(.AddItem(0),1,1)
.set_CellCaption(.AddItem(2),1,3)
.set_CellCaption(.AddItem(4),1,5)
End With
.EndUpdate()
End With
|
703. Is it possible to colour a particular column
| VB.NET |
|---|
With Exgantt1
.BeginUpdate()
.MarkSearchColumn = False
With .Columns
.Add("Column 1")
.Add("Column 2").set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellBackColor,255)
End With
With .Items
.set_CellCaption(.AddItem(0),1,1)
.set_CellCaption(.AddItem(2),1,3)
.set_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
| VB.NET |
|---|
Dim h,hChild
With Exgantt1
.BeginUpdate()
.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
.Columns.Add("P")
With .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.set_ExpandItem(h,True)
End With
With .Items
hChild = .get_ItemChild(.FirstVisibleItem)
Debug.Print(.get_CellCaption(hChild,0))
Debug.Print(.get_CellCaption(.get_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
| VB.NET |
|---|
With Exgantt1 .BeginUpdate() With .Chart .set_PaneWidth(False,0) .LevelCount = 3 .OverviewVisible = True .AllowOverviewZoom = exontrol.EXGANTTLib.OverviewZoomEnum.exAlwaysZoom .set_Label(exontrol.EXGANTTLib.UnitEnum.exYear,"<%yy%><|><%yyyy%>") .set_Label(exontrol.EXGANTTLib.UnitEnum.exHalfYear,"") .set_Label(exontrol.EXGANTTLib.UnitEnum.exQuarterYear,"") .set_Label(exontrol.EXGANTTLib.UnitEnum.exMonth,"<|><%m%><|><%m%>/<%yy%><|><%m%>/<%yyyy%>") .set_Label(exontrol.EXGANTTLib.UnitEnum.exThirdMonth,"") .set_Label(exontrol.EXGANTTLib.UnitEnum.exWeek,"<|><%ww%><|><%m%>/<%d%>/<%yy%><r><%ww%><|><%m%>/<%d%>/<%yyyy%><r><%ww%><||><||>256") .set_Label(exontrol.EXGANTTLib.UnitEnum.exDay,"<|><%d%><|><%m%>/<%d%>/<%yy%><|><%m%>/<%d%>/<%yyyy%><||><||>4096") .set_Label(exontrol.EXGANTTLib.UnitEnum.exHour,"<|><%hh%><|><%m%>/<%d%>/<%yy%> <%h%> <%AM/PM%><|><%m%>/<%d%>/<%yyyy%> <%h%> <%AM/PM%><||><||>65" & _ "536") .set_Label(exontrol.EXGANTTLib.UnitEnum.exMinute,"<|><%nn%><|><%h%>:<%nn% <%AM/PM%>><|><%m%>/<%d%>/<%yy%> <%h%>:<%nn%> <%AM/PM%><|><%m%>/<%d%>/<%" & _ "yyyy%> <%h%>:<%nn%> <%AM/PM%>") .set_Label(exontrol.EXGANTTLib.UnitEnum.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%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exYear,"<%yyyy%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exHalfYear,"") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exQuarterYear,"") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exMonth,"<%m%>/<%yyyy%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exThirdMonth,"") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exWeek,"<%m%>/<%d%>/<%yyyy%> <%ww%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exDay,"<%m%>/<%d%>/<%yyyy%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exHour,"<%m%>/<%d%>/<%yyyy%> <%h%> <%AM/PM%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exMinute,"<%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%> <%AM/PM%>") .set_LabelToolTip(exontrol.EXGANTTLib.UnitEnum.exSecond,"<%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>") .UnitScale = exontrol.EXGANTTLib.UnitEnum.exDay End With .EndUpdate() End With |
700. How can I get the caption of focused item
| VB.NET |
|---|
' SelectionChanged event - Fired after a new item has been selected.
Private Sub Exgantt1_SelectionChanged(ByVal sender As System.Object) Handles Exgantt1.SelectionChanged
With Exgantt1
With .Items
Debug.Print("Handle")
Debug.Print(.FocusItem)
Debug.Print("Caption")
Debug.Print(.get_CellCaption(.FocusItem,0))
End With
End With
End Sub
Dim h
With Exgantt1
.BeginUpdate()
.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
.Columns.Add("Items")
With .Items
h = .AddItem("R1")
.InsertItem(h,0,"Cell 1.1")
.InsertItem(h,0,"Cell 1.2")
.set_ExpandItem(h,True)
h = .AddItem("R2")
.InsertItem(h,0,"Cell 2.1")
.InsertItem(h,0,"Cell 2.2")
.set_ExpandItem(h,True)
End With
.EndUpdate()
End With
|
699. How can I get the caption of selected item
| VB.NET |
|---|
' SelectionChanged event - Fired after a new item has been selected.
Private Sub Exgantt1_SelectionChanged(ByVal sender As System.Object) Handles Exgantt1.SelectionChanged
With Exgantt1
With .Items
Debug.Print("Handle")
Debug.Print(.get_SelectedItem(0))
Debug.Print("Caption")
Debug.Print(.get_CellCaption(.get_SelectedItem(0),0))
End With
End With
End Sub
Dim h
With Exgantt1
.BeginUpdate()
.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
.Columns.Add("Items")
With .Items
h = .AddItem("R1")
.InsertItem(h,0,"Cell 1.1")
.InsertItem(h,0,"Cell 1.2")
.set_ExpandItem(h,True)
h = .AddItem("R2")
.InsertItem(h,0,"Cell 2.1")
.InsertItem(h,0,"Cell 2.2")
.set_ExpandItem(h,True)
End With
.EndUpdate()
End With
|
698. How can I highligth the item from the cursor as it moves
| VB.NET |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Exgantt1_MouseMoveEvent(ByVal sender As System.Object,ByVal Button As Short,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exgantt1.MouseMoveEvent
Dim c,h,hit
With Exgantt1
.BeginUpdate()
h = .get_ItemFromPoint(-1,-1,c,hit)
With .Items
.ClearItemBackColor(Exgantt1.get_Background(&H280 Or exontrol.EXGANTTLib.BackgroundPartEnum.exDateHeader Or exontrol.EXGANTTLib.BackgroundPartEnum.exCursorHoverColumn Or exontrol.EXGANTTLib.BackgroundPartEnum.exToolTipAppearance Or exontrol.EXGANTTLib.BackgroundPartEnum.exVSUp))
.set_ItemBackColor(h,Color.FromArgb(240,250,240))
End With
.set_Background(&H280 Or exontrol.EXGANTTLib.BackgroundPartEnum.exDateHeader Or exontrol.EXGANTTLib.BackgroundPartEnum.exCursorHoverColumn Or exontrol.EXGANTTLib.BackgroundPartEnum.exToolTipAppearance Or exontrol.EXGANTTLib.BackgroundPartEnum.exVSUp,h)
.EndUpdate()
End With
End Sub
Dim h
With Exgantt1
.BeginUpdate()
.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exHLines
.SelBackColor = Color.FromArgb(240,250,240)
.SelForeColor = Color.FromArgb(0,0,0)
.ShowFocusRect = False
With .Chart
.SelBackColor = Color.FromArgb(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")
.set_ExpandItem(h,True)
h = .AddItem("R2")
.InsertItem(h,0,"Cell 2.1")
.InsertItem(h,0,"Cell 2.2")
.set_ExpandItem(h,True)
End With
.EndUpdate()
End With
|
697. How can I get the item from the cursor
| VB.NET |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Exgantt1_MouseMoveEvent(ByVal sender As System.Object,ByVal Button As Short,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exgantt1.MouseMoveEvent
Dim c,h,hit
With Exgantt1
h = .get_ItemFromPoint(-1,-1,c,hit)
Debug.Print("Handle")
Debug.Print(h)
Debug.Print("Index")
Debug.Print(.Items.get_ItemToIndex(h))
End With
End Sub
Dim h
With Exgantt1
.BeginUpdate()
.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exHLines
.Columns.Add("Items")
With .Items
h = .AddItem("R1")
.InsertItem(h,0,"Cell 1.1")
.InsertItem(h,0,"Cell 1.2")
.set_ExpandItem(h,True)
h = .AddItem("R2")
.InsertItem(h,0,"Cell 2.1")
.InsertItem(h,0,"Cell 2.2")
.set_ExpandItem(h,True)
End With
.EndUpdate()
End With
|
696. How can I get the column from the cursor, not only in the header
| VB.NET |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Exgantt1_MouseMoveEvent(ByVal sender As System.Object,ByVal Button As Short,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exgantt1.MouseMoveEvent
With Exgantt1
Debug.Print(.get_ColumnFromPoint(-1,0))
End With
End Sub
Dim h
With Exgantt1
.BeginUpdate()
.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
.Columns.Add("P1")
.Columns.Add("P2")
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
With .Items
h = .AddItem("R1")
.set_CellCaption(h,1,"R2")
.set_CellCaption(.InsertItem(h,0,"Cell 1.1"),1,"Cell 1.2")
.set_CellCaption(.InsertItem(h,0,"Cell 2.1"),1,"Cell 2.2")
.set_ExpandItem(h,True)
End With
.EndUpdate()
End With
|
695. How can I get the column from the cursor
| VB.NET |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Exgantt1_MouseMoveEvent(ByVal sender As System.Object,ByVal Button As Short,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exgantt1.MouseMoveEvent
With Exgantt1
Debug.Print(.get_ColumnFromPoint(-1,-1))
End With
End Sub
Dim h
With Exgantt1
.BeginUpdate()
.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
.Columns.Add("P1")
.Columns.Add("P2")
With .Items
h = .AddItem("R1")
.set_CellCaption(h,1,"R2")
.set_CellCaption(.InsertItem(h,0,"Cell 1.1"),1,"Cell 1.2")
.set_CellCaption(.InsertItem(h,0,"Cell 2.1"),1,"Cell 2.2")
.set_ExpandItem(h,True)
End With
.EndUpdate()
End With
|
694. How can I get the cell's caption from the cursor
| VB.NET |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Exgantt1_MouseMoveEvent(ByVal sender As System.Object,ByVal Button As Short,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exgantt1.MouseMoveEvent
Dim c,h,hit
With Exgantt1
h = .get_ItemFromPoint(-1,-1,c,hit)
Debug.Print(.Items.get_CellCaption(h,c))
End With
End Sub
Dim h
With Exgantt1
.BeginUpdate()
.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
.Columns.Add("Items")
With .Items
h = .AddItem("R1")
.InsertItem(h,0,"Cell 1.1")
.InsertItem(h,0,"Cell 1.2")
.set_ExpandItem(h,True)
h = .AddItem("R2")
.InsertItem(h,0,"Cell 2.1")
.InsertItem(h,0,"Cell 2.2")
.set_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
| VB.NET |
|---|
Dim h
With Exgantt1
.BeginUpdate()
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
.GridLineStyle = exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesHDot4 Or exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesVSolid
.Columns.Add("C1")
.Columns.Add("C2")
.Columns.Add("C3")
With .Items
h = .AddItem("Item 1")
.set_CellCaption(h,1,"SubItem 1.2")
.set_CellCaption(h,2,"SubItem 1.3")
h = .AddItem("Item 2")
.set_CellCaption(h,1,"SubItem 2.2")
.set_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
| VB.NET |
|---|
Dim h
With Exgantt1
.BeginUpdate()
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
.GridLineColor = Color.FromArgb(220,220,220)
With .Chart
.set_PaneWidth(False,48)
.FirstVisibleDate = #1/1/2001#
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
.GridLineStyle = exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesBehind
.LevelCount = 2
With .get_Level(1)
.DrawGridLines = True
.GridLineColor = Color.FromArgb(220,220,220)
End With
With .Bars.Item("Task")
.Pattern = exontrol.EXGANTTLib.PatternEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.BeginUpdate()
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
.GridLineStyle = exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesDash
With .Chart
.set_PaneWidth(False,48)
.FirstVisibleDate = #1/1/2001#
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
.GridLineStyle = exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesDash
.LevelCount = 2
.get_Level(1).DrawGridLines = True
With .get_Level(0)
.GridLineColor = Color.FromArgb(255,0,0)
.GridLineStyle = exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesVSolid
End With
.Bars.Item("Task").Pattern = exontrol.EXGANTTLib.PatternEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.BeginUpdate()
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
.GridLineStyle = exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesSolid
With .Chart
.set_PaneWidth(False,48)
.FirstVisibleDate = #1/1/2001#
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
.GridLineStyle = exontrol.EXGANTTLib.GridLinesStyleEnum.exGridLinesSolid
.LevelCount = 2
.get_Level(1).DrawGridLines = True
.Bars.Item("Task").Pattern = exontrol.EXGANTTLib.PatternEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
With .Chart
.set_PaneWidth(False,48)
.FirstVisibleDate = #1/1/2001#
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines
.LevelCount = 2
.get_Level(1).DrawGridLines = True
.Bars.Item("Task").Pattern = exontrol.EXGANTTLib.PatternEnum.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
| VB.NET |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Exgantt1_MouseMoveEvent(ByVal sender As System.Object,ByVal Button As Short,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exgantt1.MouseMoveEvent
With Exgantt1
Debug.Print(.Chart.get_LinkFromPoint(-1,-1))
End With
End Sub
Dim h1,h2,h3
With Exgantt1
.BeginUpdate()
.Columns.Add("Task")
With .Chart
.FirstVisibleDate = #12/29/2000#
.set_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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkText,"L1")
h3 = .AddItem("Task 3")
.AddBar(h3,"Task",#1/8/2001#,#1/10/2001#,"K3")
.AddLink("L2",h2,"K2",h3,"K3")
.set_Link("L2",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkText,"L2")
End With
.EndUpdate()
End With
|
687. How can I get the bar from the point
| VB.NET |
|---|
' MouseMove event - Occurs when the user moves the mouse.
Private Sub Exgantt1_MouseMoveEvent(ByVal sender As System.Object,ByVal Button As Short,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exgantt1.MouseMoveEvent
With Exgantt1
Debug.Print(.Chart.get_BarFromPoint(-1,-1))
End With
End Sub
Dim h1,h2,h3
With Exgantt1
.BeginUpdate()
.Columns.Add("Task")
With .Chart
.FirstVisibleDate = #12/29/2000#
.set_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
| VB.NET |
|---|
' MouseMove event - Occurs when the user moves the mouse. Private Sub Exgantt1_MouseMoveEvent(ByVal sender As System.Object,ByVal Button As Short,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exgantt1.MouseMoveEvent With Exgantt1 Debug.Print(.Chart.get_LevelFromPoint(-1,-1)) End With End Sub With Exgantt1 With .Chart .FirstVisibleDate = #6/25/2010# .set_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
| VB.NET |
|---|
With Exgantt1
.BeginUpdate()
.Columns.Add("Tasks")
With .Chart
.set_PaneWidth(False,0)
.NonworkingDays = 0
.FirstVisibleDate = 0
.ToolTip = ""
With .get_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
| VB.NET |
|---|
' DateChange event - Occurs when the first visible date is changed. Private Sub Exgantt1_DateChange(ByVal sender As System.Object) Handles Exgantt1.DateChange With Exgantt1 .Chart.FirstVisibleDate = 0 .set_ScrollPartEnable(exontrol.EXGANTTLib.ScrollBarEnum.exHChartScroll,exontrol.EXGANTTLib.ScrollPartEnum.exLeftBPart,False) End With End Sub With Exgantt1 .BeginUpdate() With .Chart .set_PaneWidth(False,0) .NonworkingDays = 0 .FirstVisibleDate = 0 .ToolTip = "" With .get_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
| VB.NET |
|---|
With Exgantt1 .BeginUpdate() With .Chart .set_PaneWidth(False,0) .NonworkingDays = 0 .FirstVisibleDate = 0 .ToolTip = "" With .get_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
| VB.NET |
|---|
Dim h
With Exgantt1
.Columns.Add("Task")
With .Chart
.set_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")
.set_ItemBar(h,"B",exontrol.EXGANTTLib.ItemBarPropertyEnum.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")
.set_ItemBar(h,"A",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarColor,255)
End With
End With
|
681. Is there any automatic way to change a property for all bars in the chart
| VB.NET |
|---|
With Exgantt1
.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")
.set_ItemBar(0,"<ALL>",exontrol.EXGANTTLib.ItemBarPropertyEnum.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
| VB.NET |
|---|
Dim h,hC
With Exgantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.SelBackColor = .BackColor
.SelForeColor = .ForeColor
.HasLines = exontrol.EXGANTTLib.HierarchyLineEnum.exNoLine
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,0,"Default")
.set_ItemBackColor32(hC,16777216)
.set_ItemHeight(.InsertItem(h,0,""),6)
hC = .InsertItem(h,0,"Light Green")
.set_ItemBackColor32(hC,16842496)
.set_ItemHeight(.InsertItem(h,0,""),6)
hC = .InsertItem(h,0,"Dark Green")
.set_ItemBackColor32(hC,16809728)
.set_ItemHeight(.InsertItem(h,0,""),6)
hC = .InsertItem(h,0,"Magenta")
.set_ItemBackColor32(hC,33521663)
.set_ItemHeight(.InsertItem(h,0,""),6)
hC = .InsertItem(h,0,"Yellow")
.set_ItemBackColor32(hC,25165823)
.set_ItemHeight(.InsertItem(h,0,""),6)
.set_ExpandItem(h,True)
End With
End With
|
679. How can I remove all bars from the chart
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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")
.set_ItemBar(0,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarColor,255)
End With
End With
|
677. Is there any automatic way to change a property for all bars with a specified key
| VB.NET |
|---|
With Exgantt1
.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")
.set_ItemBar(0,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarColor,255)
End With
End With
|
676. How can I remove all bars with specified key
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
Dim h
With Exgantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = #1/1/2001#
With .Chart.Bars.Item("Task")
.Color = Color.FromArgb(255,0,0)
.StartColor = Color.FromArgb(0,255,0)
.EndColor = Color.FromArgb(255,255,0)
.Pattern = exontrol.EXGANTTLib.PatternEnum.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
| VB.NET |
|---|
With Exgantt1 .OnResizeControl = exontrol.EXGANTTLib.OnResizeControlEnum.exResizeChart Or exontrol.EXGANTTLib.OnResizeControlEnum.exDisableSplitter .Chart.set_PaneWidth(False,60) End With |
673. How can I disable the control's splitter so the user can't resize the chart area
| VB.NET |
|---|
With Exgantt1 .OnResizeControl = exontrol.EXGANTTLib.OnResizeControlEnum.exDisableSplitter .Chart.set_PaneWidth(True,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
| VB.NET |
|---|
Dim h
With Exgantt1
.BeginUpdate()
.Columns.Add("Task")
.Chart.FirstVisibleDate = #1/1/2001#
With .Chart.Bars.Add("A")
.Color = Color.FromArgb(255,0,0)
.Shape = exontrol.EXGANTTLib.ShapeBarEnum.exShapeSolidUp
.Pattern = exontrol.EXGANTTLib.PatternEnum.exPatternSolid
End With
With .Chart.Bars.Add("B")
.Color = Color.FromArgb(128,0,0)
.Shape = exontrol.EXGANTTLib.ShapeBarEnum.exShapeSolidDown
.Pattern = exontrol.EXGANTTLib.PatternEnum.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,"1")
End With
.EndUpdate()
End With
|
671. Does your control support RightToLeft property for RTL languages or right to left
| VB.NET |
|---|
Dim h
With Exgantt1
.BeginUpdate()
.ScrollBars = exontrol.EXGANTTLib.ScrollBarsEnum.exDisableBoth
.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
With .Columns.Add("P1")
.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
.PartialCheck = True
End With
With .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.set_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
| VB.NET |
|---|
With Exgantt1
.BeginUpdate()
.ScrollBars = exontrol.EXGANTTLib.ScrollBarsEnum.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
| VB.NET |
|---|
With Exgantt1
With .Columns.Add("Column")
.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,True)
.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellDrawPartsOrder,"caption,check")
End With
With .Items
.set_CellHasCheckBox(.AddItem("Caption 1"),0,True)
.set_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
| VB.NET |
|---|
Dim h
With Exgantt1
.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").set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellDrawPartsOrder,"caption,check,icon,icons,picture")
With .Items
h = .AddItem("Text")
.set_CellImage(h,0,1)
.set_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
| VB.NET |
|---|
Dim h
With Exgantt1
.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").set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellDrawPartsOrder,"caption,icon,check,icons,picture")
With .Items
h = .AddItem("Text")
.set_CellImage(h,0,1)
End With
End With
|
666. Is there any option to print the columns section on each page
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_CellCaption(h1,1,"Col 2")
.AddBar(h1,"Task",#1/2/2001#,#1/4/2001#,"K1")
h2 = .AddItem("Col 1")
.set_CellCaption(h2,1,"Col 2")
.AddBar(h2,"Task",#2/5/2001#,#2/7/2001#,"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkStartPos,0)
End With
.EndUpdate()
' Add 'exontrol.exprint.dll' reference to your project.
With New exontrol.EXPRINTLib.exprint()
.Options = "ColumnsOnEveryPage=-2"
.PrintExt = Exgantt1
.Preview()
End With
End With
|
665. Is there any option to print the columns section on each page
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkStartPos,0)
End With
.EndUpdate()
' Add 'exontrol.exprint.dll' reference to your project.
With New exontrol.EXPRINTLib.exprint()
.Options = "ColumnsOnEveryPage=1"
.PrintExt = Exgantt1
.Preview()
End With
End With
|
664. How do I print the control's content
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkStartPos,0)
End With
.EndUpdate()
' Add 'exontrol.exprint.dll' reference to your project.
With New exontrol.EXPRINTLib.exprint()
.PrintExt = Exgantt1
.Preview()
End With
End With
|
663. How can I display the column using currency format and enlarge the font for certain values
| VB.NET |
|---|
With Exgantt1
With .Columns.Add("Currency")
.set_Def(exontrol.EXGANTTLib.DefColumnEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
With .Columns.Add("")
.set_Def(exontrol.EXGANTTLib.DefColumnEnum.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")
.set_ExpandItem(h,True)
End With
End With
|
661. How can I get the number of occurrences of a specified string in the cell
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ExpandItem(h,True)
End With
End With
|
660. How can I display dates in my format
| VB.NET |
|---|
With Exgantt1
With .Columns.Add("Date")
.set_Def(exontrol.EXGANTTLib.DefColumnEnum.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ExpandItem(h,True)
End With
End With
|
656. How can I display only the left part of the cell
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ExpandItem(h,True)
End With
End With
|
655. How can I display true or false instead 0 and -1
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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")
.set_Def(exontrol.EXGANTTLib.DefColumnEnum.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.Columns.Add("Number")
.Columns.Add("Currency").ComputedField = "len(%0) ? currency(dbl(%0)) : ''"
With .Items
.AddItem("1.23")
.AddItem("2.34")
.AddItem("0")
.set_ItemBackColor(.AddItem(),Color.FromArgb(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
| VB.NET |
|---|
Dim h
With Exgantt1
.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#)
.set_CellCaption(h,1,#1/14/2001#)
h = .AddItem(#2/22/2002 0:00:00 PM#)
.set_CellCaption(h,1,#3/14/2002 1:00:00 PM#)
h = .AddItem(#3/13/2003#)
.set_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
| VB.NET |
|---|
Dim h
With Exgantt1
.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#)
.set_CellCaption(h,1,#1/14/2001 11:00:00 PM#)
h = .AddItem(#2/22/2002 0:00:00 PM#)
.set_CellCaption(h,1,#3/14/2002 1:00:00 PM#)
h = .AddItem(#3/13/2003#)
.set_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
| VB.NET |
|---|
Dim h
With Exgantt1
.Columns.Add("Start")
.Columns.Add("End")
.Columns.Add("Duration").ComputedField = "(date(%1)-date(%0)) + ' days'"
With .Items
h = .AddItem(#1/11/2001#)
.set_CellCaption(h,1,#1/14/2001#)
h = .AddItem(#2/22/2002#)
.set_CellCaption(h,1,#3/14/2002#)
h = .AddItem(#3/13/2003#)
.set_CellCaption(h,1,#4/11/2003#)
End With
End With
|
648. How can I get second part of the date
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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 )
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ExpandItem(h,True)
End With
End With
|
628. Is there any option to display cells in uppercase
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ExpandItem(h,True)
End With
End With
|
627. Is there any option to display cells in lowercase
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ExpandItem(h,True)
End With
End With
|
626. How can I mark the cells that has a specified type, ie strings only
| VB.NET |
|---|
Dim h
With Exgantt1
.ConditionalFormats.Add("type(%0) = 8").ForeColor = Color.FromArgb(255,0,0)
.Columns.Add("")
With .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,2)
.InsertItem(h,0,"Chld 3")
.set_ExpandItem(h,True)
End With
End With
|
625. How can I bold the items that contains data or those who displays empty strings
| VB.NET |
|---|
Dim h,hC
With Exgantt1
.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")
.set_CellCaption(hC,1,"1")
.InsertItem(h,0,"Child 3")
.set_ExpandItem(h,True)
End With
End With
|
624. Can I change the background color for items or cells that contains a specified string
| VB.NET |
|---|
Dim h
With Exgantt1
.ConditionalFormats.Add("%0 contains 'hi'").BackColor = Color.FromArgb(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")
.set_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
| VB.NET |
|---|
Dim h
With Exgantt1
.ConditionalFormats.Add("%0 endwith '22'").ForeColor = Color.FromArgb(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")
.set_ExpandItem(h,True)
End With
End With
|
622. How can I highlight the cells or items that starts with a specified string
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_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
| VB.NET |
|---|
With Exgantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
With .Columns
.Add("Column 1")
.Add("Column 2").set_Def(exontrol.EXGANTTLib.DefColumnEnum.exHeaderBackColor,16777216)
.Add("Column 3").set_Def(exontrol.EXGANTTLib.DefColumnEnum.exHeaderBackColor,16777471)
.Add("Column 4")
End With
End With
|
620. How can I change the background color for a particular column
| VB.NET |
|---|
With Exgantt1
With .Columns
.Add("Column 1")
.Add("Column 2").set_Def(exontrol.EXGANTTLib.DefColumnEnum.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)
| VB.NET |
|---|
With Exgantt1 With .Chart .set_PaneWidth(False,32) .UnitWidth = 32 .FirstVisibleDate = 1000 .get_Level(0).Label = "<%i%>" End With End With |
618. How can I hide the non-working units ( days or hours )
| VB.NET |
|---|
With Exgantt1 .BeginUpdate() With .Chart .set_PaneWidth(False,0) .LevelCount = 2 With .get_Level(0) .Label = "<%dddd%>" .Alignment = exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment End With .get_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
| VB.NET |
|---|
With Exgantt1
With .Chart
.set_PaneWidth(False,0)
.FirstVisibleDate = #1/1/2001 10:00:00 AM#
.LevelCount = 3
With .get_Level(0)
.Label = "<b><%mmm%> <%d%>, <%yyyy%></b>"
.Alignment = exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment
.Unit = exontrol.EXGANTTLib.UnitEnum.exDay
End With
With .get_Level(1)
.Label = "<%h%>:00 <%AM/PM%>"
.Alignment = exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment
.Unit = exontrol.EXGANTTLib.UnitEnum.exHour
.DrawTickLines = True
.DrawGridLines = True
.set_ReplaceLabel("12:00 PM","<fgcolor=0000FF><b>Noon</b></fgcolor>")
End With
With .get_Level(2)
.Label = ""
.Unit = exontrol.EXGANTTLib.UnitEnum.exMinute
.Count = 15
End With
End With
End With
|
616. How can I change the selection background color in the chart area
| VB.NET |
|---|
With Exgantt1
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.SelBackColor = Color.FromArgb(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#)
.set_SelectItem(.FirstVisibleItem,True)
End With
End With
|
615. How can I change the selection background color in the chart area
| VB.NET |
|---|
With Exgantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.SelBackColor32 = &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#)
.set_SelectItem(.FirstVisibleItem,True)
End With
End With
|
614. Is there any way to extend the selection on the chart
| VB.NET |
|---|
With Exgantt1
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.SelBackColor = Exgantt1.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#)
.set_SelectItem(.FirstVisibleItem,True)
End With
End With
|
613. How can I display the column's header using multiple lines
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
With .Chart
.LevelCount = 2
.get_Level(0).Label = 1048576
With .get_Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.MarkNowColor32 = &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
| VB.NET |
|---|
With Exgantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
With .Chart
.LevelCount = 2
.get_Level(0).Label = 1048576
With .get_Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.MarkNowColor32 = &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
| VB.NET |
|---|
With Exgantt1
With .Chart
.LevelCount = 2
.get_Level(0).Label = 1048576
With .get_Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.MarkNowColor = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1
With .Chart
.LevelCount = 2
.get_Level(0).Label = 1048576
With .get_Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.MarkNowColor = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1 .Chart.LevelCount = 2 .Chart.get_Level(0).Label = 1048576 With .Chart.get_Level(1) .Label = "<%ss%>" .Count = 15 End With .Chart.MarkNowColor = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1 With .Chart .UnitWidth = 48 .LevelCount = 1 .get_Level(0).Label = 1048576 .MarkNowColor = Color.FromArgb(255,0,0) .MarkNowUnit = exontrol.EXGANTTLib.UnitEnum.exMinute .MarkNowWidth = .UnitWidth End With End With |
606. Is there any way to highlight or show a vertical bar that indicates the current time
| VB.NET |
|---|
With Exgantt1 .Chart.LevelCount = 2 .Chart.get_Level(0).Label = 1048576 With .Chart.get_Level(1) .Label = "<%ss%>" .Count = 15 End With .Chart.MarkNowColor = Color.FromArgb(255,0,0) End With |
605. Is there a way of making a bar flash on the screen
| VB.NET |
|---|
Dim h
With Exgantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Flashy task")
.AddBar(h,"Task",#1/2/2001#,#1/6/2001#,"K1")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarTransparent,80)
End With
End With
|
604. How can include the values in the inner cells in the drop down filter window
| VB.NET |
|---|
Dim s
With Exgantt1
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exRowLines
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.set_Description(exontrol.EXGANTTLib.DescriptionTypeEnum.exFilterBarBlanks,"")
.set_Description(exontrol.EXGANTTLib.DescriptionTypeEnum.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 = exontrol.EXGANTTLib.FilterListEnum.exIncludeInnerCells
End With
.ShowFocusRect = False
With .Items
s = .get_SplitCell(.AddItem("S 1.1"),0)
.set_CellCaption(0,s,"S 1.2")
.set_CellHAlignment(0,s,exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment)
.set_CellBackColor32(0,s,16777216)
.set_CellWidth(0,s,84)
s = .get_SplitCell(.AddItem("S 2.1"),0)
.set_CellCaption(0,s,"S 2.2")
.set_CellHAlignment(0,s,exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment)
.set_CellWidth(0,s,84)
s = .get_SplitCell(.AddItem("S 3.1"),0)
.set_CellCaption(0,s,"S 3.2")
.set_CellHAlignment(0,s,exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment)
.set_CellBackColor32(0,s,16777216)
.set_CellWidth(0,s,84)
End With
End With
|
603. How can I sort the value gets listed in the drop down filter window
| VB.NET |
|---|
Dim h
With Exgantt1
.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot
.MarkSearchColumn = False
.set_Description(exontrol.EXGANTTLib.DescriptionTypeEnum.exFilterBarAll,"")
.set_Description(exontrol.EXGANTTLib.DescriptionTypeEnum.exFilterBarBlanks,"")
.set_Description(exontrol.EXGANTTLib.DescriptionTypeEnum.exFilterBarNonBlanks,"")
With .Columns.Add("P1")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.FilterList = exontrol.EXGANTTLib.FilterListEnum.exSortItemsDesc
End With
With .Columns.Add("P2")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.FilterList = exontrol.EXGANTTLib.FilterListEnum.exSortItemsAsc
End With
With .Items
h = .AddItem("Z3")
.set_CellCaption(h,1,"C")
.set_CellCaption(.InsertItem(h,0,"Z1"),1,"B")
.set_CellCaption(.InsertItem(h,0,"Z2"),1,"A")
.set_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
| VB.NET |
|---|
With Exgantt1 .BeginUpdate() .Chart.FirstVisibleDate = #2/5/2008# .Chart.LevelCount = 3 .Chart.get_Level(0).Label = "<b><%mmm%> <%dd%></b> <%yyyy%> " With .Chart.get_Level(1) .Label = "<%hh%>" .Alignment = exontrol.EXGANTTLib.AlignmentEnum.CenterAlignment End With With .Chart.get_Level(2) .Label = "" .Unit = exontrol.EXGANTTLib.UnitEnum.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
| VB.NET |
|---|
With Exgantt1
.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")
.Color32 = &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
| VB.NET |
|---|
With Exgantt1
.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")
.Color32 = &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
| VB.NET |
|---|
With Exgantt1
.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")
.Color32 = &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
| VB.NET |
|---|
With Exgantt1
.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BZsIQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiGoZATCMbDBIcSwSGgCJC" & _
"jeS4ZDKHIXSxFUKTBAcSQTGyBRokaYZRi6A4+TRPETTWAEcABHSbQCoKTKAoCHpLQLMYxDKItJSpGYaRgqWCaZpuUIaUzKVb" & _
"xbK9CSMGiQbIsOJrBqqQozWZHVITLR9VgBNqga7uGR5DoqdovU5dVTVda9Ly5LSsMQvfALCqOe45URdNp3RiVBYfI6+cZvfJ" & _
"LWh4NqeAbCMC1UJoYhlUKCBg0TRoVo9AIDX5QWaYXC0AkBA==")
With .Chart
.FirstVisibleDate = #1/1/2001#
With .Bars.Item("Task")
.Color32 = &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
| VB.NET |
|---|
Dim h
With Exgantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = #1/1/2001#
With .Chart.Bars.Item("Task")
.Pattern = exontrol.EXGANTTLib.PatternEnum.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,3)
End With
End With
|
596. How can I align the text/caption on the scroll bar
| VB.NET |
|---|
With Exgantt1 .set_ScrollPartCaption(exontrol.EXGANTTLib.ScrollBarEnum.exHScroll,exontrol.EXGANTTLib.ScrollPartEnum.exLowerBackPart,"left") .set_ScrollPartCaptionAlignment(exontrol.EXGANTTLib.ScrollBarEnum.exHScroll,exontrol.EXGANTTLib.ScrollPartEnum.exLowerBackPart,exontrol.EXGANTTLib.AlignmentEnum.LeftAlignment) .set_ScrollPartCaption(exontrol.EXGANTTLib.ScrollBarEnum.exHScroll,exontrol.EXGANTTLib.ScrollPartEnum.exUpperBackPart,"right") .set_ScrollPartCaptionAlignment(exontrol.EXGANTTLib.ScrollBarEnum.exHScroll,exontrol.EXGANTTLib.ScrollPartEnum.exUpperBackPart,exontrol.EXGANTTLib.AlignmentEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.BeginUpdate()
.Columns.Add("Task")
With .Chart
.LevelCount = 2
.set_PaneWidth(False,56)
.set_ScrollRange(exontrol.EXGANTTLib.ScrollRangeEnum.exStartDate,#1/1/2001#)
.set_ScrollRange(exontrol.EXGANTTLib.ScrollRangeEnum.exEndDate,#1/31/2001#)
.FirstVisibleDate = #1/12/2001#
End With
.set_ScrollPartCaption(exontrol.EXGANTTLib.ScrollBarEnum.exHChartScroll,exontrol.EXGANTTLib.ScrollPartEnum.exLowerBackPart,.Chart.get_ScrollRange(exontrol.EXGANTTLib.ScrollRangeEnum.exStartDate))
.set_ScrollPartCaptionAlignment(exontrol.EXGANTTLib.ScrollBarEnum.exHChartScroll,exontrol.EXGANTTLib.ScrollPartEnum.exLowerBackPart,exontrol.EXGANTTLib.AlignmentEnum.LeftAlignment)
.set_ScrollPartCaption(exontrol.EXGANTTLib.ScrollBarEnum.exHChartScroll,exontrol.EXGANTTLib.ScrollPartEnum.exUpperBackPart,.Chart.get_ScrollRange(exontrol.EXGANTTLib.ScrollRangeEnum.exEndDate))
.set_ScrollPartCaptionAlignment(exontrol.EXGANTTLib.ScrollBarEnum.exHChartScroll,exontrol.EXGANTTLib.ScrollPartEnum.exUpperBackPart,exontrol.EXGANTTLib.AlignmentEnum.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
| VB.NET |
|---|
With Exgantt1 .Chart.set_PaneWidth(True,196) End With |
593. How can I add a milestone bar and some text in the chart area
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,0,exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18)
End With
End With
|
592. How can I display or align the bar's caption or text outside of the bar
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarCaption,"<b>to do</b>")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18)
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarVAlignCaption,16)
End With
End With
|
591. How can I display or align the bar's caption or text outside of the bar
| VB.NET |
|---|
Dim h
With Exgantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",#1/4/2001#,#1/6/2001#,"K1")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarCaption,"to do")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,16)
End With
End With
|
590. How can I display or align the bar's caption or text outside of the bar
| VB.NET |
|---|
Dim h
With Exgantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",#1/2/2001#,#1/6/2001#,"K1")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarCaption,"to do ")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18)
End With
End With
|
589. Is there any option to count the non-working days
| VB.NET |
|---|
Dim h,var_ItemBar
With Exgantt1
.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 = .get_ItemBar(h,"A",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarNonWorkingCount)
End With
.EndUpdate()
End With
|
588. Is there any option to count or to specify the working days
| VB.NET |
|---|
Dim h,var_ItemBar
With Exgantt1
.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 = .get_ItemBar(h,"A",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarWorkingCount)
End With
.EndUpdate()
End With
|
587. How do I select the next row/item
| VB.NET |
|---|
With Exgantt1
.Columns.Add("Column")
With .Items
.AddItem("Item 1")
.AddItem("Item 2")
.AddItem("Item 3")
.set_SelectItem(.get_NextVisibleItem(.FocusItem),True)
End With
End With
|
586. How do I define the visual appearance of the bar by using your EBN/skin files
| VB.NET |
|---|
With Exgantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Chart.Bars.Copy("Task","EBN").Color32 = &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
| VB.NET |
|---|
With Exgantt1
.Chart.Bars.Copy("Task","Box").Pattern = exontrol.EXGANTTLib.PatternEnum.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
| VB.NET |
|---|
With Exgantt1
.ItemsAllowSizing = exontrol.EXGANTTLib.ItemsAllowSizingEnum.exResizeItem
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exHLines
.ScrollBySingleLine = True
.Columns.Add("Column")
.Items.AddItem("Item 1")
With .Items
.set_ItemHeight(.AddItem("Item 2"),48)
End With
.Items.AddItem("Item 3")
End With
|
583. How do I enable resizing all the items at runtime
| VB.NET |
|---|
With Exgantt1
.ItemsAllowSizing = exontrol.EXGANTTLib.ItemsAllowSizingEnum.exResizeAllItems
.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exHLines
.Columns.Add("Column")
.Items.AddItem("Item 1")
With .Items
.set_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
| VB.NET |
|---|
Dim h
With Exgantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Copy("Task","BarName").Color = Color.FromArgb(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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".4")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,True)
End With
End With
|
581. How I can show Months in Time Unit panel into Roman numerals
| VB.NET |
|---|
With Exgantt1 .Chart.LevelCount = 2 .Chart.get_Level(0).Label = 0 With .Chart.get_Level(1) .Label = "<%mr%>" .Unit = exontrol.EXGANTTLib.UnitEnum.exMonth End With End With |
580. Can I show a bar with a different vertical position
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarOffset,"-3")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarOffset,"-3")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.Chart.ShowTransparentBars = 60
.Chart.FirstVisibleDate = #1/1/2001#
.Chart.Bars.Copy("Task","TaskR").Color = Color.FromArgb(255,0,0)
.Chart.set_PaneWidth(False,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
| VB.NET |
|---|
Dim h
With Exgantt1
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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".15")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,True)
End With
End With
|
576. Can I change the Task bar so it display a Progress or a Percent bar
| VB.NET |
|---|
Dim h
With Exgantt1
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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".15")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,True)
End With
End With
|
575. How can I remove the filter
| VB.NET |
|---|
With Exgantt1
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.BeginUpdate()
With .Chart
.FirstVisibleDate = #1/1/2002#
.LevelCount = 2
.get_Level(0).Label = 1048576
With .get_Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.ShowEmptyBars = 15
.ShowEmptyBarsUnit = exontrol.EXGANTTLib.UnitEnum.exSecond
.set_PaneWidth(False,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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
Dim h
With Exgantt1
.BeginUpdate()
.Chart.FirstVisibleDate = "1/1/2002 00:00"
.Chart.LevelCount = 2
.Chart.get_Level(0).Label = 1048576
With .Chart.get_Level(1)
.Label = "<%ss%>"
.Count = 15
End With
.Chart.set_PaneWidth(False,48)
.Chart.Bars.Copy("Task","Task2").Color = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1
.Chart.Bars.Copy("Task","T2").Color = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1
.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 exontrol.EXGANTTLib.ShapeCornerEnum.exShapeIconUp1 Or exontrol.EXGANTTLib.ShapeCornerEnum.exShapeIconRight
.EndShape = &H3020 Or exontrol.EXGANTTLib.ShapeCornerEnum.exShapeIconUp1 Or exontrol.EXGANTTLib.ShapeCornerEnum.exShapeIconRight Or exontrol.EXGANTTLib.ShapeCornerEnum.exShapeIconDown4
.EndColor = Color.FromArgb(255,0,0)
.Pattern = exontrol.EXGANTTLib.PatternEnum.exPatternDot
.Color = Color.FromArgb(255,0,255)
.Shape = exontrol.EXGANTTLib.ShapeBarEnum.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
| VB.NET |
|---|
With Exgantt1
.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 = Color.FromArgb(255,0,0)
End With
|
567. How can I access a predefined bar
| VB.NET |
|---|
With Exgantt1
.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 = Color.FromArgb(255,0,0)
End With
|
566. How can I remove all predefined bars
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1 .Columns.Add(Exgantt1.Chart.Bars.Count) End With |
563. How can I change the height of the task bar
| VB.NET |
|---|
With Exgantt1
With .Chart.Bars.Copy("Task","T2")
.EndShape = exontrol.EXGANTTLib.ShapeCornerEnum.exShapeIconDown1
.EndColor = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1
With .Chart.Bars.Item("Task")
.EndShape = exontrol.EXGANTTLib.ShapeCornerEnum.exShapeIconUp1
.EndColor = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1
With .Chart.Bars.Copy("Task","T2")
.StartShape = exontrol.EXGANTTLib.ShapeCornerEnum.exShapeIconDown1
.StartColor = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1
With .Chart.Bars.Item("Task")
.StartShape = exontrol.EXGANTTLib.ShapeCornerEnum.exShapeIconUp1
.StartColor = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.Chart.Bars.Copy("Task","T2").Color = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1
.Chart.Bars.Item("Task").Color = Color.FromArgb(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
| VB.NET |
|---|
With Exgantt1
.Chart.Bars.Item("Task").Shape = exontrol.EXGANTTLib.ShapeBarEnum.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
| VB.NET |
|---|
With Exgantt1
.Chart.Bars.Copy("Task","T2").Shape = exontrol.EXGANTTLib.ShapeBarEnum.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
| VB.NET |
|---|
With Exgantt1
.Chart.Bars.Item("Task").Pattern = exontrol.EXGANTTLib.PatternEnum.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
| VB.NET |
|---|
With Exgantt1
.Chart.Bars.Copy("Task","T2").Pattern = exontrol.EXGANTTLib.PatternEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"P1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".14")
.set_ItemBar(h,"P1",exontrol.EXGANTTLib.ItemBarPropertyEnum.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
With Exgantt1
.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
| VB.NET |
|---|
Dim h
With Exgantt1
.set_HTMLPicture("p1","c:\exontrol\images\zipdisk.gif")
.Columns.Add("Task")
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.set_ItemHeight(h,48)
.AddBar(h,"Task",#1/2/2001#,#1/6/2001#,"K1")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarCaption,"<img>p1</img>")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,2)
End With
End With
|
541. How can I assign a picture or an icon to a bar in the chart
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarCaption,"<img>1</img>")
End With
End With
|
540. How can I display or add an anchor or a hyperlink in the link
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkText,"just <a1>link</a>")
End With
End With
|
539. How can I display a picture or an icon on the link
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkText,"just <img>1</img> link")
End With
End With
|
538. How can I display a picture or an icon on the link
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.set_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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.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
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkText,"L<b>1</b>")
End With
End With
|
536. How can I assign a tooltip to a link
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkText,"L<b>1</b>")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.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
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkStyle,0)
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkWidth,2)
End With
End With
|
534. Can I change the style of the link
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkStyle,4)
End With
End With
|
533. Can I change the color of the link
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkColor,255)
End With
End With
|
532. Can I change the part of the bar where the link ends
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkStartPos,1)
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkEndPos,1)
End With
End With
|
531. Can I change the part of the bar where the link starts
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkStartPos,0)
End With
End With
|
530. How can I associate an extra data to a link
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkUserData,"your data")
End With
End With
|
529. How can I show or hide a specified link
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkEndBar,False)
End With
End With
|
528. How can I get the key of the bar where the link end
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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(.get_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkEndBar))
End With
End With
|
527. How can I get the key of the bar where the link starts
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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(.get_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkStartBar))
End With
End With
|
526. How can I get the handle of the item where the link ends
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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(.get_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkEndItem))
End With
End With
|
525. How can I get the handle of the item where the link starts
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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(.get_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkStartItem))
End With
End With
|
524. How can I enumerate the links in the chart
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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(.get_NextLink(.FirstLink))
End With
End With
|
523. How can I access the properties and method of the link between two bars
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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")
.set_Link("L1",exontrol.EXGANTTLib.LinkPropertyEnum.exLinkText,"L<b>1</b>")
End With
End With
|
522. How can I remove a link between two bars
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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
| VB.NET |
|---|
Dim h1,h2
With Exgantt1
.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
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K2",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarCaption,.get_ItemBar(h,0,exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarsCount))
End With
End With
|
516. How can I assign any extra data to a bar in the chart
| VB.NET |
|---|
Dim h
With Exgantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = #1/1/2001#
With .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",#1/2/2001#,#1/6/2001#,"K1")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarStart Or exontrol.EXGANTTLib.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
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".35")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,True)
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".35")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,True)
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".35")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,True)
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.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
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".75")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,True)
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercentCaptionFormat,"%p/100")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarOffset,0)
End With
End With
|
511. Is there any way to change the format of the percent being displayed on the progress bar
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".4")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,True)
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercentCaptionFormat,"<b>%p/100</b>")
End With
End With
|
510. How can I show or hide the percent value in the progress bar
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".4")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,True)
End With
End With
|
509. How can I change the percent value in a progress bar
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".4")
End With
End With
|
508. How can I add a percent bar
| VB.NET |
|---|
Dim h
With Exgantt1
.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")
.set_ItemBar(h,"K1",exontrol.EXGANTTLib.ItemBarPropertyEnum.exBarPercent,".4")
End With
End With
|
507. How can I change the key of the bar in the chart
| VB.NET |
|---|
Dim h
With Exgantt1
.Columns.Add("Task")
.Chart.FirstVisi |