732. I haven't found options to localize (in Italian) the strings ( dates, tooltip ) that shows in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1 .BeginUpdate with .Chart .LevelCount = 2 .PaneWidth(.F.) = 0 .Label(256) = "<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256" var_s = "<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> <" var_s = var_s + "%yyyy%><||><||>4096" .Label(4096) = var_s .LabelToolTip(256) = "<%d%> <%mmmm%> <%yyyy%> <%ww%>" .LabelToolTip(4096) = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>" .FirstWeekDay = 1 .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 = 4096 endwith .EndUpdate endwith |
731. I haven't found options to localize (in Dutch) the strings ( dates, tooltip ) that shows in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1 .BeginUpdate with .Chart .LevelCount = 2 .PaneWidth(.F.) = 0 .Label(256) = "<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256" var_s = "<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> <" var_s = var_s + "%yyyy%><||><||>4096" .Label(4096) = var_s .LabelToolTip(256) = "<%d%> <%mmmm%> <%yyyy%> <%ww%>" .LabelToolTip(4096) = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>" .FirstWeekDay = 1 .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 = 4096 endwith .EndUpdate endwith |
730. I haven't found options to localize (in German) the strings ( dates, tooltip ) that shows in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1 .BeginUpdate with .Chart .LevelCount = 2 .PaneWidth(.F.) = 0 .Label(256) = "<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%>.<%mmmm%> <%yyyy%><r><%ww%><||><||>256" var_s = "<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%>.<%m3%> '<%yy%><|><%dddd%> <%d%>.<%mmmm%> <" var_s = var_s + "%yyyy%><||><||>4096" .Label(4096) = var_s .LabelToolTip(256) = "<%d%>.<%mmmm%> <%yyyy%> <%ww%>" .LabelToolTip(4096) = "<%dddd%>, <%d%>.<%mmmm%> <%yyyy%>" .FirstWeekDay = 1 .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 = 4096 endwith .EndUpdate endwith |
729. I haven't found options to localize (in French) the strings ( dates, tooltip ) that shows in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1 .BeginUpdate with .Chart .LevelCount = 2 .PaneWidth(.F.) = 0 .Label(256) = "<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256" var_s = "<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> <" var_s = var_s + "%yyyy%><||><||>4096" .Label(4096) = var_s .LabelToolTip(256) = "<%d%> <%mmmm%> <%yyyy%> <%ww%>" .LabelToolTip(4096) = "<%dddd%> <%d%> <%mmmm%> <%yyyy%>" .FirstWeekDay = 1 .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 = 4096 endwith .EndUpdate endwith |
728. How can I filter programatically using more columns
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.PaneWidth(.T.) = 0
with .Columns
.Add("Car")
.Add("Equipment")
endwith
with .Items
.DefaultItem = .AddItem("Mazda")
.CellCaption(0,1) = "Air Bag"
.DefaultItem = .AddItem("Toyota")
.CellCaption(0,1) = "Air Bag,Air condition"
.DefaultItem = .AddItem("Ford")
.CellCaption(0,1) = "Air condition"
.DefaultItem = .AddItem("Nissan")
.CellCaption(0,1) = "Air Bag,ABS,ESP"
.DefaultItem = .AddItem("Mazda")
.CellCaption(0,1) = "Air Bag, ABS,ESP"
.DefaultItem = .AddItem("Mazda")
.CellCaption(0,1) = "ABS,ESP"
endwith
with .Columns.Item("Car")
.FilterType = 240
.Filter = "Mazda"
endwith
with .Columns.Item("Equipment")
.FilterType = 3
.Filter = "*ABS*|*ESP*"
endwith
.ApplyFilter
.EndUpdate
endwith
|
727. I have seen the IN function but it returns -1 or 0. How can I display the value being found ( SWITCH usage )
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
with .Columns.Add("Value")
.Width = 24
endwith
with .Columns.Add("SWITCH - statment")
.ComputedField = "%0 switch ('not found', 1,2,3,4,5,7,8,9,11,13,14)"
.ToolTip = .ComputedField
endwith
with .Items
.AddItem(0)
.AddItem(1)
.AddItem(2)
endwith
.EndUpdate
endwith
|
726. I have a large collection of constant values and using or operator is a time consuming (IN usage). Is there any way to increase the speed to check if a value maches the collection
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
with .Columns.Add("Value")
.Width = 24
endwith
with .Columns.Add("IN - statment")
.ComputedField = "%0 in (1,2,3,4,5,7,8,9,11,13,14) ? 'found' : ''"
.ToolTip = .ComputedField
endwith
with .Items
.AddItem(0)
.AddItem(1)
.AddItem(2)
endwith
.EndUpdate
endwith
|
725. How can I use the CASE statement (CASE usage)
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
with .Columns.Add("Value")
.Width = 24
endwith
with .Columns.Add("CASE - statment")
var_s = "%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:'E"
var_s = var_s + "leven';13:'Thirtheen';14:'Fourtheen')"
.ComputedField = var_s
.ToolTip = .ComputedField
endwith
with .Items
.AddItem(0)
.AddItem(1)
.AddItem(2)
endwith
.EndUpdate
endwith
|
724. How can I use the CASE statement (CASE usage)
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
with .Columns.Add("Value")
.Width = 24
endwith
with .Columns.Add("CASE - statment")
var_s = "%0 case (default:'not found';1:'One';2:'Two';3:'Three';4:'Four';5:'Five';7:'Seven';8:'Eight';9:'"
var_s = var_s + "Nine';11:'Eleven';13:'Thirtheen';14:'Fourtheen')"
.ComputedField = var_s
.ToolTip = .ComputedField
endwith
with .Items
.AddItem(0)
.AddItem(1)
.AddItem(2)
endwith
.EndUpdate
endwith
|
723. Is is possible to use HTML tags to display in the filter caption
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.FilterBarPromptVisible = .T.
.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")
endwith
.EndUpdate
endwith
|
722. How can I find the number of items after filtering
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Columns.Add("")
with .Items
h = .AddItem("")
.DefaultItem = h
.CellCaption(0,0) = .VisibleItemCount
endwith
.EndUpdate
endwith
|
721. How can I change the filter caption
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.PaneWidth(.T.) = 0
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 12801
.FilterBarPromptPattern = "london robert"
.FilterBarCaption = "<r>Found: ... "
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
720. While using the filter prompt is it is possible to use wild characters
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.PaneWidth(.T.) = 0
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 16
.FilterBarPromptPattern = "lon* seat*"
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
719. How can I list all items that contains any of specified words, not necessary at the beggining
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.PaneWidth(.T.) = 0
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 4610
.FilterBarPromptPattern = "london davolio"
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
718. How can I list all items that contains any of specified words, not strings
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.Chart.PaneWidth(.T.) = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 12802
.FilterBarPromptPattern = "london nancy"
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
717. How can I list all items that contains all specified words, not strings
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.PaneWidth(.T.) = 0
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 12801
.FilterBarPromptPattern = "london robert"
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
716. I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 258
.FilterBarPromptPattern = "Anne"
.Chart.PaneWidth(.T.) = 0
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
715. Is it possible to list only items that ends with any of specified strings
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 4
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "Fuller"
.Chart.PaneWidth(.T.) = 0
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
714. Is it possible to list only items that ends with any of specified strings
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 4
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "Fuller"
.Chart.PaneWidth(.T.) = 0
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
713. Is it possible to list only items that starts with any of specified strings
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 3
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "An M"
.Chart.PaneWidth(.T.) = 0
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
712. Is it possible to list only items that starts with specified string
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 3
.FilterBarPromptColumns = "0"
.FilterBarPromptPattern = "A"
.Chart.PaneWidth(.T.) = 0
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
711. How can I specify that the list should include any of the seqeunces in the pattern
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 2
.FilterBarPromptPattern = "london seattle"
.Chart.PaneWidth(.T.) = 0
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
710. How can I specify that all sequences in the filter pattern must be included in the list
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.PaneWidth(.T.) = 0
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptType = 1
.FilterBarPromptPattern = "london manager"
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
709. How do I change at runtime the filter prompt
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.Chart.PaneWidth(.T.) = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptPattern = "london manager"
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
708. How do I specify to filter only a single column when using the filter prompt
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.Chart.PaneWidth(.T.) = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPromptColumns = "2,3"
.FilterBarPromptPattern = "london"
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
707. How do I change the prompt or the caption being displayed in the filter bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.PaneWidth(.T.) = 0
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
.FilterBarPrompt = "changed"
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
.EndUpdate
endwith
|
706. How do I enable the filter prompt feature
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.PaneWidth(.T.) = 0
.ColumnAutoResize = .T.
.ContinueColumnScroll = 0
.MarkSearchColumn = .F.
.SearchColumnIndex = 1
.FilterBarPromptVisible = .T.
with .Columns
.Add("Name").Width = 96
.Add("Title").Width = 96
.Add("City")
endwith
with .Items
h0 = .AddItem("Nancy Davolio")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Andrew Fuller")
.DefaultItem = h0
.CellCaption(0,1) = "Vice President, Sales"
.DefaultItem = h0
.CellCaption(0,2) = "Tacoma"
.DefaultItem = h0
.SelectItem(0) = .T.
h0 = .AddItem("Janet Leverling")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Kirkland"
h0 = .AddItem("Margaret Peacock")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "Redmond"
h0 = .AddItem("Steven Buchanan")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Manager"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Michael Suyama")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Robert King")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
h0 = .AddItem("Laura Callahan")
.DefaultItem = h0
.CellCaption(0,1) = "Inside Sales Coordinator"
.DefaultItem = h0
.CellCaption(0,2) = "Seattle"
h0 = .AddItem("Anne Dodsworth")
.DefaultItem = h0
.CellCaption(0,1) = "Sales Representative"
.DefaultItem = h0
.CellCaption(0,2) = "London"
endwith
.EndUpdate
endwith
|
705. Is it possible to colour a particular column, I mean the cell's foreground color
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
with .ConditionalFormats.Add("1")
.ForeColor = RGB(255,0,0)
.ApplyTo = 1
endwith
.MarkSearchColumn = .F.
with .Columns
.Add("Column 1")
.Add("Column 2")
endwith
with .Items
.DefaultItem = .AddItem(0)
.CellCaption(0,1) = 1
.DefaultItem = .AddItem(2)
.CellCaption(0,1) = 3
.DefaultItem = .AddItem(4)
.CellCaption(0,1) = 5
endwith
.EndUpdate
endwith
|
704. Is it possible to colour a particular column for specified values
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
with .ConditionalFormats.Add("int(%1) in (3,4,5)")
.BackColor = RGB(255,0,0)
.ApplyTo = 1
endwith
.MarkSearchColumn = .F.
with .Columns
.Add("Column 1")
.Add("Column 2")
endwith
with .Items
.DefaultItem = .AddItem(0)
.CellCaption(0,1) = 1
.DefaultItem = .AddItem(2)
.CellCaption(0,1) = 3
.DefaultItem = .AddItem(4)
.CellCaption(0,1) = 5
endwith
.EndUpdate
endwith
|
703. Is it possible to colour a particular column
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.MarkSearchColumn = .F.
with .Columns
.Add("Column 1")
.Add("Column 2").Def(4) = 255
endwith
with .Items
.DefaultItem = .AddItem(0)
.CellCaption(0,1) = 1
.DefaultItem = .AddItem(2)
.CellCaption(0,1) = 3
.DefaultItem = .AddItem(4)
.CellCaption(0,1) = 5
endwith
.EndUpdate
endwith
|
702. How do i get all the children items that are under a certain parent Item handle
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.LinesAtRoot = -1
.Columns.Add("P")
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
with .Items
hChild = .ItemChild(.FirstVisibleItem)
DEBUGOUT(.CellCaption(hChild,0))
DEBUGOUT(.CellCaption(.NextSiblingItem(hChild),0))
endwith
.EndUpdate
endwith
|
701. How can I change the predefined labels being displayed in the chart's header so it shows the data in short format with no literals
| Visual FoxPro |
|---|
with thisform.Gantt1 .BeginUpdate with .Chart .PaneWidth(.F.) = 0 .LevelCount = 3 .OverviewVisible = .T. .AllowOverviewZoom = 1 .Label(0) = "<%yy%><|><%yyyy%>" .Label(1) = "" .Label(2) = "" .Label(16) = "<|><%m%><|><%m%>/<%yy%><|><%m%>/<%yyyy%>" .Label(17) = "" .Label(256) = "<|><%ww%><|><%m%>/<%d%>/<%yy%><r><%ww%><|><%m%>/<%d%>/<%yyyy%><r><%ww%><||><||>256" .Label(4096) = "<|><%d%><|><%m%>/<%d%>/<%yy%><|><%m%>/<%d%>/<%yyyy%><||><||>4096" var_s = "<|><%hh%><|><%m%>/<%d%>/<%yy%> <%h%> <%AM/PM%><|><%m%>/<%d%>/<%yyyy%> <%h%> <%AM/PM%><||><||>655" var_s = var_s + "36" .Label(65536) = var_s var_s1 = "<|><%nn%><|><%h%>:<%nn% <%AM/PM%>><|><%m%>/<%d%>/<%yy%> <%h%>:<%nn%> <%AM/PM%><|><%m%>/<%d%>/<%y" var_s1 = var_s1 + "yyy%> <%h%>:<%nn%> <%AM/PM%>" .Label(1048576) = var_s1 var_s2 = "<|><%ss%><|><%nn%>:<%ss%><|><%h%>:<%nn%>:<%ss%> <%AM/PM%><|><%m%>/<%d%>/<%yy%> <%h%>:<%nn%>:<%ss" var_s2 = var_s2 + "%> <%AM/PM%><|><%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>" .Label(16777216) = var_s2 .LabelToolTip(0) = "<%yyyy%>" .LabelToolTip(1) = "" .LabelToolTip(2) = "" .LabelToolTip(16) = "<%m%>/<%yyyy%>" .LabelToolTip(17) = "" .LabelToolTip(256) = "<%m%>/<%d%>/<%yyyy%> <%ww%>" .LabelToolTip(4096) = "<%m%>/<%d%>/<%yyyy%>" .LabelToolTip(65536) = "<%m%>/<%d%>/<%yyyy%> <%h%> <%AM/PM%>" .LabelToolTip(1048576) = "<%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%> <%AM/PM%>" .LabelToolTip(16777216) = "<%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>" .UnitScale = 4096 endwith .EndUpdate endwith |
700. How can I get the caption of focused item
| Visual FoxPro |
|---|
*** SelectionChanged event - Fired after a new item has been selected. ***
LPARAMETERS nop
with thisform.Gantt1
with .Items
DEBUGOUT("Handle")
DEBUGOUT(.FocusItem)
DEBUGOUT("Caption")
DEBUGOUT(.CellCaption(.FocusItem,0))
endwith
endwith
with thisform.Gantt1
.BeginUpdate
.LinesAtRoot = -1
.Columns.Add("Items")
with .Items
h = .AddItem("R1")
.InsertItem(h,0,"Cell 1.1")
.InsertItem(h,0,"Cell 1.2")
.DefaultItem = h
.ExpandItem(0) = .T.
h = .AddItem("R2")
.InsertItem(h,0,"Cell 2.1")
.InsertItem(h,0,"Cell 2.2")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
.EndUpdate
endwith
|
699. How can I get the caption of selected item
| Visual FoxPro |
|---|
*** SelectionChanged event - Fired after a new item has been selected. ***
LPARAMETERS nop
with thisform.Gantt1
with .Items
DEBUGOUT("Handle")
DEBUGOUT(.SelectedItem(0))
DEBUGOUT("Caption")
DEBUGOUT(.CellCaption(.SelectedItem(0),0))
endwith
endwith
with thisform.Gantt1
.BeginUpdate
.LinesAtRoot = -1
.Columns.Add("Items")
with .Items
h = .AddItem("R1")
.InsertItem(h,0,"Cell 1.1")
.InsertItem(h,0,"Cell 1.2")
.DefaultItem = h
.ExpandItem(0) = .T.
h = .AddItem("R2")
.InsertItem(h,0,"Cell 2.1")
.InsertItem(h,0,"Cell 2.2")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
.EndUpdate
endwith
|
698. How can I highligth the item from the cursor as it moves
| Visual FoxPro |
|---|
*** MouseMove event - Occurs when the user moves the mouse. ***
LPARAMETERS Button,Shift,X,Y
with thisform.Gantt1
.BeginUpdate
h = .ItemFromPoint(-1,-1,c,hit)
with .Items
.ClearItemBackColor(thisform.Gantt1.Background(1000))
.DefaultItem = h
.ItemBackColor(0) = RGB(240,250,240)
endwith
.Background(1000) = h
.EndUpdate
endwith
with thisform.Gantt1
.BeginUpdate
.LinesAtRoot = -1
.DrawGridLines = 1
.SelBackColor = RGB(240,250,240)
.SelForeColor = RGB(0,0,0)
.ShowFocusRect = .F.
with .Chart
.SelBackColor = RGB(240,250,240)
endwith
.Columns.Add("Items")
with .Items
h = .AddItem("R1")
.InsertItem(h,0,"Cell 1.1")
.InsertItem(h,0,"Cell 1.2")
.DefaultItem = h
.ExpandItem(0) = .T.
h = .AddItem("R2")
.InsertItem(h,0,"Cell 2.1")
.InsertItem(h,0,"Cell 2.2")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
.EndUpdate
endwith
|
697. How can I get the item from the cursor
| Visual FoxPro |
|---|
*** MouseMove event - Occurs when the user moves the mouse. ***
LPARAMETERS Button,Shift,X,Y
with thisform.Gantt1
h = .ItemFromPoint(-1,-1,c,hit)
DEBUGOUT("Handle")
DEBUGOUT(h)
DEBUGOUT("Index")
DEBUGOUT(.Items.ItemToIndex(h))
endwith
with thisform.Gantt1
.BeginUpdate
.LinesAtRoot = -1
.DrawGridLines = 1
.Columns.Add("Items")
with .Items
h = .AddItem("R1")
.InsertItem(h,0,"Cell 1.1")
.InsertItem(h,0,"Cell 1.2")
.DefaultItem = h
.ExpandItem(0) = .T.
h = .AddItem("R2")
.InsertItem(h,0,"Cell 2.1")
.InsertItem(h,0,"Cell 2.2")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
.EndUpdate
endwith
|
696. How can I get the column from the cursor, not only in the header
| Visual FoxPro |
|---|
*** MouseMove event - Occurs when the user moves the mouse. ***
LPARAMETERS Button,Shift,X,Y
with thisform.Gantt1
DEBUGOUT(.ColumnFromPoint(-1,0))
endwith
with thisform.Gantt1
.BeginUpdate
.LinesAtRoot = -1
.Columns.Add("P1")
.Columns.Add("P2")
.DrawGridLines = -1
with .Items
h = .AddItem("R1")
.DefaultItem = h
.CellCaption(0,1) = "R2"
.DefaultItem = .InsertItem(h,0,"Cell 1.1")
.CellCaption(0,1) = "Cell 1.2"
.DefaultItem = .InsertItem(h,0,"Cell 2.1")
.CellCaption(0,1) = "Cell 2.2"
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
.EndUpdate
endwith
|
695. How can I get the column from the cursor
| Visual FoxPro |
|---|
*** MouseMove event - Occurs when the user moves the mouse. ***
LPARAMETERS Button,Shift,X,Y
with thisform.Gantt1
DEBUGOUT(.ColumnFromPoint(-1,-1))
endwith
with thisform.Gantt1
.BeginUpdate
.LinesAtRoot = -1
.DrawGridLines = -1
.Columns.Add("P1")
.Columns.Add("P2")
with .Items
h = .AddItem("R1")
.DefaultItem = h
.CellCaption(0,1) = "R2"
.DefaultItem = .InsertItem(h,0,"Cell 1.1")
.CellCaption(0,1) = "Cell 1.2"
.DefaultItem = .InsertItem(h,0,"Cell 2.1")
.CellCaption(0,1) = "Cell 2.2"
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
.EndUpdate
endwith
|
694. How can I get the cell's caption from the cursor
| Visual FoxPro |
|---|
*** MouseMove event - Occurs when the user moves the mouse. ***
LPARAMETERS Button,Shift,X,Y
with thisform.Gantt1
h = .ItemFromPoint(-1,-1,c,hit)
DEBUGOUT(.Items.CellCaption(h,c))
endwith
with thisform.Gantt1
.BeginUpdate
.LinesAtRoot = -1
.Columns.Add("Items")
with .Items
h = .AddItem("R1")
.InsertItem(h,0,"Cell 1.1")
.InsertItem(h,0,"Cell 1.2")
.DefaultItem = h
.ExpandItem(0) = .T.
h = .AddItem("R2")
.InsertItem(h,0,"Cell 2.1")
.InsertItem(h,0,"Cell 2.2")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
.EndUpdate
endwith
|
693. Is it possible to change the style for the vertical or horizontal grid lines, in the list area
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.DrawGridLines = -1
.GridLineStyle = 33
.Columns.Add("C1")
.Columns.Add("C2")
.Columns.Add("C3")
with .Items
h = .AddItem("Item 1")
.DefaultItem = h
.CellCaption(0,1) = "SubItem 1.2"
.DefaultItem = h
.CellCaption(0,2) = "SubItem 1.3"
h = .AddItem("Item 2")
.DefaultItem = h
.CellCaption(0,1) = "SubItem 2.2"
.DefaultItem = h
.CellCaption(0,2) = "SubItem 2.3"
endwith
.EndUpdate
endwith
|
692. How can I show the bars over the grid lines, i.e. so you cannot see the grid lines 'through' the bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.DrawGridLines = -1
.GridLineColor = RGB(220,220,220)
with .Chart
.PaneWidth(0) = 48
.FirstVisibleDate = {^2001-1-1}
.DrawGridLines = -1
.GridLineStyle = 256
.LevelCount = 2
with .Level(1)
.DrawGridLines = .T.
.GridLineColor = RGB(220,220,220)
endwith
with .Bars.Item("Task")
.Pattern = 1
.Height = 14
endwith
endwith
.Columns.Add("Column")
with .Items
h = .AddItem("Item 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-5},"A")
.AddBar(h,"Task",{^2001-1-8},{^2001-1-15},"B")
endwith
.EndUpdate
endwith
|
691. Is it possible to change the style for the vertical grid lines, in the chart area only
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.DrawGridLines = -1
.GridLineStyle = 12
with .Chart
.PaneWidth(0) = 48
.FirstVisibleDate = {^2001-1-1}
.DrawGridLines = -1
.GridLineStyle = 12
.LevelCount = 2
.Level(1).DrawGridLines = .T.
with .Level(0)
.GridLineColor = RGB(255,0,0)
.GridLineStyle = 32
endwith
.Bars.Item("Task").Pattern = 1
endwith
.Columns.Add("Column")
with .Items
h = .AddItem("Item 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-5},"A")
.AddBar(h,"Task",{^2001-1-8},{^2001-1-15},"B")
endwith
.EndUpdate
endwith
|
690. Is it possible to change the style for the grid lines, for instance to be solid not dotted
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.DrawGridLines = -1
.GridLineStyle = 48
with .Chart
.PaneWidth(0) = 48
.FirstVisibleDate = {^2001-1-1}
.DrawGridLines = -1
.GridLineStyle = 48
.LevelCount = 2
.Level(1).DrawGridLines = .T.
.Bars.Item("Task").Pattern = 1
endwith
.Columns.Add("Column")
with .Items
h = .AddItem("Item 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-5},"A")
.AddBar(h,"Task",{^2001-1-8},{^2001-1-15},"B")
endwith
.EndUpdate
endwith
|
689. How can I show the grid lines for the chart and list area
| Visual FoxPro |
|---|
with thisform.Gantt1
.DrawGridLines = -1
with .Chart
.PaneWidth(0) = 48
.FirstVisibleDate = {^2001-1-1}
.DrawGridLines = -1
.LevelCount = 2
.Level(1).DrawGridLines = .T.
.Bars.Item("Task").Pattern = 1
endwith
.Columns.Add("Column")
with .Items
h = .AddItem("Item 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-5},"A")
.AddBar(h,"Task",{^2001-1-8},{^2001-1-15},"B")
endwith
endwith
|
688. How can I get the link from the point
| Visual FoxPro |
|---|
*** MouseMove event - Occurs when the user moves the mouse. ***
LPARAMETERS Button,Shift,X,Y
with thisform.Gantt1
DEBUGOUT(.Chart.LinkFromPoint(-1,-1))
endwith
with thisform.Gantt1
.BeginUpdate
.Columns.Add("Task")
with .Chart
.FirstVisibleDate = {^2000-12-29}
.PaneWidth(.F.) = 64
.LevelCount = 2
endwith
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",12) = "L1"
h3 = .AddItem("Task 3")
.AddBar(h3,"Task",{^2001-1-8},{^2001-1-10},"K3")
.AddLink("L2",h2,"K2",h3,"K3")
.Link("L2",12) = "L2"
endwith
.EndUpdate
endwith
|
687. How can I get the bar from the point
| Visual FoxPro |
|---|
*** MouseMove event - Occurs when the user moves the mouse. ***
LPARAMETERS Button,Shift,X,Y
with thisform.Gantt1
DEBUGOUT(.Chart.BarFromPoint(-1,-1))
endwith
with thisform.Gantt1
.BeginUpdate
.Columns.Add("Task")
with .Chart
.FirstVisibleDate = {^2000-12-29}
.PaneWidth(.F.) = 64
.LevelCount = 2
endwith
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-4},{^2001-1-6},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
h3 = .AddItem("Task 3")
.AddBar(h3,"Task",{^2001-1-8},{^2001-1-10},"K3")
.AddLink("L2",h2,"K2",h3,"K3")
endwith
.EndUpdate
endwith
|
686. How can I get the level from the cursor
| Visual FoxPro |
|---|
*** MouseMove event - Occurs when the user moves the mouse. ***
LPARAMETERS Button,Shift,X,Y
with thisform.Gantt1
DEBUGOUT(.Chart.LevelFromPoint(-1,-1))
endwith
with thisform.Gantt1
with .Chart
.FirstVisibleDate = {^2010-6-25}
.PaneWidth(.F.) = 0
.LevelCount = 4
endwith
endwith
|
685. I display numbers in my chart, but the AddBar requires a date how can I add a bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Columns.Add("Tasks")
with .Chart
.PaneWidth(.F.) = 0
.NonworkingDays = 0
.FirstVisibleDate = 0
.ToolTip = ""
with .Level(0)
.Label = "<%i%>"
.ToolTip = ""
endwith
.UnitWidth = 24
endwith
with .Items
.AddBar(.AddItem("Task 1"),"Task",2,4)
.AddBar(.AddItem("Task 2"),"Task",6,10)
endwith
.EndUpdate
endwith
|
684. I display numbers in the chart's header but do not want to get displayed negative numbers. How can i do that
| Visual FoxPro |
|---|
*** DateChange event - Occurs when the first visible date is changed. *** LPARAMETERS nop with thisform.Gantt1 .Chart.FirstVisibleDate = 0 .ScrollPartEnable(2,1024) = .F. endwith with thisform.Gantt1 .BeginUpdate with .Chart .PaneWidth(.F.) = 0 .NonworkingDays = 0 .FirstVisibleDate = 0 .ToolTip = "" with .Level(0) .Label = "<%i%>" .ToolTip = "<%i%>" endwith .UnitWidth = 24 endwith .EndUpdate endwith |
683. How can I display numbers in the chart's header instead dates
| Visual FoxPro |
|---|
with thisform.Gantt1 .BeginUpdate with .Chart .PaneWidth(.F.) = 0 .NonworkingDays = 0 .FirstVisibleDate = 0 .ToolTip = "" with .Level(0) .Label = "<%i%>" .ToolTip = "" endwith .UnitWidth = 24 endwith .EndUpdate endwith |
682. How can I determine that a certain bar is the topmost
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
with .Chart
.PaneWidth(.F.) = 48
.FirstVisibleDate = {^2000-12-27}
endwith
with .Items
h = .AddItem("Bars A B")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"A")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"B")
.DefaultItem = h
.ItemBar(0,"B",513) = 255
h = .AddItem("Bars B A")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"B")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"A")
.DefaultItem = h
.ItemBar(0,"A",513) = 255
endwith
endwith
|
681. Is there any automatic way to change a property for all bars in the chart
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 2"),"Task",{^2001-1-2},{^2001-1-4},"K2")
.AddBar(.AddItem("Task 3"),"Task",{^2001-1-2},{^2001-1-4},"K3")
.AddBar(.AddItem("Task 4"),"Task",{^2001-1-2},{^2001-1-4},"K4")
.ItemBar(0,"<ALL>",513) = 255
endwith
endwith
|
680. I have an EBN file how can I apply different colors to it, so no need to create a new one
| Visual FoxPro |
|---|
with thisform.Gantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.SelBackColor = .BackColor
.SelForeColor = .ForeColor
.HasLines = 0
.Columns.Add("Default")
with .Items
h = .AddItem("Root")
hC = .InsertItem(h,0,"Default")
.DefaultItem = hC
.ItemBackColor(0) = 0x1000000
.DefaultItem = .InsertItem(h,0,"")
.ItemHeight(0) = 6
hC = .InsertItem(h,0,"Light Green")
.DefaultItem = hC
.ItemBackColor(0) = 0x100ff00
.DefaultItem = .InsertItem(h,0,"")
.ItemHeight(0) = 6
hC = .InsertItem(h,0,"Dark Green")
.DefaultItem = hC
.ItemBackColor(0) = 0x1007f00
.DefaultItem = .InsertItem(h,0,"")
.ItemHeight(0) = 6
hC = .InsertItem(h,0,"Magenta")
.DefaultItem = hC
.ItemBackColor(0) = 0x1ff7fff
.DefaultItem = .InsertItem(h,0,"")
.ItemHeight(0) = 6
hC = .InsertItem(h,0,"Yellow")
.DefaultItem = hC
.ItemBackColor(0) = 0x17fffff
.DefaultItem = .InsertItem(h,0,"")
.ItemHeight(0) = 6
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
679. How can I remove all bars from the chart
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 2"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 3"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 4"),"Task",{^2001-1-2},{^2001-1-4},"K2")
.ClearBars(0)
endwith
endwith
|
678. How can I change the color for all bars with a specified key
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 2"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 3"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 4"),"Task",{^2001-1-2},{^2001-1-4},"K2")
.ItemBar(0,"K1",513) = 255
endwith
endwith
|
677. Is there any automatic way to change a property for all bars with a specified key
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 2"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 3"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 4"),"Task",{^2001-1-2},{^2001-1-4},"K2")
.ItemBar(0,"K1",513) = 255
endwith
endwith
|
676. How can I remove all bars with specified key
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 2"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 3"),"Task",{^2001-1-2},{^2001-1-4},"K1")
.AddBar(.AddItem("Task 4"),"Task",{^2001-1-2},{^2001-1-4},"K2")
.RemoveBar(0,"K1")
endwith
endwith
|
675. Is there any option to show gradient bars without using EBN technology
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Chart.Bars.Item("Task")
.Color = RGB(255,0,0)
.StartColor = RGB(0,255,0)
.EndColor = RGB(255,255,0)
.Pattern = 32
endwith
with .Items
h = .AddItem("Task")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-5},"")
endwith
endwith
|
674. How can I disable the control's splitter so the user can't resize the list area
| Visual FoxPro |
|---|
with thisform.Gantt1 .OnResizeControl = 129 .Chart.PaneWidth(0) = 60 endwith |
673. How can I disable the control's splitter so the user can't resize the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1 .OnResizeControl = 128 .Chart.PaneWidth(1) = 60 endwith |
672. How can I define a bar that shows two colors, one up and one down, without using skin or EBN files
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Chart.Bars.Add("A")
.Color = RGB(255,0,0)
.Shape = 2
.Pattern = 1
endwith
with .Chart.Bars.Add("B")
.Color = RGB(128,0,0)
.Shape = 4
.Pattern = 1
endwith
.Chart.Bars.Add("A%B").Shortcut = "AB"
with .Items
h = .AddItem("Task 1")
.AddBar(h,"AB",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",10) = "1"
endwith
.EndUpdate
endwith
|
671. Does your control support RightToLeft property for RTL languages or right to left
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ScrollBars = 15
.LinesAtRoot = -1
with .Columns.Add("P1")
.Def(0) = .T.
.PartialCheck = .T.
endwith
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
.RightToLeft = .T.
.EndUpdate
endwith
|
670. Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.ScrollBars = 15
with .Columns
.Add("C1")
.Add("C2")
.Add("C3")
.Add("C4")
.Add("C5")
.Add("C6")
.Add("C7")
.Add("C8")
endwith
.RightToLeft = .T.
.EndUpdate
endwith
|
669. Can I display the cell's check box after the text
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Columns.Add("Column")
.Def(0) = .T.
.Def(34) = "caption,check"
endwith
with .Items
.DefaultItem = .AddItem("Caption 1")
.CellHasCheckBox(0,0) = .T.
.DefaultItem = .AddItem("Caption 2")
.CellHasCheckBox(0,0) = .T.
endwith
endwith
|
668. Can I change the order of the parts in the cell, as checkbox after the text, and so on
| Visual FoxPro |
|---|
with thisform.Gantt1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/"
var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/"
var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx"
var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
.Columns.Add("Column").Def(34) = "caption,check,icon,icons,picture"
with .Items
h = .AddItem("Text")
.DefaultItem = h
.CellImage(0,0) = 1
.DefaultItem = h
.CellHasCheckBox(0,0) = .T.
endwith
endwith
|
667. Can I have an image displayed after the text. Can I get that effect without using HTML content
| Visual FoxPro |
|---|
with thisform.Gantt1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/"
var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/"
var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx"
var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
.Columns.Add("Column").Def(34) = "caption,icon,check,icons,picture"
with .Items
h = .AddItem("Text")
.DefaultItem = h
.CellImage(0,0) = 1
endwith
endwith
|
666. Is there any option to print the columns section on each page
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Columns.Add("Col 1")
.Columns.Add("Col 2")
.MarkSearchColumn = .F.
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.LevelCount = 2
with .Items
h1 = .AddItem("Col 1")
.DefaultItem = h1
.CellCaption(0,1) = "Col 2"
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Col 1")
.DefaultItem = h2
.CellCaption(0,1) = "Col 2"
.AddBar(h2,"Task",{^2001-2-5},{^2001-2-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",6) = 0
endwith
.EndUpdate
with CreateObject("Exontrol.Print")
.Options = "ColumnsOnEveryPage=-2"
.PrintExt = thisform.Gantt1
.Preview
endwith
endwith
|
665. Is there any option to print the columns section on each page
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.LevelCount = 2
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-2-5},{^2001-2-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",6) = 0
endwith
.EndUpdate
with CreateObject("Exontrol.Print")
.Options = "ColumnsOnEveryPage=1"
.PrintExt = thisform.Gantt1
.Preview
endwith
endwith
|
664. How do I print the control's content
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",6) = 0
endwith
.EndUpdate
with CreateObject("Exontrol.Print")
.PrintExt = thisform.Gantt1
.Preview
endwith
endwith
|
663. How can I display the column using currency format and enlarge the font for certain values
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Columns.Add("Currency")
.Def(17) = 1
.FormatColumn = "len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)"
endwith
with .Items
.AddItem("1.23")
.AddItem("2.34")
.AddItem("9.94")
.AddItem("11.94")
.AddItem("1000")
endwith
endwith
|
662. How can I highlight only parts of the cells
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Columns.Add("")
.Def(17) = 1
.FormatColumn = "value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'"
endwith
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.InsertItem(h,0,"Child 3")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
661. How can I get the number of occurrences of a specified string in the cell
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("")
with .Columns.Add("occurrences")
.ComputedField = "lower(%0) count 'o'"
.FormatColumn = "'contains ' + value + ' of \'o\' chars'"
endwith
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1 oooof the root")
.InsertItem(h,0,"Child 2")
.InsertItem(h,0,"Child 3")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
660. How can I display dates in my format
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Columns.Add("Date")
.Def(17) = 1
var_s = "'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0)"
var_s = var_s + " +')'"
.FormatColumn = var_s
endwith
with .Items
.AddItem({^2001-1-21})
.AddItem({^2002-2-22})
.AddItem({^2003-3-13})
.AddItem({^2004-4-24})
endwith
endwith
|
659. How can I display dates in short format
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date").FormatColumn = "shortdate(value)"
with .Items
.AddItem({^2001-1-1})
.AddItem({^2002-2-2})
.AddItem({^2003-3-3})
.AddItem({^2004-4-4})
endwith
endwith
|
658. How can I display dates in long format
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date").FormatColumn = "longdate(value)"
with .Items
.AddItem({^2001-1-1})
.AddItem({^2002-2-2})
.AddItem({^2003-3-3})
.AddItem({^2004-4-4})
endwith
endwith
|
657. How can I display only the right part of the cell
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("")
with .Columns.Add("Right")
.ComputedField = "%0 right 2"
.FormatColumn = "'"+chr(34)+"' + value + '"+chr(34)+"'"
endwith
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.InsertItem(h,0,"SChild 3")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
656. How can I display only the left part of the cell
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("")
.Columns.Add("Left").ComputedField = "%0 left 2"
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.InsertItem(h,0,"SChild 3")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
655. How can I display true or false instead 0 and -1
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Boolean").FormatColumn = "value != 0 ? 'true' : 'false'"
with .Items
.AddItem(.T.)
.AddItem(.F.)
.AddItem(.T.)
.AddItem(0)
.AddItem(1)
endwith
endwith
|
654. How can I display icons or images instead numbers
| Visual FoxPro |
|---|
with thisform.Gantt1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/"
var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/"
var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx"
var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
with .Columns.Add("Icons")
.Def(17) = 1
.FormatColumn = "'The cell displays the icon <img>'+value+'</img> instead ' + value"
endwith
with .Items
.AddItem(1)
.AddItem(2)
.AddItem(3)
endwith
endwith
|
653. How can I display the column using currency
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Currency").FormatColumn = "currency(dbl(value))"
with .Items
.AddItem("1.23")
.AddItem("2.34")
.AddItem("0")
.AddItem(5)
.AddItem("10000.99")
endwith
endwith
|
652. How can I display the currency only for not empty cells
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Number")
.Columns.Add("Currency").ComputedField = "len(%0) ? currency(dbl(%0)) : ''"
with .Items
.AddItem("1.23")
.AddItem("2.34")
.AddItem("0")
.DefaultItem = .AddItem()
.ItemBackColor(0) = RGB(255,128,128)
.AddItem("10000.99")
endwith
endwith
|
651. Is there a function to display the number of days between two date including the number of hours
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Start").Width = 32
.Columns.Add("End")
var_s = "2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor("
var_s = var_s + "=:0))) ? (len(=:2) ? ' and ' : '') + =:3 + ' hour(s)' : '' )"
.Columns.Add("Duration").ComputedField = var_s
with .Items
h = .AddItem({^2001-1-11})
.DefaultItem = h
.CellCaption(0,1) = {^2001-1-14}
h = .AddItem({^2002-2-22 12:00:00})
.DefaultItem = h
.CellCaption(0,1) = {^2002-3-14 13:00:00}
h = .AddItem({^2003-3-13})
.DefaultItem = h
.CellCaption(0,1) = {^2003-4-11 11:00:00}
endwith
endwith
|
650. Is there a function to display the number of days between two date including the number of hours
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Start")
.Columns.Add("End")
var_s = ""+chr(34)+"D "+chr(34)+" + int(date(%1)-date(%0)) + "+chr(34)+" H "+chr(34)+" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))"
.Columns.Add("Duration").ComputedField = var_s
with .Items
h = .AddItem({^2001-1-11})
.DefaultItem = h
.CellCaption(0,1) = {^2001-1-14 23:00:00}
h = .AddItem({^2002-2-22 12:00:00})
.DefaultItem = h
.CellCaption(0,1) = {^2002-3-14 13:00:00}
h = .AddItem({^2003-3-13})
.DefaultItem = h
.CellCaption(0,1) = {^2003-4-11 11:00:00}
endwith
endwith
|
649. How can I display the number of days between two dates
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Start")
.Columns.Add("End")
.Columns.Add("Duration").ComputedField = "(date(%1)-date(%0)) + ' days'"
with .Items
h = .AddItem({^2001-1-11})
.DefaultItem = h
.CellCaption(0,1) = {^2001-1-14}
h = .AddItem({^2002-2-22})
.DefaultItem = h
.CellCaption(0,1) = {^2002-3-14}
h = .AddItem({^2003-3-13})
.DefaultItem = h
.CellCaption(0,1) = {^2003-4-11}
endwith
endwith
|
648. How can I get second part of the date
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date")
.Columns.Add("Second").ComputedField = "sec(date(%0))"
with .Items
.AddItem({^2001-1-11 10:10:00})
.AddItem({^2002-2-22 11:01:22})
.AddItem({^2003-3-13 12:23:01})
.AddItem({^2004-4-14 13:11:59})
endwith
endwith
|
647. How can I get minute part of the date
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date")
.Columns.Add("Minute").ComputedField = "min(date(%0))"
with .Items
.AddItem({^2001-1-11 10:10:00})
.AddItem({^2002-2-22 11:01:00})
.AddItem({^2003-3-13 12:23:00})
.AddItem({^2004-4-14 13:11:00})
endwith
endwith
|
646. How can I check the hour part only so I know it was afternoon
| Visual FoxPro |
|---|
with thisform.Gantt1
.ConditionalFormats.Add("hour(%0)>=12").Bold = .T.
.Columns.Add("Date")
.Columns.Add("Hour").ComputedField = "hour(%0)"
with .Items
.AddItem({^2001-1-11 10:00:00})
.AddItem({^2002-2-22 11:00:00})
.AddItem({^2003-3-13 12:00:00})
.AddItem({^2004-4-14 13:00:00})
endwith
endwith
|
645. What about a function to get the day in the week, or days since Sunday
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date")
.Columns.Add("WeekDay").ComputedField = "weekday(%0)"
with .Items
.AddItem({^2001-1-11 10:00:00})
.AddItem({^2002-2-22 11:00:00})
.AddItem({^2003-3-13 12:00:00})
.AddItem({^2004-4-14 13:00:00})
endwith
endwith
|
644. Is there any function to get the day of the year or number of days since January 1st
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date")
.Columns.Add("Day since January 1st").ComputedField = "yearday(%0)"
with .Items
.AddItem({^2001-1-11 10:00:00})
.AddItem({^2002-2-22 11:00:00})
.AddItem({^2003-3-13 12:00:00})
.AddItem({^2004-4-14 13:00:00})
endwith
endwith
|
643. How can I display only the day of the date
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date")
.Columns.Add("Day").ComputedField = "day(%0)"
with .Items
.AddItem({^2001-1-11 10:00:00})
.AddItem({^2002-2-22 11:00:00})
.AddItem({^2003-3-13 12:00:00})
.AddItem({^2004-4-14 13:00:00})
endwith
endwith
|
642. How can I display only the month of the date
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date")
.Columns.Add("Month").ComputedField = "month(%0)"
with .Items
.AddItem({^2001-1-1 10:00:00})
.AddItem({^2002-2-2 11:00:00})
.AddItem({^2003-3-3 12:00:00})
.AddItem({^2004-4-4 13:00:00})
endwith
endwith
|
641. How can I get only the year part from a date expression
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date")
.Columns.Add("Year").ComputedField = "year(%0)"
with .Items
.AddItem({^2001-1-1 10:00:00})
.AddItem({^2002-2-2 11:00:00})
.AddItem({^2003-3-3 12:00:00})
.AddItem({^2004-4-4 13:00:00})
endwith
endwith
|
640. Can I convert the expression to date
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Number")
.Columns.Add("Date").ComputedField = "date(dbl(%0))"
with .Items
.AddItem("-1.98")
.AddItem("30000.99")
.AddItem("3561.23")
.AddItem("1232.34")
endwith
endwith
|
639. Can I convert the expression to a number, double or float
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Number")
.Columns.Add("Number + 2").ComputedField = "dbl(%0)+2"
with .Items
.AddItem("-1.98")
.AddItem("0.99")
.AddItem("1.23")
.AddItem("2.34")
endwith
endwith
|
638. How can I display dates in long format
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date")
.Columns.Add("LongFormat").ComputedField = "longdate(%0)"
with .Items
.AddItem({^2001-1-1 10:00:00})
.AddItem({^2002-2-2 11:00:00})
.AddItem({^2003-3-3 12:00:00})
.AddItem({^2004-4-4 13:00:00})
endwith
endwith
|
637. How can I display dates in short format
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date")
.Columns.Add("ShortFormat").ComputedField = "shortdate(%0)"
with .Items
.AddItem({^2001-1-1 10:00:00})
.AddItem({^2002-2-2 11:00:00})
.AddItem({^2003-3-3 12:00:00})
.AddItem({^2004-4-4 13:00:00})
endwith
endwith
|
636. How can I display the time only of a date expression
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Date")
.Columns.Add("Time").ComputedField = "'time is:' + time(date(%0))"
with .Items
.AddItem({^2001-1-1 10:00:00})
.AddItem({^2002-2-2 11:00:00})
.AddItem({^2003-3-3 12:00:00})
.AddItem({^2004-4-4 13:00:00})
endwith
endwith
|
635. Is there any function to display currencies, or money formatted as in the control panel
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Number")
.Columns.Add("Currency").ComputedField = "currency(dbl(%0))"
with .Items
.AddItem("1.23")
.AddItem("2.34")
.AddItem("10000.99")
endwith
endwith
|
634. How can I convert the expression to a string so I can look into the date string expression for month's name
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Number")
.Columns.Add("Str").ComputedField = "str(%0) + ' AA'"
with .Items
.AddItem("-1.98")
.AddItem("0.99")
.AddItem("1.23")
.AddItem("2.34")
endwith
endwith
|
633. Can I display the absolute value or positive part of the number
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Number")
.Columns.Add("Abs").ComputedField = "abs(%0)"
with .Items
.AddItem("-1.98")
.AddItem("0.99")
.AddItem("1.23")
.AddItem("2.34")
endwith
endwith
|
632. Is there any function to get largest number with no fraction part that is not greater than the value
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Number")
.Columns.Add("Floor").ComputedField = "floor(%0)"
with .Items
.AddItem("-1.98")
.AddItem("0.99")
.AddItem("1.23")
.AddItem("2.34")
endwith
endwith
|
631. Is there any function to round the values base on the .5 value
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Number")
.Columns.Add("Round").ComputedField = "round(%0)"
with .Items
.AddItem("-1.98")
.AddItem("0.99")
.AddItem("1.23")
.AddItem("2.34")
endwith
endwith
|
630. How can I get or display the integer part of the cell
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Number")
.Columns.Add("Int").ComputedField = "int(%0)"
with .Items
.AddItem("-1.98")
.AddItem("0.99")
.AddItem("1.23")
.AddItem("2.34")
endwith
endwith
|
629. How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("").ComputedField = "proper(%0)"
with .Items
h = .AddItem("root")
.InsertItem(h,0,"child child")
.InsertItem(h,0,"child child")
.InsertItem(h,0,"child child")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
628. Is there any option to display cells in uppercase
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("").ComputedField = "upper(%0)"
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.InsertItem(h,0,"Chld 3")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
627. Is there any option to display cells in lowercase
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("").ComputedField = "lower(%0)"
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.InsertItem(h,0,"Chld 3")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
626. How can I mark the cells that has a specified type, ie strings only
| Visual FoxPro |
|---|
with thisform.Gantt1
.ConditionalFormats.Add("type(%0) = 8").ForeColor = RGB(255,0,0)
.Columns.Add("")
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,2)
.InsertItem(h,0,"Chld 3")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
625. How can I bold the items that contains data or those who displays empty strings
| Visual FoxPro |
|---|
with thisform.Gantt1
.ConditionalFormats.Add("not len(%1)=0").Bold = .T.
.Columns.Add("C1")
.Columns.Add("C2")
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
hC = .InsertItem(h,0,"Child 2")
.DefaultItem = hC
.CellCaption(0,1) = "1"
.InsertItem(h,0,"Child 3")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
624. Can I change the background color for items or cells that contains a specified string
| Visual FoxPro |
|---|
with thisform.Gantt1
.ConditionalFormats.Add("%0 contains 'hi'").BackColor = RGB(255,0,0)
.Columns.Add("")
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.InsertItem(h,0,"Chld 3")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
623. Is there any option to change the fore color for cells or items that ends with a specified string
| Visual FoxPro |
|---|
with thisform.Gantt1
.ConditionalFormats.Add("%0 endwith '22'").ForeColor = RGB(255,0,0)
.Columns.Add("")
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 1.22")
.InsertItem(h,0,"Child 2.22")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
622. How can I highlight the cells or items that starts with a specified string
| Visual FoxPro |
|---|
with thisform.Gantt1
.ConditionalFormats.Add("%0 startwith 'C'").Underline = .T.
.Columns.Add("")
with .Items
h = .AddItem("Root")
.InsertItem(h,0,"Child 1")
.InsertItem(h,0,"Child 2")
.InsertItem(h,0,"SChild 3")
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
621. How can I change the background color or the visual appearance using ebn for a particular column
| Visual FoxPro |
|---|
with thisform.Gantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
with .Columns
.Add("Column 1")
.Add("Column 2").Def(7) = 16777216
.Add("Column 3").Def(7) = 16777471
.Add("Column 4")
endwith
endwith
|
620. How can I change the background color for a particular column
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Columns
.Add("Column 1")
.Add("Column 2").Def(7) = 8439039
.Add("Column 3")
endwith
endwith
|
619. Is it possible to define level in terms of just increasing numbers (not a Date)
| Visual FoxPro |
|---|
with thisform.Gantt1 with .Chart .PaneWidth(0) = 32 .UnitWidth = 32 .FirstVisibleDate = 1000 .Level(0).Label = "<%i%>" endwith endwith |
618. How can I hide the non-working units ( days or hours )
| Visual FoxPro |
|---|
with thisform.Gantt1 .BeginUpdate with .Chart .PaneWidth(0) = 0 .LevelCount = 2 with .Level(0) .Label = "<%dddd%>" .Alignment = 1 endwith .Level(1).Label = 65536 .NonworkingHours = 16773375 .ShowNonworkingUnits = .F. endwith .EndUpdate endwith |
617. Is there a way to have the display show the word "Noon" instead "12:00 PM" in the chart's header/levels
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Chart
.PaneWidth(.F.) = 0
.FirstVisibleDate = {^2001-1-1 10:00:00}
.LevelCount = 3
with .Level(0)
.Label = "<b><%mmm%> <%d%>, <%yyyy%></b>"
.Alignment = 1
.Unit = 4096
endwith
with .Level(1)
.Label = "<%h%>:00 <%AM/PM%>"
.Alignment = 1
.Unit = 65536
.DrawTickLines = .T.
.DrawGridLines = .T.
.ReplaceLabel("12:00 PM") = "<fgcolor=0000FF><b>Noon</b></fgcolor>"
endwith
with .Level(2)
.Label = ""
.Unit = 1048576
.Count = 15
endwith
endwith
endwith
|
616. How can I change the selection background color in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.SelBackColor = RGB(255,0,0)
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-6},{^2001-1-14})
.DefaultItem = .FirstVisibleItem
.SelectItem(0) = .T.
endwith
endwith
|
615. How can I change the selection background color in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.SelBackColor = 0x1000000
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-6},{^2001-1-14})
.DefaultItem = .FirstVisibleItem
.SelectItem(0) = .T.
endwith
endwith
|
614. Is there any way to extend the selection on the chart
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.SelBackColor = thisform.Gantt1.SelBackColor
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-6},{^2001-1-14})
.DefaultItem = .FirstVisibleItem
.SelectItem(0) = .T.
endwith
endwith
|
613. How can I display the column's header using multiple lines
| Visual FoxPro |
|---|
with thisform.Gantt1
.HeaderHeight = 128
.HeaderSingleLine = .F.
.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.")
endwith
|
612. How can change the width, transparency, style, visual appearance ( EBN), of the vertical bar that shows the current date-time
| Visual FoxPro |
|---|
with thisform.Gantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
with .Chart
.LevelCount = 2
.Level(0).Label = 1048576
with .Level(1)
.Label = "<%ss%>"
.Count = 15
endwith
.MarkNowColor = 0x1000000
.MarkNowWidth = 6
.MarkNowTransparent = 50
endwith
.Columns.Add("Tasks")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2008-1-1},{^2018-1-1})
endwith
endwith
|
611. How can change the width, style, visual appearance ( EBN), of the vertical bar that shows the current time
| Visual FoxPro |
|---|
with thisform.Gantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
with .Chart
.LevelCount = 2
.Level(0).Label = 1048576
with .Level(1)
.Label = "<%ss%>"
.Count = 15
endwith
.MarkNowColor = 0x1000000
.MarkNowWidth = 6
endwith
.Columns.Add("Tasks")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2008-1-1},{^2018-1-1})
endwith
endwith
|
610. How can I show a vertical bar that indicates the current time
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Chart
.LevelCount = 2
.Level(0).Label = 1048576
with .Level(1)
.Label = "<%ss%>"
.Count = 15
endwith
.MarkNowColor = RGB(0,0,255)
.MarkNowWidth = 7
endwith
.Columns.Add("Tasks")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2008-1-1},{^2018-1-1})
endwith
endwith
|
609. How can I show semi-transparent the vertical bar that indicates the current time
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Chart
.LevelCount = 2
.Level(0).Label = 1048576
with .Level(1)
.Label = "<%ss%>"
.Count = 15
endwith
.MarkNowColor = RGB(0,0,255)
.MarkNowWidth = 7
.MarkNowTransparent = 50
endwith
.Columns.Add("Tasks")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2008-1-1},{^2018-1-1})
endwith
endwith
|
608. Is there any way to highlight or show a vertical bar that indicates the current time, from 15 to 15 seconds
| Visual FoxPro |
|---|
with thisform.Gantt1 .Chart.LevelCount = 2 .Chart.Level(0).Label = 1048576 with .Chart.Level(1) .Label = "<%ss%>" .Count = 15 endwith .Chart.MarkNowColor = RGB(0,0,255) .Chart.MarkNowCount = 15 .Chart.MarkNowWidth = 3 endwith |
607. Is there any way to highlight or show a vertical bar that indicates the current time, from minute to minute, hour and so on
| Visual FoxPro |
|---|
with thisform.Gantt1 with .Chart .UnitWidth = 48 .LevelCount = 1 .Level(0).Label = 1048576 .MarkNowColor = RGB(255,0,0) .MarkNowUnit = 1048576 .MarkNowWidth = .UnitWidth endwith endwith |
606. Is there any way to highlight or show a vertical bar that indicates the current time
| Visual FoxPro |
|---|
with thisform.Gantt1 .Chart.LevelCount = 2 .Chart.Level(0).Label = 1048576 with .Chart.Level(1) .Label = "<%ss%>" .Count = 15 endwith .Chart.MarkNowColor = RGB(255,0,0) endwith |
605. Is there a way of making a bar flash on the screen
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Flashy task")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",16) = 80
endwith
endwith
|
604. How can include the values in the inner cells in the drop down filter window
| Visual FoxPro |
|---|
with thisform.Gantt1
.DrawGridLines = -2
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Description(1) = ""
.Description(2) = ""
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 = .T.
.DisplayFilterPattern = .F.
.FilterList = 64
endwith
.ShowFocusRect = .F.
with .Items
s = .SplitCell(.AddItem("S 1.1"),0)
.CellCaption(0,s) = "S 1.2"
.CellHAlignment(0,s) = 1
.CellBackColor(0,s) = 0x1000000
.CellWidth(0,s) = 84
s = .SplitCell(.AddItem("S 2.1"),0)
.CellCaption(0,s) = "S 2.2"
.CellHAlignment(0,s) = 1
.CellWidth(0,s) = 84
s = .SplitCell(.AddItem("S 3.1"),0)
.CellCaption(0,s) = "S 3.2"
.CellHAlignment(0,s) = 1
.CellBackColor(0,s) = 0x1000000
.CellWidth(0,s) = 84
endwith
endwith
|
603. How can I sort the value gets listed in the drop down filter window
| Visual FoxPro |
|---|
with thisform.Gantt1
.LinesAtRoot = -1
.MarkSearchColumn = .F.
.Description(0) = ""
.Description(1) = ""
.Description(2) = ""
with .Columns.Add("P1")
.DisplayFilterButton = .T.
.DisplayFilterPattern = .F.
.FilterList = 16
endwith
with .Columns.Add("P2")
.DisplayFilterButton = .T.
.DisplayFilterPattern = .F.
.FilterList = 32
endwith
with .Items
h = .AddItem("Z3")
.DefaultItem = h
.CellCaption(0,1) = "C"
.DefaultItem = .InsertItem(h,0,"Z1")
.CellCaption(0,1) = "B"
.DefaultItem = .InsertItem(h,0,"Z2")
.CellCaption(0,1) = "A"
.DefaultItem = h
.ExpandItem(0) = .T.
endwith
endwith
|
602. Is there a way to break the hours into 15 minute increments just showing lines instead of the minute numbers
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.FirstVisibleDate = {^2008-2-5}
.Chart.LevelCount = 3
.Chart.Level(0).Label = "<b><%mmm%> <%dd%></b> <%yyyy%> "
with .Chart.Level(1)
.Label = "<%hh%>"
.Alignment = 1
endwith
with .Chart.Level(2)
.Label = ""
.Unit = 1048576
.Count = 15
endwith
.Chart.UnitWidth = 6
.EndUpdate
endwith
|
601. How can I change the visual appearance of the milestone bar using EBN
| Visual FoxPro |
|---|
with thisform.Gantt1
var_s = "gBFLBCJwBAEHhEJAEGg4BKMMQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiF4aRTHUKAAKQahLEaSZLh"
var_s = var_s + "EZRQiqA4sS5FQBSBDQFwSByEY6mSaYJAWK4tCyNM7SfQAbxnAgYaLAAYRUjuHZOTZAc4UfAdFL/K4AKrfeZIeAiCRQGiYZyH"
var_s = var_s + "KaRShjDwXKLIIjbJhkNoJChCNQgBScPgxCx8JypaCaar2fjQM6zWAMdb2Cz7PjDH7wPA1WYJRaDYjhcB4LheAqGXBWUYLYb8"
var_s = var_s + "XS3EKJYhiWA4HjqFjGJpcEzPbRiNx3H6SABlLLaLo7JpGO52FrTHZjXyzLqBVpoOyEbrmcozYzjN41RpWETfQYDcwteqcLpr"
var_s = var_s + "hGVZrm6dp8j4bAnDQP5Uh+OpcH6R4Lg2YJvEIeg6kWEoJB2ZZyG6GoLCSXxtG+IZ1GmfhJjcawNFWfB/h+V5pnUc5VhWeZ4B"
var_s = var_s + "MX4jlySwtiAJodlEYRaBYFgHHgIA2gGExkFUdxFl6A5hgUbgXgcVRzFiXA3CICARAEgI"
.VisualAppearance.Add(1,var_s)
with .Chart
.FirstVisibleDate = {^2001-1-1}
with .Bars.Copy("Task","Milestone")
.Color = 0x1000000
.Height = 16
endwith
endwith
.Columns.Add("Tasks")
with .Items
.AddBar(.AddItem("Task 1"),"Milestone",{^2001-1-2},{^2001-1-3})
endwith
endwith
|
600. How can I change the visual appearance of the summary bar using EBN
| Visual FoxPro |
|---|
with thisform.Gantt1
var_s = "gBFLBCJwBAEHhEJAEGg4BGICg6AADACAxRDAMgBQKAAzQFAYZhhBaERiGEaIJhUAIIRZGMQxXAcMQvDSKQJhGDAADEMgyAJC"
var_s = var_s + "IxjPIgZBoGqPBpASQJUhkMocR7HMygBIkSRNA8kMwxdQEaw9ECRIDpGaYWTFDhsABTVQRLL0Tw9ISERqoSSaGgkCYaA7CNJ0"
var_s = var_s + "PBNJSjJ6LJZGURbKqyCQ1DBbUB3BaUaQ9JaKa7pKa7cpWKIqSxEMrxcLFcT5DSbYDxGjLEhmPZBVZQNBxtJbFQHWJCNgzVAd"
var_s = var_s + "OAAfzQM70GpMQoWJYeVpEObSBD1dABTCBczADYoex7ID+aJuGiYVZdWxJOjfbhkTTIJAaCawABrWxR8iHN5paTnUpzDjwbg0"
var_s = var_s + "kqRRyr+XwjA8Go/HSBp6g6KJTFcGpWmYdg8H6dJTH0EZelueBfBuLwyBMd50nIfR+kmXB4BECQUAaEYMHQHRHCGFRYI2ZAwE"
var_s = var_s + "IExghQZA2EIQoGGoEhOgGBBYlAeYYHMWJcDcGx4HYHoHmICIFjeBohkaDAAC2DAjBYJIIiKSI2CSC5hjQJBsCOCwYiIKoGmK"
var_s = var_s + "WJkn6DANkiWgzCwYwolAcQkksWJaCuDohlicg2hDQR+EELBInKcJohMJBomILoGmISQuESFBOgkOQDg+SoTEyfoXCUSImDyG"
var_s = var_s + "ZhjkaI1hcJgTnoXgACYCYKG2GQkEkVJchKIoZDIbIciYKY+HEP4mlmThSg+aBIlKBYUCUKgGHyG4jEkPoKiAKI6D6EokGkSg"
var_s = var_s + "yECF5jEKVJZD+aYqHKG4nGoCh+iKJ4qEqBokh+KYag6JoqmqKo2iWJpqgKRJHDiT5qk6NYtCsapmjiLprHqdo6i8awan6Qov"
var_s = var_s + "CwOp6kSLQsBsHpGjKbBbBaMYhm0CgalILBtBsUpTiGUIUAQgIA=="
.VisualAppearance.Add(1,var_s)
with .Chart
.FirstVisibleDate = {^2001-1-1}
with .Bars.Copy("Task","Summary")
.Color = 0x1000000
.Height = 16
endwith
endwith
.Columns.Add("Tasks")
with .Items
.AddBar(.AddItem("Task 1"),"Task",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Task 2"),"Summary",{^2001-1-5},{^2001-1-7})
endwith
endwith
|
599. How can I change the visual appearance of the task bar using EBN
| Visual FoxPro |
|---|
with thisform.Gantt1
var_s = "gBFLBCJwBAEHhEJAEGg4BGoCg6AADACAxRDAMgBQKAAzQFAYZhhBaERiGEaIJhUAIIRZGMQxXAcMQvDSKQJhGLhQiSJoJDSB"
var_s = var_s + "EgSXDIZQ5D6OZYACDJQACJYJTbAYzyPJkPRAA6EZCmGAwCglf5HABRb7xNLkbQ8GySKJnWCQJhoD5BSLCNRUTRFFQtGgZBpE"
var_s = var_s + "WwLCjQNQwWLKFoTJIEPSBDKqYDoKYqTgOOZOThHQz3HakQRdAa/ZpnaKpUo2d47XjMWBwGA0EzeAAGaxoShqdoiFaGU7UOJV"
var_s = var_s + "JBOGwHK6BchoMAKbp6XoVWRaOAWLZWVABM7XLZxbLccyGfZ1XhdV5UbqUMznR7PNrjLKIJpCOJbbyAFwgBaeQABYLhK7iHRm"
var_s = var_s + "i8XYwjMWpjFWOx1GIB5LmgdB4HCEBECSIBpDGHQOicIwokYPImikEIJj6eJIloEgogSc40FGcJEFiYZIG2VIoAURw1g2QxyA"
var_s = var_s + "QNwNAMPJOgIYI4CoDIBmAeAKBIUpQDUKJYDoTpIB4vxgmgdgNgeYZDDoFw7CEJhQn+BohmKfImCWSZRlgYwikYMQ0gwF4Dni"
var_s = var_s + "TA/gwBJYjQYwsgoIg6AyCRQDiIJODAZBImoOguAmMZ4lQLIJjOMI3CYZJpEIT4KiKSI6DqD5ZGAAgHC2DAjBYR4SGUGYGE+G"
var_s = var_s + "IlCmFhRhIB5iFAbwWsiJgMhoCoxngV4ZCcSYOHaGYnHmIg8COJpoCoOISmSWZeHWHgoEkRoAg4EIYB4NogmiSgKg6GRjGoJg"
var_s = var_s + "Fh+ZJKDaBYjmgaQygiBRUHmbhoDsTAyiqIIoioGoOw8aoKhKKoemeOIaAeF5HmqHoqiyKxKgYaN/locgBiuZRojoVIok8cws"
var_s = var_s + "jaMBLGqDoAhGIpoEYWYEmAIxUkQLZmgiYg2g2I4JiCQwuAqWIOIkEAQICA=="
.VisualAppearance.Add(1,var_s)
with .Chart
.FirstVisibleDate = {^2001-1-1}
with .Bars.Item("Task")
.Color = 0x1000000
.Height = 16
endwith
endwith
.Columns.Add("Tasks")
with .Items
.AddBar(.AddItem("Task 1"),"Task",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Task 2"),"Task",{^2001-1-5},{^2001-1-7})
endwith
endwith
|
598. How can I change the visual appearance of the task bar using EBN
| Visual FoxPro |
|---|
with thisform.Gantt1
var_s = "gBFLBCJwBAEHhEJAEGg4BZsIQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiGoZATCMbDBIcSwSGgCJCj"
var_s = var_s + "eS4ZDKHIXSxFUKTBAcSQTGyBRokaYZRi6A4+TRPETTWAEcABHSbQCoKTKAoCHpLQLMYxDKItJSpGYaRgqWCaZpuUIaUzKVbx"
var_s = var_s + "bK9CSMGiQbIsOJrBqqQozWZHVITLR9VgBNqga7uGR5DoqdovU5dVTVda9Ly5LSsMQvfALCqOe45URdNp3RiVBYfI6+cZvfJL"
var_s = var_s + "Wh4NqeAbCMC1UJoYhlUKCBg0TRoVo9AIDX5QWaYXC0AkBA=="
.VisualAppearance.Add(1,var_s)
with .Chart
.FirstVisibleDate = {^2001-1-1}
with .Bars.Item("Task")
.Color = 0x1000000
.Height = 16
endwith
endwith
.Columns.Add("Tasks")
with .Items
.AddBar(.AddItem("Task 1"),"Task",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Task 2"),"Task",{^2001-1-5},{^2001-1-7})
endwith
endwith
|
597. How can I clip the HTML text or caption inside the bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Chart.Bars.Item("Task")
.Pattern = 32
.Height = 13
endwith
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"K1","This is a bit of text that get's clipped")
.DefaultItem = h
.ItemBar(0,"K1",4) = 3
endwith
endwith
|
596. How can I align the text/caption on the scroll bar
| Visual FoxPro |
|---|
with thisform.Gantt1 .ScrollPartCaption(1,512) = "left" .ScrollPartCaptionAlignment(1,512) = 0 .ScrollPartCaption(1,128) = "right" .ScrollPartCaptionAlignment(1,128) = 2 .ColumnAutoResize = .F. .Columns.Add(1) .Columns.Add(2) .Columns.Add(3) .Columns.Add(4) endwith |
595. How do I programmatically control the position of the horizontal scroll bar in the chart area, so I can specify a range of dates to scorll within
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Columns.Add("Task")
with .Chart
.LevelCount = 2
.PaneWidth(0) = 56
.ScrollRange(0) = {^2001-1-1}
.ScrollRange(1) = {^2001-1-31}
.FirstVisibleDate = {^2001-1-12}
endwith
.ScrollPartCaption(2,512) = .Chart.ScrollRange(0)
.ScrollPartCaptionAlignment(2,512) = 0
.ScrollPartCaption(2,128) = .Chart.ScrollRange(1)
.ScrollPartCaptionAlignment(2,128) = 2
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2001-1-15},{^2001-1-18},"K1")
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2001-1-5},{^2001-1-11},"K1")
endwith
.EndUpdate
endwith
|
594. How can I programmatically control the position of the "splitter" between the item list on the left side and the gantt chart on the right
| Visual FoxPro |
|---|
with thisform.Gantt1 .Chart.PaneWidth(.T.) = 196 endwith |
593. How can I add a milestone bar and some text in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Milestone",{^2001-1-2},{^2001-1-2},0,"<a1>text</a> outside")
.DefaultItem = h
.ItemBar(0,0,4) = 18
endwith
endwith
|
592. How can I display or align the bar's caption or text outside of the bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
.DefaultItemHeight = 32
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2001-1-3},{^2001-1-5},"K1")
.DefaultItem = h
.ItemBar(0,"K1",3) = "<b>to do</b>"
.DefaultItem = h
.ItemBar(0,"K1",4) = 18
.DefaultItem = h
.ItemBar(0,"K1",5) = 16
endwith
endwith
|
591. How can I display or align the bar's caption or text outside of the bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2001-1-4},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",3) = "to do"
.DefaultItem = h
.ItemBar(0,"K1",4) = 16
endwith
endwith
|
590. How can I display or align the bar's caption or text outside of the bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",3) = "to do "
.DefaultItem = h
.ItemBar(0,"K1",4) = 18
endwith
endwith
|
589. Is there any option to count the non-working days
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.FirstVisibleDate = {^2002-1-1}
.Columns.Add("Task")
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2002-1-2},{^2002-1-4},"A")
var_ItemBar = .ItemBar(h,"A",258)
endwith
.EndUpdate
endwith
|
588. Is there any option to count or to specify the working days
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.FirstVisibleDate = {^2002-1-1}
.Columns.Add("Task")
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2002-1-2},{^2002-1-4},"A")
var_ItemBar = .ItemBar(h,"A",257)
endwith
.EndUpdate
endwith
|
587. How do I select the next row/item
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Column")
with .Items
.AddItem("Item 1")
.AddItem("Item 2")
.AddItem("Item 3")
.DefaultItem = .NextVisibleItem(.FocusItem)
.SelectItem(0) = .T.
endwith
endwith
|
586. How do I define the visual appearance of the bar by using your EBN/skin files
| Visual FoxPro |
|---|
with thisform.Gantt1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Chart.Bars.Copy("Task","EBN").Color = 0x1000000
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"EBN",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Item 2"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
585. Is it possible to have an "empty box" pattern for the bars
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.Bars.Copy("Task","Box").Pattern = 32
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Box",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
584. How do I enable resizing ( changing the height ) the items at runtime
| Visual FoxPro |
|---|
with thisform.Gantt1
.ItemsAllowSizing = -1
.DrawGridLines = 1
.ScrollBySingleLine = .T.
.Columns.Add("Column")
.Items.AddItem("Item 1")
with .Items
.DefaultItem = .AddItem("Item 2")
.ItemHeight(0) = 48
endwith
.Items.AddItem("Item 3")
endwith
|
583. How do I enable resizing all the items at runtime
| Visual FoxPro |
|---|
with thisform.Gantt1
.ItemsAllowSizing = 1
.DrawGridLines = 1
.Columns.Add("Column")
.Items.AddItem("Item 1")
with .Items
.DefaultItem = .AddItem("Item 2")
.ItemHeight(0) = 48
endwith
.Items.AddItem("Item 3")
endwith
|
582. I'm trying to use the percentage display in my gantt's bars. Unfortunately, I don't see any percentage on the gantt chart
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.Bars.Copy("Task","BarName").Color = RGB(0,0,0)
.Chart.Bars.Add("BarName%Progress").Shortcut = "Percent"
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Percent",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",10) = ".4"
.DefaultItem = h
.ItemBar(0,"K1",12) = .T.
endwith
endwith
|
581. How I can show Months in Time Unit panel into Roman numerals
| Visual FoxPro |
|---|
with thisform.Gantt1 .Chart.LevelCount = 2 .Chart.Level(0).Label = 0 with .Chart.Level(1) .Label = "<%mr%>" .Unit = 16 endwith endwith |
580. Can I show a bar with a different vertical position
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Opaque")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"K1")
h = .AddItem("Transparent and Opaque")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",15) = "-3"
.DefaultItem = h
.ItemBar(0,"K1",16) = 80
.AddBar(h,"Task",{^2001-1-3},{^2001-1-7},"K2")
endwith
endwith
|
579. How can I show transparent and opaque bars in the same chart
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Opaque")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"K1")
h = .AddItem("Transparent and Opaque")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",15) = "-3"
.DefaultItem = h
.ItemBar(0,"K1",16) = 80
.AddBar(h,"Task",{^2001-1-3},{^2001-1-7},"K2")
endwith
endwith
|
578. How can I draw bars using transparent colors
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.ShowTransparentBars = 60
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.Bars.Copy("Task","TaskR").Color = RGB(255,0,0)
.Chart.PaneWidth(0) = 48
.Columns.Add("Column")
with .Items
h = .AddItem("Item 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-5},"A")
.AddBar(h,"TaskR",{^2001-1-4},{^2001-1-7},"B")
endwith
endwith
|
577. Can I change the Task bar so it display a Progress or a Percent bar, but it is splitted when the task intersect a non working area
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Chart
.FirstVisibleDate = {^2001-1-1}
.Bars.Add("Task%Progress:Split").Shortcut = "Task"
endwith
.Columns.Add("Column")
with .Items
h = .AddItem("Item 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-16},"K1")
.DefaultItem = h
.ItemBar(0,"K1",10) = ".15"
.DefaultItem = h
.ItemBar(0,"K1",12) = .T.
endwith
endwith
|
576. Can I change the Task bar so it display a Progress or a Percent bar
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Chart
.FirstVisibleDate = {^2001-1-1}
.Bars.Add("Task%Progress").Shortcut = "Task"
endwith
.Columns.Add("Column")
with .Items
h = .AddItem("Item 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-5},"K1")
.DefaultItem = h
.ItemBar(0,"K1",10) = ".15"
.DefaultItem = h
.ItemBar(0,"K1",12) = .T.
endwith
endwith
|
575. How can I remove the filter
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Columns.Add("Column")
.DisplayFilterButton = .T.
.FilterType = 1
endwith
.ApplyFilter
.ClearFilter
endwith
|
574. I use the ShowEmptyBars property, but I display seconds from 15 to 15, and the bars are not shown correctly. What can I do
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
with .Chart
.FirstVisibleDate = {^2002-1-1}
.LevelCount = 2
.Level(0).Label = 1048576
with .Level(1)
.Label = "<%ss%>"
.Count = 15
endwith
.ShowEmptyBars = 15
.ShowEmptyBarsUnit = 16777216
.PaneWidth(0) = 48
endwith
.Columns.Add("Task")
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2002-1-1 0:00:15},{^2002-1-1 0:00:15},"A")
.AddBar(h,"Task",{^2002-1-1 0:01:15},{^2002-1-1 0:01:30},"B")
.AddLink("AB",h,"A",h,"B")
endwith
.EndUpdate
endwith
|
573. I need the bar works like in the MS Project, where task from 1/1/2001 to 1/1/2001 must display 1 day
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.ShowEmptyBars = 1
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-1},{^2001-1-1})
endwith
endwith
|
572. I have a bar that has the start and end date identical. Nothing is displayed. What can I do
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.ShowEmptyBars = 1
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-2})
endwith
endwith
|
571. How can I display seconds and bars for 15 to 15
| Visual FoxPro |
|---|
with thisform.Gantt1
.BeginUpdate
.Chart.FirstVisibleDate = "1/1/2002 00:00"
.Chart.LevelCount = 2
.Chart.Level(0).Label = 1048576
with .Chart.Level(1)
.Label = "<%ss%>"
.Count = 15
endwith
.Chart.PaneWidth(0) = 48
.Chart.Bars.Copy("Task","Task2").Color = RGB(255,0,0)
.Columns.Add("Task")
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task","1/1/2002 00:00:15","1/1/2002 00:00:45","A")
.AddBar(h,"Task2","1/1/2002 00:01:15","1/1/2002 00:01:45","B")
.AddLink("AB",h,"A",h,"B")
endwith
.EndUpdate
endwith
|
570. How can I copy a predefined bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.Bars.Copy("Task","T2").Color = RGB(255,0,0)
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"T2",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
569. How can I define my own custom bar, using my icons or pictures
| Visual FoxPro |
|---|
with thisform.Gantt1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/"
var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/"
var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx"
var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
with .Chart.Bars
.AddShapeCorner(12345,1)
.AddShapeCorner(22345,2)
with .Add("T2")
.StartShape = 22345
.EndShape = 12345
.EndColor = RGB(255,0,0)
.Pattern = 2
.Color = RGB(255,0,255)
.Shape = 19
endwith
endwith
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"T2",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
568. How can I access a predefined bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
.Chart.Bars.Item("Task").Color = RGB(255,0,0)
endwith
|
567. How can I access a predefined bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
.Chart.Bars.Item("Task").Color = RGB(255,0,0)
endwith
|
566. How can I remove all predefined bars
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
565. How can I remove a predefined bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
564. How do I get the number of predefined bars
| Visual FoxPro |
|---|
with thisform.Gantt1 .Columns.Add(thisform.Gantt1.Chart.Bars.Count) endwith |
563. How can I change the height of the task bar
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Chart.Bars.Copy("Task","T2")
.EndShape = 2
.EndColor = RGB(255,0,0)
endwith
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"T2",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Item 2"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
562. How can I change the ending shape for all task bars
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Chart.Bars.Item("Task")
.EndShape = 1
.EndColor = RGB(255,0,0)
endwith
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
561. How can I change the height of the task bar
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Chart.Bars.Copy("Task","T2")
.StartShape = 2
.StartColor = RGB(255,0,0)
endwith
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"T2",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Item 2"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
560. How can I change the starting shape for all task bars
| Visual FoxPro |
|---|
with thisform.Gantt1
with .Chart.Bars.Item("Task")
.StartShape = 1
.StartColor = RGB(255,0,0)
endwith
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
559. How can I change the height of the task bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.Bars.Copy("Task","T2").Height = 17
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"T2",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Item 2"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
558. How can I change the height for all task bars
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.Bars.Item("Task").Height = 17
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
557. How can I change the color of the task bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.Bars.Copy("Task","T2").Color = RGB(255,0,0)
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"T2",{^2001-1-2},{^2001-1-4})
.AddBar(.AddItem("Item 2"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
556. How can I change the color for all task bars
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.Bars.Item("Task").Color = RGB(255,0,0)
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
555. How can I change the shape for all task bars
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.Bars.Item("Task").Shape = 4
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
554. How can I change the shape of the task bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.Bars.Copy("Task","T2").Shape = 19
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"T2",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
553. How can I change the pattern or style for all task bars
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.Bars.Item("Task").Pattern = 5
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
552. How can I change the pattern of the task bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Chart.Bars.Copy("Task","T2").Pattern = 5
.Chart.FirstVisibleDate = {^2001-1-1}
.Columns.Add("Column")
with .Items
.AddBar(.AddItem("Item 1"),"T2",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
551. How can I add a percent bar in the chart area, so the task bar is splited for non working days or hours
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.Bars.Add("Task%Progress:Split").Shortcut = "TS"
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Task 1")
.AddBar(h,"TS",{^2001-1-2},{^2001-1-16},"P1")
.DefaultItem = h
.ItemBar(0,"P1",10) = ".14"
.DefaultItem = h
.ItemBar(0,"P1",12) = .T.
endwith
endwith
|
550. How can I add a bar in the chart area, so the task bar is splited for non working days or hours
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.Bars.Add("Task:Split").Shortcut = "TS"
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"TS",{^2001-1-2},{^2001-1-16})
endwith
endwith
|
549. How can I add a split bar in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Split",{^2001-1-2},{^2001-1-6})
endwith
endwith
|
548. How can I add a progress bar in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Progress",{^2001-1-2},{^2001-1-6})
endwith
endwith
|
547. How can I add a milestone bar in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Milestone",{^2001-1-2},{^2001-1-2})
endwith
endwith
|
546. How can I add a summary bar in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Summary",{^2001-1-2},{^2001-1-6})
endwith
endwith
|
545. How can I add a project summary bar in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Project Summary",{^2001-1-2},{^2001-1-6})
endwith
endwith
|
544. How can I add a deadline bar in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Deadline",{^2001-1-2},{^2001-1-2})
endwith
endwith
|
543. How can I add a task bar in the chart area
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
.AddBar(.AddItem("Task 1"),"Task",{^2001-1-2},{^2001-1-4})
endwith
endwith
|
542. How can I assign a picture or an icon to a bar in the chart
| Visual FoxPro |
|---|
with thisform.Gantt1
.HTMLPicture("p1") = "c:\exontrol\images\zipdisk.gif"
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Task 1")
.DefaultItem = h
.ItemHeight(0) = 48
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",3) = "<img>p1</img>"
.DefaultItem = h
.ItemBar(0,"K1",4) = 2
endwith
endwith
|
541. How can I assign a picture or an icon to a bar in the chart
| Visual FoxPro |
|---|
with thisform.Gantt1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/"
var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/"
var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx"
var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",3) = "<img>1</img>"
endwith
endwith
|
540. How can I display or add an anchor or a hyperlink in the link
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-1},{^2001-1-3},"K1")
.AddItem("")
.AddItem("")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",12) = "just <a1>link</a>"
endwith
endwith
|
539. How can I display a picture or an icon on the link
| Visual FoxPro |
|---|
with thisform.Gantt1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/"
var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/"
var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx"
var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-1},{^2001-1-3},"K1")
.AddItem("")
.AddItem("")
.AddItem("")
.AddItem("")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",12) = "just <img>1</img> link"
endwith
endwith
|
538. How can I display a picture or an icon on the link
| Visual FoxPro |
|---|
with thisform.Gantt1
.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-1},{^2001-1-3},"K1")
.AddItem("")
.AddItem("")
.AddItem("")
.AddItem("")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",12) = "<img>pic1</img><br><br>just a link"
endwith
endwith
|
537. How can I display some HTML text or caption on link
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-1},{^2001-1-3},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",12) = "L<b>1</b>"
endwith
endwith
|
536. How can I assign a tooltip to a link
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-1},{^2001-1-3},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",12) = "L<b>1</b>"
.Link("L1",13) = "This is a bit of text that's shown when the cursor hovers the link"
endwith
endwith
|
535. Can I change the width or the size of the link
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",9) = 0
.Link("L1",10) = 2
endwith
endwith
|
534. Can I change the style of the link
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",9) = 4
endwith
endwith
|
533. Can I change the color of the link
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",8) = 255
endwith
endwith
|
532. Can I change the part of the bar where the link ends
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",6) = 1
.Link("L1",7) = 1
endwith
endwith
|
531. Can I change the part of the bar where the link starts
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",6) = 0
endwith
endwith
|
530. How can I associate an extra data to a link
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",5) = "your data"
endwith
endwith
|
529. How can I show or hide a specified link
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",3) = .F.
endwith
endwith
|
528. How can I get the key of the bar where the link end
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.AddItem(.Link("L1",3))
endwith
endwith
|
527. How can I get the key of the bar where the link starts
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.AddItem(.Link("L1",1))
endwith
endwith
|
526. How can I get the handle of the item where the link ends
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.AddItem(.Link("L1",2))
endwith
endwith
|
525. How can I get the handle of the item where the link starts
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.AddItem(.Link("L1",0))
endwith
endwith
|
524. How can I enumerate the links in the chart
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.AddLink("L2",h2,"K2",h1,"K1")
.AddItem(.FirstLink)
.AddItem(.NextLink(.FirstLink))
endwith
endwith
|
523. How can I access the properties and method of the link between two bars
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-1},{^2001-1-3},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.Link("L1",12) = "L<b>1</b>"
endwith
endwith
|
522. How can I remove a link between two bars
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.ClearLinks
endwith
endwith
|
521. How can I remove a link between two bars
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
.RemoveLink("L1")
endwith
endwith
|
520. How do I add a link between two bars
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
.AddLink("L1",h1,"K1",h2,"K2")
endwith
endwith
|
519. How do I ungroup the bars in the chart
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
endwith
endwith
|
518. How do I group one or more bars in the chart, so they are moved together
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h1 = .AddItem("Task 1")
.AddBar(h1,"Task",{^2001-1-2},{^2001-1-4},"K1")
h2 = .AddItem("Task 2")
.AddBar(h2,"Task",{^2001-1-5},{^2001-1-7},"K2")
endwith
endwith
|
517. How do I find the number or count of bars in the item
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2001-1-1},{^2001-1-2},"K1")
.AddBar(h,"Task",{^2001-1-4},{^2001-1-6},"K2")
.DefaultItem = h
.ItemBar(0,"K2",3) = .ItemBar(h,0,256)
endwith
endwith
|
516. How can I assign any extra data to a bar in the chart
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Task",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",17) = "your data"
endwith
endwith
|
515. Is there any way to change the background color for percent value being displayed on the progress bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.Bars.Add("Task%Progress").Shortcut = "Percent"
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Percent",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",10) = ".35"
.DefaultItem = h
.ItemBar(0,"K1",12) = .T.
.DefaultItem = h
.ItemBar(0,"K1",11) = "<bgcolor=FF0000> %p%</bgcolor>"
endwith
endwith
|
514. Is there any way to change the color for percent value being displayed on the progress bar
| Visual FoxPro |
|---|
with thisform.Gantt1
.Columns.Add("Task")
.Chart.FirstVisibleDate = {^2001-1-1}
.Chart.Bars.Add("Task%Progress").Shortcut = "Percent"
with .Items
h = .AddItem("Task 1")
.AddBar(h,"Percent",{^2001-1-2},{^2001-1-6},"K1")
.DefaultItem = h
.ItemBar(0,"K1",10) = ".35"
.DefaultItem = h
.ItemBar(0,"K1",12) = .T.
.DefaultItem = h
.ItemBar(0,"K1",11) = "<fgcolor=FF0000>%p%</fgcolor>"
endwith
endwith
|
513. Is there any way to change the font for percent value being displayed on the progress bar