1900:
InsertControlItem / UserEditor / A2X:

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.BackColor = 15790320;
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.ConditionalFormats.Add("1 = 1",null).Bold = true;
	G2antt1.Columns.Add("Type").Alignment = 2;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("1. A ProgID such as \"MSCAL.Calendar.7\"");
		var_Items.ItemDivider(h) = 0;
		var hX = var_Items.InsertControlItem(0,"MSCAL.Calendar","");
		var_Items.ItemObject(hX).BackColor = 16777215;
		h = var_Items.AddItem("2. A CLSID such as \"{0036F83C-D892-4B7B-AA0B-BEDD8D16A738}\"");
		var_Items.ItemDivider(h) = 0;
		hX = var_Items.InsertControlItem(0,"{0036F83C-D892-4B7B-AA0B-BEDD8D16A738}","");
		var_Items.ItemObject(hX).BackColor = 16777215;
		h = var_Items.AddItem("3. A URL such as \"http://www.exontrol.com\"");
		var_Items.ItemDivider(h) = 0;
		hX = var_Items.InsertControlItem(0,"http://www.exontrol.com","");
		h = var_Items.AddItem("4. A reference to an Active document such as \"file://\\\\Documents\\MyDoc.doc\"");
		var_Items.ItemDivider(h) = 0;
		hX = var_Items.InsertControlItem(0,"file://C:\\empesting.xml","");
		h = var_Items.AddItem("5.A fragment of HTML such as \"MSHTML:<HTML><BODY>This is a line of text</BODY></HTML>\"");
		var_Items.ItemDivider(h) = 0;
		hX = var_Items.InsertControlItem(0,"MSHTML:<HTML><BODY>This is a <b>line of</b> text</BODY></HTML>","");
		var_Items.ItemHeight(hX) = 56;
		h = var_Items.AddItem("6.Anything, if it is preffixed by \"A2X:\"");
		var_Items.ItemDivider(h) = 0;
		hX = var_Items.InsertControlItem(0,"A2X:TOC24.Toc24Ctrl.1","");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1899:
How do I add a RichTextBox editor
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="UserEditorOleEvent(Object,Ev,CloseEditor,Item,ColIndex)" LANGUAGE="JScript">
	alert( Ev );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -1;
	G2antt1.DefaultItemHeight = 32;
	var var_Editor = G2antt1.Columns.Add("RICHTEXT").Editor;
		var_Editor.EditType = 16;
		var_Editor.UserEditor("RICHTEXT.RichtextCtrl","");
		var var_RichTextBox = var_Editor.UserEditorObject;
			var_RichTextBox.AutoVerbMenu = true;
			var_RichTextBox.TextRTF = "{\\rtf1\\ansi{\\fonttbl\\f0\\fswiss Helvetica;}\\f0\\pard\\r\\nThis is some {\\b bold} text.\\par\\r\\n}";
	var var_Items = G2antt1.Items;
		var_Items.AddItem("RICHTEXT.RichtextCtrl");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1898:
Is it possible to trap a double-click event on a specific cell and when that happens, to set the cell to a specific value
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="DblClick(Shift,X,Y)" LANGUAGE="JScript">
	var h = G2antt1.ItemFromPoint(-1,-1,c,hit);
	alert( G2antt1.Items.CellValue(h,c) );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.HeaderAppearance = 4;
	G2antt1.DrawGridLines = -2;
	G2antt1.Columns.Add("C1");
	G2antt1.Columns.Add("C2");
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem("Item 1"),1) = "Item 2";
		var_Items.CellValue(var_Items.AddItem("Item 3"),1) = "Item 4";
		var_Items.CellValue(var_Items.AddItem("Item 5"),1) = "Item 6";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1897:
How can I display dates in DD/MM/YYYY format

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ScrollBySingleLine = false;
	G2antt1.Columns.Add("Date");
	var var_Items = G2antt1.Items;
		var_Items.ItemDivider(var_Items.AddItem("Different Date Formats")) = 0;
		var_Items.FormatCell(var_Items.AddItem("12/1/1971"),0) = "((shortdateF(value) mid 4) left 2) + `/` + (shortdateF (value) left 2) + `/` + (shortdateF (value) right 4)";
		var_Items.FormatCell(var_Items.AddItem("12/1/1971"),0) = "(1 array (0:=(shortdateF(value) split `/`))) + `/` + (0 array (=:0) ) + `/` + (2 array (=:0) )";
		var_Items.FormatCell(var_Items.AddItem("12/1/1971"),0) = "((`0` + day(value) ) right 2) + `/` + ((`0` + month(value) ) right 2) + `/` + year(value)";
		var_Items.FormatCell(var_Items.AddItem("12/1/1971"),0) = "day(value) + `/` + month(value) + `/` + year(value)";
		var_Items.FormatCell(var_Items.AddItem("12/1/1971"),0) = "year(value) + ` - ` + day(value) + ` - ` + month(value)";
		var h = var_Items.AddItem("12/1/1971");
		var_Items.ItemHeight(h) = 24;
		var_Items.CellValueFormat(h,0) = 1;
		var_Items.FormatCell(h,0) = "`<b>` + year(value) + `</b><off -4> ` + day(value) + ` - ` + month(value)";
		var_Items.ItemDivider(var_Items.AddItem("Predefined Date Formats")) = 0;
		var_Items.FormatCell(var_Items.AddItem("12/1/1971"),0) = "value";
		var_Items.FormatCell(var_Items.AddItem("12/1/1971"),0) = "shortdateF(value)";
		var_Items.FormatCell(var_Items.AddItem("12/1/1971"),0) = "shortdate(value)";
		var_Items.FormatCell(var_Items.AddItem("12/1/1971"),0) = "longdate(value)";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1896:
I have noticed that the column gets resized once I release the mouse. I have a column that displays multiple-lines cells, and the text gets wrapped only when user releases the mouse. Is it possible to get resized contiguously as I had before
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ScrollBySingleLine = false;
	G2antt1.DrawGridLines = 2;
	G2antt1.ColumnsAllowSizing = true;
	G2antt1.Columns.Add("Column A (cont)").Def(64) = true;
	G2antt1.Columns.Add("Column 1");
	G2antt1.Columns.Add("Column B (cont)").Def(64) = true;
	G2antt1.Columns.Add("Column 2");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1895:
How do I get the column from cursor, when it hovers the empty portion of the items section
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="MouseMove(Button,Shift,X,Y)" LANGUAGE="JScript">
	var i = G2antt1.ItemFromPoint(0,-1,c,hit);
	alert( "Column" );
	alert( c );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = 2;
	G2antt1.Columns.Add("Column 0");
	G2antt1.Columns.Add("Column 1");
	G2antt1.Columns.Add("Column 2");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1894:
How do I add items once the user clicks the empty area
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="Click()" LANGUAGE="JScript">
	var i = G2antt1.ItemFromPoint(0,-1,c,hit);
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem(i),1) = c;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Number of Items to Add");
	G2antt1.Columns.Add("Click on Column");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1893:
Is there an easy way to get an effect like in a Microsoft Access / SQL-Server Table view, where you can scroll-up till the last row containing data is displayed as top-row

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AddItem(Item)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.CellValue(Item,2),var_Items.CellValue(Item,4),null,null);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.HasLines = 0;
	G2antt1.ColumnAutoResize = false;
	var rs = new ActiveXObject("ADOR.Recordset");
		rs.Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB",1,1,null);
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "10/21/1994";
		var_Chart.LevelCount = 2;
	G2antt1.DataSource = rs;
	G2antt1.ScrollBars = 2051;
	G2antt1.ScrollPos(true) = G2antt1.Items.ItemCount;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1892:
Is there any option to stop events
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AddItem(Item)" LANGUAGE="JScript">
	alert( "AddItem event is fired only if FreezeEvents(False) is called" );
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="AddLink(LinkKey)" LANGUAGE="JScript">
	alert( "AddLink event is fired only if FreezeEvents(False) is called" );
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="BarResize(Item,Key)" LANGUAGE="JScript">
	alert( "BarResize event is fired only if FreezeEvents(False) is called" );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.FreezeEvents(true);
	G2antt1.BeginUpdate();
	G2antt1.DefaultItemHeight = 24;
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L1",h1,"",h2,"");
		var_Items.SchedulePDM(0,"");
	G2antt1.EndUpdate();
	G2antt1.FreezeEvents(false);
}
</SCRIPT>
</BODY>

1891:
How do I specify a more intensive color if using RenderType property

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Appearance = G2antt1.VisualAppearance;
		var_Appearance.RenderType = -16777216;
		var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABN0GACAADACAxRDAMgBQKAAzQFAYahuGSGAAGMYxQgmFgAQhFcZQSKUOQTDKMIziYBYJhEMQyDAAUIjOKsIhkGYcZAGQBJCjWGodQLOEgwH" +
	"IERQjEyUJAGGQIHhyPYbUbGUpQHKkeRtGqgBgoKhKEouNYgAbGYIwTRsdyfDSXBpEWwbDgkNQwWTDNoRDIUQStCysaYjOpnfrUAJ1P7FdQ1NJkXRhGSSK7maapaiCSZ6" +
	"STCMj1FhVKSNJ7DQKhGpgKh/ApgYpQOK4fLNXyRBK4QAyKA6bgPFZOZbFViaXY1V5bNKrcjhHQwAyHJ4XXRdV4YRAkUT4GqiJKGSYcQhuXZWbRqO6ABhef6DRThc6jKp" +
	"FHIE4llEcojHqSZNgoIxnlgd5thsLREleL43gsYZ9BkaAYkMAgAm+CxGDWWAtiKCRfjcdRgHoHYnicUwgAIEIREAaQYkcQZUHIGRUDQJBOEYRAhDYCxGgMZAkCgdYQha" +
	"XQIAYERwQuahXggdgeG6VZ4H4IhdiIGIOB8YIiGiHZZgqYpGF4KYHiKCI+CAU5jCiTQ2g0YhEFyax4gABAEIC");
		var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAEhABU0IQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyjAKMEwsACEIrjKCRShyCYZRhGcTAJBMIhiGQYAChEZxVhEMgzDjIAxSJAcQRFESaAABGCQG" +
	"h+N4/S4NIi0CIsZQjCaiZ7pKA5bgMCo+UrNMixZQVCSOGChYRpCaZWpGGodQRUFbVHAlKypJKCKrEWSrDhuYAAW7XM7yBS1TzVNSuLZtaLqSroAJ1WTWMB0Ra8NzZEKf" +
	"aZACj4arKejrRDCMAggI=");
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 128;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.Def(4) = 18;
			var_Bar.Color = 16777216;
		var var_Bar1 = var_Chart.Bars.Item("Summary");
			var_Bar1.Def(4) = 18;
			var_Bar1.Color = 33554432;
	var var_Items = G2antt1.Items;
		var hSummaryJ = var_Items.AddItem("Summary A");
		var_Items.AddBar(hSummaryJ,"Summary","1/2/2001","1/2/2001","J",null);
		var hTaskJ = var_Items.InsertItem(hSummaryJ,null,"Task A.1");
		var_Items.AddBar(hTaskJ,"Task","1/2/2001","1/5/2001","J1",null);
		hTaskJ = var_Items.InsertItem(hSummaryJ,null,"Task A.2");
		var_Items.AddBar(hTaskJ,"Task","1/4/2001","1/8/2001","J2",null);
		var_Items.DefineSummaryBars(hSummaryJ,"J",-1,"<*>");
		var hSummaryK = var_Items.AddItem("Summary B");
		var_Items.AddBar(hSummaryK,"Summary","1/2/2001","1/2/2001","K",null);
		var hTaskK = var_Items.InsertItem(hSummaryK,null,"Task B.1");
		var_Items.AddBar(hTaskK,"Task","1/2/2001","1/5/2001","K1",null);
		hTaskK = var_Items.InsertItem(hSummaryK,null,"Task B.2");
		var_Items.AddBar(hTaskK,"Task","1/4/2001","1/8/2001","K2",null);
		var_Items.DefineSummaryBars(hSummaryK,"K",-1,"<*>");
		var_Items.ItemBar(0,"<K*>",33) = 255;
		var_Items.ExpandItem(0) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1890:
How can I include the child items, when a filter is applied

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.Indent = 16;
	G2antt1.LinesAtRoot = -1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptPattern = "Nancy";
	G2antt1.FilterInclude = 1;
	G2antt1.Chart.LevelCount = 2;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.InsertItem(h0,null,"Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		h0 = var_Items.InsertItem(h0,null,"Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.InsertItem(h0,null,"Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		var_Items.ExpandItem(0) = true;
	G2antt1.ApplyFilter();
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1889:
Is it possible to change the date format shown when you scroll the horizontal bar on the chart

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.Chart.ToolTip = "<b>Date</b><br><%loc_ldate%>";
}
</SCRIPT>
</BODY>

1888:
How do I change the drop down filter button

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Appearance = G2antt1.VisualAppearance;
		var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAEhABX8GACAADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKNYykCIRSDUJYkSZEIyjBI8ExXFqNACkGKwYgmNYiTLAcgAN" +
	"J0WBaGIZJ4gOT5fDKMoEDRRYADFCscwxJybQAqGQKKb+VgAVY/cTyBIAEQSKA0TDOQ5TSKWB4JPZQRBEbZMNBtBIUJquKaqShdQJCU5FdY3Xblez9P7AMBwLFEC4NQ8Y" +
	"NYuPhjR4dRTIMhvVAsUArFh8Zg9GZZFjmDIDT4ydBLTQwcyVIKnP5qOa6XbmPoCQDYKxZHYxPzVDa3axuL76dqCAT7XrXNy1TbNRrzQKfcJqfCbdw2YaDZLOOT3fjuI4" +
	"hhKaRzFAHJ+jYQ4xHuY4gHuGIXGeExqC8Tp6C+PoEm+G5ImycRgh0XwvDGa5rgOeoejyXwnFeQp2mkf5ClgBB9gCWIYAwfYAEKV58mkdwOggNArgOXY2EWLoDkKOA0mg" +
	"bhOGgZApgaSBIHWSYHSmbApgYThmESZYJkIeIkgeCpfliLIHgpMIcmUYYYmODAlg2SI4mWfRfGOEguDcCRjFYAJihCQhJBSDoRmONgKEcI4kFCEJhhOVYTmYnAlEAQhW" +
	"BMJYJGYWoWmWSR2F6F5lnkWAQhUAgpEieRWEuSYkjWGpmkmNhuhuZwJkYcocmaaYkjyEhngnUA6lEFAlAEgI=");
		var_Appearance.Add(1,"CP:2 -14 -4 -2 4");
	G2antt1.Background(0) = 16777216;
	G2antt1.Background(32) = G2antt1.BackColor;
	G2antt1.HeaderAppearance = 0;
	G2antt1.BackColorHeader = 16777215;
	G2antt1.HeaderVisible = 1;
	var var_Column = G2antt1.Columns.Add("Filter");
		var_Column.DisplayFilterButton = true;
		var_Column.AllowSort = false;
		var_Column.AllowDragging = false;
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 196;
		var_Chart.LevelCount = 2;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1887:
How do I prevent changing the cell's state ( check-box state )

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="CellStateChanging(Item,ColIndex,NewState)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		NewState = var_Items.CellState(Item,ColIndex);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.LinesAtRoot = -1;
	var var_Column = G2antt1.Columns.Add("P1");
		var_Column.Def(0) = true;
		var_Column.PartialCheck = true;
	var var_Column1 = G2antt1.Columns.Add("P2");
		var_Column1.Def(0) = true;
		var_Column1.PartialCheck = true;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Root");
		var_Items.InsertItem(h,null,"Child 1");
		var_Items.InsertItem(h,null,"Child 2");
		var_Items.ExpandItem(h) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1886:
How do I change the color of the columns's header to cover all levels

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -1;
	G2antt1.BackColorLevelHeader = G2antt1.BackColorHeader;
	G2antt1.HeaderAppearance = 4;
	G2antt1.DefaultItemHeight = 36;
	G2antt1.TreeColumnIndex = -1;
	var var_Columns = G2antt1.Columns;
		var var_Column = var_Columns.Add("C1");
			var_Column.Def(0) = true;
			var_Column.Width = 24;
			var_Column.AllowSizing = false;
			var_Column.Def(48) = 3;
		var var_Column1 = var_Columns.Add("C2");
			var_Column1.Def(0) = true;
			var_Column1.Def(48) = 2;
		var_Columns.Add("Column1");
	var var_Chart = G2antt1.Chart;
		var_Chart.BackColorLevelHeader = G2antt1.BackColorHeader;
		var_Chart.LevelCount = 2;
		var_Chart.DrawGridLines = -1;
		var_Chart.FirstVisibleDate = "6/22/2014";
		var_Chart.PaneWidth(false) = 256;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("");
		var_Items.CellValue(h,1) = "Cell 1.2";
		var_Items.CellValue(h,2) = "Cell 1.3";
		var_Items.AddBar(h,"Task","6/23/2014","6/25/2014",null,null);
		h = var_Items.AddItem("");
		var_Items.CellValue(h,1) = "Cell 2.2";
		var_Items.CellValue(h,2) = "Cell 2.3";
		var_Items.AddBar(h,"Task","6/26/2014","6/28/2014",null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1885:
Is it possible to extend the columns's header to fill all levels

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -1;
	G2antt1.HeaderVisible = 1;
	G2antt1.HeaderAppearance = 4;
	G2antt1.DefaultItemHeight = 36;
	G2antt1.TreeColumnIndex = -1;
	var var_Columns = G2antt1.Columns;
		var var_Column = var_Columns.Add("C1");
			var_Column.Def(0) = true;
			var_Column.Width = 24;
			var_Column.AllowSizing = false;
			var_Column.Def(48) = 3;
		var var_Column1 = var_Columns.Add("C2");
			var_Column1.Def(0) = true;
			var_Column1.Def(48) = 2;
		var_Columns.Add("Column1");
	var var_Chart = G2antt1.Chart;
		var_Chart.BackColorLevelHeader = G2antt1.BackColorHeader;
		var_Chart.LevelCount = 2;
		var_Chart.DrawGridLines = -1;
		var_Chart.FirstVisibleDate = "6/22/2014";
		var_Chart.PaneWidth(false) = 256;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("");
		var_Items.CellValue(h,1) = "Cell 1.2";
		var_Items.CellValue(h,2) = "Cell 1.3";
		var_Items.AddBar(h,"Task","6/23/2014","6/25/2014",null,null);
		h = var_Items.AddItem("");
		var_Items.CellValue(h,1) = "Cell 2.2";
		var_Items.CellValue(h,2) = "Cell 2.3";
		var_Items.AddBar(h,"Task","6/26/2014","6/28/2014",null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1884:
How do I change the color of the columns's header to cover all levels (sample CRD)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -1;
	G2antt1.BackColorLevelHeader = G2antt1.BackColorHeader;
	G2antt1.HeaderAppearance = 4;
	G2antt1.DefaultItemHeight = 36;
	G2antt1.TreeColumnIndex = -1;
	var var_Columns = G2antt1.Columns;
		var var_Column = var_Columns.Add("C1");
			var_Column.Def(0) = true;
			var_Column.Width = 24;
			var_Column.AllowSizing = false;
			var_Column.Def(48) = 3;
		var var_Column1 = var_Columns.Add("C2");
			var_Column1.Def(0) = true;
			var_Column1.Def(48) = 2;
		var_Columns.Add("Column1").Visible = false;
		var_Columns.Add("Column2").Visible = false;
		var_Columns.Add("Column3").Visible = false;
		var var_Column2 = var_Columns.Add("FormatLevel");
			var_Column2.FormatLevel = "18;\"Info\"[a=17]/(2/3,4)";
			var_Column2.Def(32) = "2/3,4";
	var var_Chart = G2antt1.Chart;
		var_Chart.DrawGridLines = -1;
		var_Chart.FirstVisibleDate = "6/22/2014";
		var_Chart.PaneWidth(false) = 256;
		var_Chart.BackColorLevelHeader = G2antt1.BackColorHeader;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("");
		var_Items.CellValue(h,1) = "Cell 1.2";
		var_Items.CellValue(h,2) = "Cell 1.3";
		var_Items.AddBar(h,"Task","6/23/2014","6/25/2014",null,null);
		h = var_Items.AddItem("");
		var_Items.CellValue(h,1) = "Cell 2.2";
		var_Items.CellValue(h,2) = "Cell 2.3";
		var_Items.AddBar(h,"Task","6/26/2014","6/28/2014",null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1883:
Is it possible to extend the columns's header to fill all levels (sample CRD)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -1;
	G2antt1.HeaderVisible = 1;
	G2antt1.HeaderAppearance = 4;
	G2antt1.DefaultItemHeight = 36;
	G2antt1.TreeColumnIndex = -1;
	var var_Columns = G2antt1.Columns;
		var var_Column = var_Columns.Add("C1");
			var_Column.Def(0) = true;
			var_Column.Width = 24;
			var_Column.AllowSizing = false;
			var_Column.Def(48) = 3;
		var var_Column1 = var_Columns.Add("C2");
			var_Column1.Def(0) = true;
			var_Column1.Def(48) = 2;
		var_Columns.Add("Column1").Visible = false;
		var_Columns.Add("Column2").Visible = false;
		var_Columns.Add("Column3").Visible = false;
		var var_Column2 = var_Columns.Add("FormatLevel");
			var_Column2.FormatLevel = "18;\"Info\"[a=17]/(2/3,4)";
			var_Column2.Def(32) = "2/3,4";
	var var_Chart = G2antt1.Chart;
		var_Chart.DrawGridLines = -1;
		var_Chart.FirstVisibleDate = "6/22/2014";
		var_Chart.PaneWidth(false) = 256;
		var_Chart.BackColorLevelHeader = G2antt1.BackColorHeader;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("");
		var_Items.CellValue(h,1) = "Cell 1.2";
		var_Items.CellValue(h,2) = "Cell 1.3";
		var_Items.AddBar(h,"Task","6/23/2014","6/25/2014",null,null);
		h = var_Items.AddItem("");
		var_Items.CellValue(h,1) = "Cell 2.2";
		var_Items.CellValue(h,2) = "Cell 2.3";
		var_Items.AddBar(h,"Task","6/26/2014","6/28/2014",null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1882:
How do I get sorted the column as string, numeric, date, date and time. Also how can it be applied to drop down filter panel

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Column = G2antt1.Columns.Add("Date");
		var_Column.SortType = 2;
		var_Column.DisplayFilterButton = true;
		var_Column.DisplayFilterPattern = false;
		var_Column.DisplayFilterDate = true;
		var_Column.FilterList = 1296;
	var var_Column1 = G2antt1.Columns.Add("DateTime");
		var_Column1.SortType = 3;
		var_Column1.DisplayFilterButton = true;
		var_Column1.DisplayFilterPattern = false;
		var_Column1.FilterList = 1296;
	var var_Column2 = G2antt1.Columns.Add("Time");
		var_Column2.SortType = 4;
		var_Column2.DisplayFilterButton = true;
		var_Column2.DisplayFilterPattern = false;
		var_Column2.FilterList = 1296;
		var_Column2.FormatColumn = "time(value)";
	var var_Column3 = G2antt1.Columns.Add("Numeric");
		var_Column3.SortType = 1;
		var_Column3.DisplayFilterButton = true;
		var_Column3.FilterList = 1296;
	var var_Column4 = G2antt1.Columns.Add("String");
		var_Column4.DisplayFilterButton = true;
		var_Column4.FilterList = 1296;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("1/27/2010");
		var_Items.CellValue(h,1) = "1/27/2010 10:00:00 AM";
		var_Items.CellValue(h,2) = var_Items.CellValue(h,1);
		var_Items.CellValue(h,3) = 1;
		var_Items.CellValue(h,4) = var_Items.CellValue(h,3);
		h = var_Items.AddItem("1/27/2011");
		var_Items.CellValue(h,1) = "1/27/2011 9:00:00 AM";
		var_Items.CellValue(h,2) = var_Items.CellValue(h,1);
		var_Items.CellValue(h,3) = 11;
		var_Items.CellValue(h,4) = var_Items.CellValue(h,3);
		h = var_Items.AddItem("11/2/2010");
		var_Items.CellValue(h,1) = "11/2/2010 9:00:00 AM";
		var_Items.CellValue(h,2) = var_Items.CellValue(h,1);
		var_Items.CellValue(h,3) = 2;
		var_Items.CellValue(h,4) = var_Items.CellValue(h,3);
	G2antt1.Columns.Item("DateTime").DisplayFilterDate = false;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1881:
Is there a way to set the time zone per item

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task A");
		var_Items.AddBar(h1,"","1/2/2001","1/18/2001","TZ1","Time Zone / Item");
		var_Items.ItemBar(h1,"TZ1",29) = false;
		var_Items.ItemBar(h1,"TZ1",7) = 255;
		var_Items.AddBar(h1,"Task","1/20/2001","1/29/2001","Z1",null);
		h1 = var_Items.AddItem("Task B");
		var_Items.AddBar(h1,"","1/6/2001","1/24/2001","TZ2","Time Zone / Item");
		var_Items.ItemBar(h1,"TZ2",29) = false;
		var_Items.ItemBar(h1,"TZ2",7) = 65535;
		var_Items.AddBar(h1,"Task","1/3/2001","1/12/2001","Z1",null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1880:
Is there a way to turn arrow-key-navigation between the items on and off
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="KeyDown(KeyCode,Shift)" LANGUAGE="JScript">
	KeyCode = 0;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Tasks");
	var var_Column = G2antt1.Columns.Add("Effort");
		var_Column.Def(18) = 21;
		var_Column.Editor.EditType = 4;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.NonworkingDays = 0;
		var_Chart.PaneWidth(false) = 96;
		var_Chart.FirstVisibleDate = "6/20/2005";
		var_Chart.HistogramVisible = true;
		var_Chart.HistogramHeight = 128;
		var_Chart.HistogramView = 112;
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.HistogramPattern = var_Bar.Pattern;
			var_Bar.HistogramType = 0;
			var_Bar.HistogramCriticalValue = 3;
			var_Bar.ShowHistogramValues = "value>3?255:1";
			var_Bar.HistogramItems = -11;
			var_Bar.HistogramGridLinesColor = 12632256;
			var_Bar.HistogramRulerLinesColor = 65536;
			var_Bar.FormatHistogramValues = "value format `2`";
	var var_Items = G2antt1.Items;
		var_Items.AllowCellValueToItemBar = true;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","6/21/2005","6/23/2005",null,null);
		var_Items.CellValue(h1,1) = 6.79;
		h1 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h1,"Task","6/24/2005","6/26/2005",null,null);
		var_Items.CellValue(h1,1) = 3.19;
		h1 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h1,"Task","6/27/2005","6/29/2005",null,null);
		var_Items.CellValue(h1,1) = 2;
		h1 = var_Items.AddItem("Task 4");
		var_Items.AddBar(h1,"Task","6/30/2005","7/2/2005",null,null);
		var_Items.CellValue(h1,1) = 1;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1879:
I am using Layout property to sort multiple columns at once. The problem is that all items get expanded. How do I prevent that

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.LinesAtRoot = -1;
	var var_Column = G2antt1.Columns.Add("P1");
		var_Column.Def(0) = true;
		var_Column.PartialCheck = true;
	var var_Column1 = G2antt1.Columns.Add("P2");
		var_Column1.Def(0) = true;
		var_Column1.PartialCheck = true;
		var_Column1.FormatColumn = "1 index ``";
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Root");
		var_Items.InsertItem(h,null,"Child A");
		var_Items.InsertItem(h,null,"Child B");
		var_Items.InsertItem(h,null,"Child A");
		var_Items.InsertItem(h,null,"Child B");
		var_Items.AddItem("Root");
		var_Items.AddItem("Root");
	G2antt1.SingleSort = false;
	G2antt1.Layout = "multiplesort=\"C0:1 C1:2\";collapse=\"\"";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1878:
How can I decode the Layout property

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("C1");
		var_Columns.Add("C2").Position = 1;
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem("SubItem 1.1"),1) = "SubItem 1.2";
		var_Items.CellValue(var_Items.AddItem("SubItem 2.1"),1) = "SubItem 2.2";
	G2antt1.Columns.Item("C2").SortOrder = 2;
	G2antt1.EndUpdate();
	alert( "Encoded:" );
	alert( G2antt1.Layout );
	var var_Print = new ActiveXObject("Exontrol.Print");
		alert( "Decoded: " );
		alert( var_Print.Decode64TextW(G2antt1.Layout) );
}
</SCRIPT>
</BODY>

1877:
Is it possible to define a bar inside a bar (method 2)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ScrollBySingleLine = true;
	G2antt1.Columns.Add("Task");
	G2antt1.DrawGridLines = 1;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.DrawGridLines = 1;
		var_Chart.AllowCreateBar = 1;
		var_Chart.AllowLinkBars = false;
		var_Chart.ResizeUnitScale = 65536;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.Bars.Item("Task").OverlaidType = 515;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Tasks");
		var_Items.AddBar(h,"Task","1/3/2001","1/7/2001","A1",null);
		var_Items.AddBar(h,"Task","1/4/2001","1/8/2001","A2",null);
		var_Items.AddBar(h,"Task","1/9/2001","1/13/2001","A3",null);
	var var_Notes = G2antt1.Chart.Notes;
		var var_Note = var_Notes.Add("N1",G2antt1.Items.FirstVisibleItem,"A1","");
			var_Note.PartText(0) = " ";
			var_Note.PartFixedWidth(0) = 18;
			var_Note.PartFixedHeight(0) = 11;
			var_Note.PartCanMove(0) = true;
			var_Note.PartBackColor(0) = 65280;
			var_Note.PartVisible(1) = false;
			var_Note.ShowLink = 0;
			var_Note.PartVOffset(0) = 4;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1876:
Is it possible to define a bar inside a bar (method 1)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ScrollBySingleLine = true;
	G2antt1.Columns.Add("Task");
	G2antt1.DrawGridLines = 1;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.DrawGridLines = 1;
		var_Chart.AllowCreateBar = 1;
		var_Chart.AllowLinkBars = false;
		var_Chart.ResizeUnitScale = 65536;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.OverlaidType = 515;
			var_Bar.OverlaidGroup = "Task,TaskB";
		var var_Bar1 = var_Chart.Bars.Add("Aka");
			var_Bar1.Color = 65280;
			var_Bar1.Pattern = 1;
		var var_Bar2 = var_Chart.Bars.Add("Task%Aka");
			var_Bar2.Shortcut = "TaskB";
			var_Bar2.OverlaidType = 515;
			var_Bar2.OverlaidGroup = "Task,TaskB";
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Tasks");
		var_Items.AddBar(h,"TaskB","1/3/2001","1/7/2001","A1",null);
		var_Items.ItemBar(h,"A1",12) = 0.25;
		var_Items.AddBar(h,"Task","1/4/2001","1/8/2001","A2",null);
		var_Items.AddBar(h,"Task","1/9/2001","1/13/2001","A3",null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1875:
How do I show the bar with a solid color, no border (method 1)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ScrollBySingleLine = true;
	G2antt1.Columns.Add("Task");
	G2antt1.DrawGridLines = 1;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.DrawGridLines = 1;
		var_Chart.AllowCreateBar = 1;
		var_Chart.AllowLinkBars = false;
		var_Chart.ResizeUnitScale = 65536;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.Color = 255;
			var_Bar.Pattern = 1;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task");
		var_Items.AddBar(h,"Task","1/2/2001","1/5/2001","",null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1874:
How do I show the bar with a solid color, no border (method 2)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ScrollBySingleLine = true;
	G2antt1.Columns.Add("Task");
	G2antt1.DrawGridLines = 1;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.DrawGridLines = 1;
		var_Chart.AllowCreateBar = 1;
		var_Chart.AllowLinkBars = false;
		var_Chart.ResizeUnitScale = 65536;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.Color = 255;
			var_Bar.StartColor = var_Bar.Color;
			var_Bar.EndColor = var_Bar.Color;
			var_Bar.Pattern = 32;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task");
		var_Items.AddBar(h,"Task","1/2/2001","1/5/2001","",null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1873:
How do I show the bar with a solid color, no border (method 3)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ScrollBySingleLine = true;
	G2antt1.Columns.Add("Task");
	G2antt1.DrawGridLines = 1;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.DrawGridLines = 1;
		var_Chart.AllowCreateBar = 1;
		var_Chart.AllowLinkBars = false;
		var_Chart.ResizeUnitScale = 65536;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
	var var_Appearance = G2antt1.VisualAppearance;
		var_Appearance.RenderType = -1;
		var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABJkIQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyDQKkEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQiiCYsS5AcgPfKgAAFESNY5gSL5Y" +
	"j2IjrRDCMAggI");
	var var_Bar = G2antt1.Chart.Bars.Item("Task");
		var_Bar.Color = 16777471;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task");
		var_Items.AddBar(h,"Task","1/2/2001","1/5/2001","",null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1872:
How do I find the cell's type, or what the cell holds

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -2;
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Value").Width = 24;
		var_Columns.Add("Type").FormatColumn = "type(%0)";
		var_Columns.Add("TypeAsString").FormatColumn = "(0 := type(%0)) array (`empty`, `null`, `short`, `long`, `float`, `double`, `currency`, `date`, `string`, `object`, `error`, `b" +
	"oolean`, `variant`, `any`, `reserved`, `decimal`, `char`, `byte`, `unsigned short`, `unsigned long`, `long on 64 bits`)";
		var_Columns.Add("Length").FormatColumn = "len(%0)";
	var var_Items = G2antt1.Items;
		var_Items.AddItem(null);
		var_Items.AddItem("");
		var_Items.CellValue(.AddItem(null),0) = G2antt1;
		var_Items.CellValue(var_Items.AddItem(null),0) = true;
		var_Items.CellValue(var_Items.AddItem(null),0) = -1;
		var_Items.CellValue(var_Items.AddItem(null),0) = -1;
		var_Items.CellValue(var_Items.AddItem(null),0) = "1/1/2001";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1871:
Is it possible to allow changing the bar's parent while bar's start/end margins should stay unchanged
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="BarParentChange(Item,Key,NewItem,Cancel)" LANGUAGE="JScript">
	G2antt1.Items.SelectItem(NewItem) = true;
	alert( "BarParentChange from " );
	alert( G2antt1.Items.CellCaption(Item,0) );
	alert( " to " );
	alert( G2antt1.Items.CellCaption(NewItem,0) );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Members").Def(17) = 1;
	G2antt1.SelBackMode = 1;
	var var_Chart = G2antt1.Chart;
		var_Chart.SelBackColor = G2antt1.SelBackColor;
		var_Chart.FirstVisibleDate = "9/20/2006";
		var_Chart.AllowLinkBars = false;
		var_Chart.AllowCreateBar = 0;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 96;
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.Def(4) = 18;
			var_Bar.Def(10) = false;
	var var_Items = G2antt1.Items;
		var_Items.AddItem("Member <b>1</b>");
		var h = var_Items.AddItem("Member <b>2</b>");
		var_Items.AddBar(h,"Task","9/21/2006","9/23/2006","T102","Task <b>102</b>");
		var_Items.ItemBar(h,"T102",11) = false;
		var_Items.ItemBar(h,"T102",28) = true;
		var_Items.AddItem("Member <b>3</b>");
		var_Items.AddItem("Member <b>4</b>");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1870:
Is it possible to (un)highlight the day/night shifts

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="Click()" LANGUAGE="JScript">
	var var_Chart = G2antt1.Chart;
		var_Chart.ShowNonworkingDates = false;
		var_Chart.ShowNonworkingHours = false;
		var_Chart.BackColor = 16777215;
	G2antt1.Refresh();
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.LevelCount = 2;
		var_Chart.UnitScale = 4096;
		var_Chart.UnitWidth = 64;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.NonworkingHours = 15728895;
		var_Chart.NonworkingHoursPattern = 1;
		var_Chart.NonworkingDaysPattern = var_Chart.NonworkingHoursPattern;
		var_Chart.NonworkingHoursColor = 15790320;
		var_Chart.NonworkingDaysColor = 13948116;
		var_Chart.BackColor = 16448250;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1869:
How can I add a vertical line at specified date-time

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 18;
		var_Chart.LevelCount = 2;
		var_Chart.UnitWidth = 32;
		var_Chart.FirstVisibleDate = "1/1/2010";
		var_Chart.MarkTimeZone("M1","1/5/2010","1/5/2010",16711680,"50:5;3");
		var_Chart.MarkTimeZone("M2","1/6/2010","1/6/2010",16711680,":5");
		var_Chart.MarkTimeZone("M3","1/7/2010 10:00:00 AM","1/7/2010 10:00:00 AM",255,"50:3;;zone");
}
</SCRIPT>
</BODY>

1868:
How do I clear all date-time zones
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="Click()" LANGUAGE="JScript">
	G2antt1.Chart.RemoveTimeZone("<*>");
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="RClick()" LANGUAGE="JScript">
	G2antt1.Chart.RemoveTimeZone("<Z*>");
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 18;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2010";
		var_Chart.MarkTimeZone("Z1","1/4/2010","1/5/2010",255,null);
		var_Chart.MarkTimeZone("Z2","1/11/2010","1/12/2010",65280,null);
		var_Chart.MarkTimeZone("M1","1/7/2010","1/8/2010",16711680,"50:5;3");
}
</SCRIPT>
</BODY>

1867:
How do I place a comment above/bellow the bar (sample 4)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DefaultItemHeight = 26;
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 64;
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.Def(5) = 18;
			var_Bar.Def(4) = 0;
			var_Bar.Def(44) = " ";
			var_Bar.Def(45) = 0;
			var_Bar.Def(46) = 16;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task");
		var_Items.AddBar(h,"Task","1/2/2001","1/6/2001","K1","<font ;6>user comment");
		var_Items.ItemBar(h,"K1",44) = "<font ;6>user comment";
		var_Items.AddBar(h,"Task","1/9/2001","1/13/2001","K2","<font ;6>user comment");
		var_Items.ItemBar(h,"K2",44) = "<font ;6>user comment";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1866:
How do I place a comment above/bellow the bar (sample 3)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DefaultItemHeight = 26;
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 64;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task");
		var_Items.AddBar(h,"Task","1/2/2001","1/6/2001","K1","<font ;6>user comment");
		var_Items.ItemBar(h,"K1",5) = 18;
		var_Items.ItemBar(h,"K1",4) = 0;
		var_Items.ItemBar(h,"K1",44) = "<font ;6>user comment";
		var_Items.ItemBar(h,"K1",45) = 0;
		var_Items.ItemBar(h,"K1",46) = 16;
		var_Items.AddBar(h,"Task","1/9/2001","1/13/2001","K2","<font ;6>user comment");
		var_Items.ItemBar(h,"K2",44) = "<font ;6>user comment";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1865:
How do I place a comment under the bar (sample 2)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DefaultItemHeight = 26;
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 64;
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.Def(5) = 18;
			var_Bar.Def(4) = 0;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task");
		var_Items.AddBar(h,"Task","1/2/2001","1/6/2001","K1","<font ;6>user comment");
		var_Items.AddBar(h,"Task","1/9/2001","1/13/2001","K2","<font ;6>user comment");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1864:
How do I place a comment under the bar (sample 1)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DefaultItemHeight = 26;
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 64;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task");
		var_Items.AddBar(h,"Task","1/2/2001","1/6/2001","K1","<font ;6>user comment");
		var_Items.ItemBar(h,"K1",5) = 18;
		var_Items.ItemBar(h,"K1",4) = 0;
		var_Items.AddBar(h,"Task","1/9/2001","1/13/2001","K2","<font ;6>user comment");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1863:
I am using exBarCanMoveToAnother to allow a bar to be moved from one item to another. The question is if it is possible somehow to highlight the current bar can be dropped to (sample 2)

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="BarParentChange(Item,Key,NewItem,Cancel)" LANGUAGE="JScript">
	G2antt1.Items.SelectItem(NewItem) = true;
	Cancel = G2antt1.ConditionalFormats.Item("NOTRED").Verify(NewItem);
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="ChartEndChanging(Operation)" LANGUAGE="JScript">
	G2antt1.SelForeColor = -2147483634;
	G2antt1.SelBackColor = -2147483635;
	G2antt1.Chart.SelBackColor = G2antt1.SelBackColor;
	G2antt1.ConditionalFormats.Clear();
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="ChartStartChanging(Operation)" LANGUAGE="JScript">
	G2antt1.SelForeColor = G2antt1.ForeColor;
	G2antt1.SelBackColor = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.SelBackColor = var_Chart.BackColor;
	var var_ConditionalFormat = G2antt1.ConditionalFormats.Add("%0 contains `Allowed` ","RED");
		var_ConditionalFormat.Enabled = false;
	var var_ConditionalFormat1 = G2antt1.ConditionalFormats.Add("not ( %0 contains `Allowed` )","NOTRED");
		var_ConditionalFormat1.BackColor = 33488638;
		var_ConditionalFormat1.ChartBackColor = var_ConditionalFormat1.BackColor;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAEhABZkIQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyDQKkEwsACEIrjKCRShyCYZRrGUgRCKQahLEiTIhGUYJHgmK4tRoAUbyDBIGQSCCZYDmKA3f" +
	"j0AI9P7FcgSABEEigNIxToOU4jFgeCR2TqQRK1BDQbQSFCaZrmMKIXICO40WBQFhTdLlRyBBKzLKtCyaBqWaZrWxZE72ZaFVTdOK6bDvGwoarid56X7beA2PgdZTjQi5" +
	"cCxG5sLrTBZtYzfET3diOEYPQzHMpzDB7bxbGaXZBlGSZbjeGZBUjQc7yfSNMw/HqKZQ6cQwTAIgI");
	G2antt1.Columns.Add("Members").Def(17) = 1;
	var var_Chart = G2antt1.Chart;
		var_Chart.SelBackColor = G2antt1.SelBackColor;
		var_Chart.FirstVisibleDate = "9/20/2006";
		var_Chart.AllowLinkBars = false;
		var_Chart.AllowCreateBar = 0;
		var_Chart.AllowSelectObjects = 0;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 96;
		var_Chart.Bars.Item("Task").OverlaidType = 4611;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Member <b>1</b>");
		h = var_Items.AddItem("Member <b>Allowed</b>");
		var_Items.AddBar(h,"Task","9/21/2006","9/23/2006","T102","Task <b>102</b>");
		var_Items.ItemBar(h,"T102",4) = 18;
		var_Items.ItemBar(h,"T102",28) = true;
		h = var_Items.AddItem("Member <b>Allowed</b>");
		h = var_Items.AddItem("Member <b>4</b>");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1862:
I am using exBarCanMoveToAnother to allow a bar to be moved from one item to another. The question is if it is possible somehow to highlight the current bar can be dropped to (sample 1)

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="BarParentChange(Item,Key,NewItem,Cancel)" LANGUAGE="JScript">
	G2antt1.Items.SelectItem(NewItem) = true;
	Cancel = G2antt1.ConditionalFormats.Item("NOTRED").Verify(NewItem);
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="ChartEndChanging(Operation)" LANGUAGE="JScript">
	G2antt1.SelForeColor = -2147483634;
	G2antt1.SelBackColor = -2147483635;
	G2antt1.Chart.SelBackColor = G2antt1.SelBackColor;
	G2antt1.ConditionalFormats.Clear();
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="ChartStartChanging(Operation)" LANGUAGE="JScript">
	G2antt1.SelForeColor = G2antt1.ForeColor;
	G2antt1.SelBackColor = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.SelBackColor = var_Chart.BackColor;
	var var_ConditionalFormat = G2antt1.ConditionalFormats.Add("%0 contains `Allowed` ","RED");
		var_ConditionalFormat.BackColor = 8421631;
		var_ConditionalFormat.ChartBackColor = var_ConditionalFormat.BackColor;
	var var_ConditionalFormat1 = G2antt1.ConditionalFormats.Add("not ( %0 contains `Allowed` )","NOTRED");
		var_ConditionalFormat1.Enabled = false;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Members").Def(17) = 1;
	var var_Chart = G2antt1.Chart;
		var_Chart.SelBackColor = G2antt1.SelBackColor;
		var_Chart.FirstVisibleDate = "9/20/2006";
		var_Chart.AllowLinkBars = false;
		var_Chart.AllowCreateBar = 0;
		var_Chart.AllowSelectObjects = 0;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 96;
		var_Chart.Bars.Item("Task").OverlaidType = 4611;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Member <b>1</b>");
		h = var_Items.AddItem("Member <b>Allowed</b>");
		var_Items.AddBar(h,"Task","9/21/2006","9/23/2006","T102","Task <b>102</b>");
		var_Items.ItemBar(h,"T102",4) = 18;
		var_Items.ItemBar(h,"T102",28) = true;
		h = var_Items.AddItem("Member <b>Allowed</b>");
		h = var_Items.AddItem("Member <b>4</b>");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1861:
How can I check, if a specified item fits a specified conditional format expression
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AddItem(Item)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.CellValue(Item,2),var_Items.CellValue(Item,4),null,null);
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="MouseMove(Button,Shift,X,Y)" LANGUAGE="JScript">
	var h = G2antt1.ItemFromPoint(-1,-1,c,hit);
	alert( G2antt1.ConditionalFormats.Item("RED").Verify(h) );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "8/3/1994";
		var_Chart.PaneWidth(false) = 256;
		var_Chart.LevelCount = 2;
		var_Chart.UnitScale = 4096;
		var_Chart.FirstWeekDay = 1;
	G2antt1.Chart.SelBackColor = G2antt1.SelBackColor;
	G2antt1.SelBackMode = 1;
	G2antt1.ColumnAutoResize = false;
	G2antt1.ContinueColumnScroll = false;
	var rs = new ActiveXObject("ADOR.Recordset");
		rs.Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB",3,3,null);
	G2antt1.DataSource = rs;
	G2antt1.Items.AllowCellValueToItemBar = true;
	G2antt1.Columns.Item(2).Def(18) = 1;
	G2antt1.Columns.Item(4).Def(18) = 2;
	var var_ConditionalFormats = G2antt1.ConditionalFormats;
		var var_ConditionalFormat = var_ConditionalFormats.Add("%1 = 5","RED");
			var_ConditionalFormat.BackColor = 8421631;
			var_ConditionalFormat.ChartBackColor = var_ConditionalFormat.BackColor;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1860:
Is it possible to apply the conditional format on the items shown on the chart part of the control (sample 3)

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AddItem(Item)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.CellValue(Item,2),var_Items.CellValue(Item,4),null,null);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.SelBackMode = 1;
	var var_Chart = G2antt1.Chart;
		var_Chart.SelBackColor = G2antt1.SelBackColor;
		var_Chart.FirstVisibleDate = "8/3/1994";
		var_Chart.PaneWidth(false) = 256;
		var_Chart.LevelCount = 2;
		var_Chart.UnitScale = 4096;
		var_Chart.FirstWeekDay = 1;
	G2antt1.ColumnAutoResize = false;
	G2antt1.ContinueColumnScroll = false;
	var rs = new ActiveXObject("ADOR.Recordset");
		rs.Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB",3,3,null);
	G2antt1.DataSource = rs;
	G2antt1.Items.AllowCellValueToItemBar = true;
	G2antt1.Columns.Item(2).Def(18) = 1;
	G2antt1.Columns.Item(4).Def(18) = 2;
	var var_ConditionalFormats = G2antt1.ConditionalFormats;
		var var_ConditionalFormat = var_ConditionalFormats.Add("%1 in (3,5)",null);
			var_ConditionalFormat.ApplyToBars = "Task";
			var_ConditionalFormat.BarColor = 255;
			var_ConditionalFormat.BarOverviewColor = 255;
			var_ConditionalFormat.ForeColor = var_ConditionalFormat.BarColor;
			var_ConditionalFormat.Bold = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1859:
Is it possible to apply the conditional format on the items shown on the chart part of the control (sample 2)

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AddItem(Item)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.CellValue(Item,2),var_Items.CellValue(Item,4),null,null);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.SelBackMode = 1;
	var var_Chart = G2antt1.Chart;
		var_Chart.SelBackColor = G2antt1.SelBackColor;
		var_Chart.FirstVisibleDate = "8/3/1994";
		var_Chart.PaneWidth(false) = 256;
		var_Chart.LevelCount = 2;
		var_Chart.UnitScale = 4096;
		var_Chart.FirstWeekDay = 1;
	G2antt1.ColumnAutoResize = false;
	G2antt1.ContinueColumnScroll = false;
	var rs = new ActiveXObject("ADOR.Recordset");
		rs.Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB",3,3,null);
	G2antt1.DataSource = rs;
	G2antt1.Items.AllowCellValueToItemBar = true;
	G2antt1.Columns.Item(2).Def(18) = 1;
	G2antt1.Columns.Item(4).Def(18) = 2;
	var var_ConditionalFormats = G2antt1.ConditionalFormats;
		var var_ConditionalFormat = var_ConditionalFormats.Add("%1 in (3,5)",null);
			var_ConditionalFormat.ApplyTo = 1;
			var_ConditionalFormat.BackColor = 8421631;
		var var_ConditionalFormat1 = var_ConditionalFormats.Add("%1 in (3,5)",null);
			var_ConditionalFormat1.ApplyToBars = "Task";
			var_ConditionalFormat1.BarColor = 255;
			var_ConditionalFormat1.BarOverviewColor = 255;
			var_ConditionalFormat1.ChartBackColor = 8421631;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1858:
Is it possible to apply the conditional format on the items shown on the chart part of the control (sample 1)

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AddItem(Item)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.CellValue(Item,2),var_Items.CellValue(Item,4),null,null);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "8/3/1994";
		var_Chart.PaneWidth(false) = 256;
		var_Chart.LevelCount = 2;
		var_Chart.UnitScale = 4096;
		var_Chart.FirstWeekDay = 1;
	G2antt1.SelBackMode = 1;
	G2antt1.BackColorAlternate = 15790320;
	G2antt1.ColumnAutoResize = false;
	G2antt1.ContinueColumnScroll = false;
	var rs = new ActiveXObject("ADOR.Recordset");
		rs.Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB",3,3,null);
	G2antt1.Chart.SelBackColor = G2antt1.SelBackColor;
	G2antt1.DataSource = rs;
	G2antt1.Items.AllowCellValueToItemBar = true;
	G2antt1.Columns.Item(2).Def(18) = 1;
	G2antt1.Columns.Item(4).Def(18) = 2;
	var var_ConditionalFormats = G2antt1.ConditionalFormats;
		var var_ConditionalFormat = var_ConditionalFormats.Add("%1 in (3,5)",null);
			var_ConditionalFormat.ApplyToBars = "Task";
			var_ConditionalFormat.BarColor = 255;
			var_ConditionalFormat.BarOverviewColor = 255;
			var_ConditionalFormat.BackColor = 8421631;
			var_ConditionalFormat.ChartBackColor = 8421631;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1857:
How can I get ride / hide the image being dragged by OLE Drag and Drop
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="OLEStartDrag(Data,AllowedEffects)" LANGUAGE="JScript">
	// Data.SetData("data to drag")
	AllowedEffects = 1;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.OLEDropMode = 1;
	G2antt1.Background(34) = 16777215;
	G2antt1.LinesAtRoot = -1;
	G2antt1.Columns.Add("Default");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Root");
		var_Items.InsertItem(h,null,"Child 1");
		var_Items.InsertItem(h,null,"Child 2");
		var_Items.ExpandItem(h) = true;
}
</SCRIPT>
</BODY>

1856:
How do I change the visual appearance of the split bars

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DefaultItemHeight = 24;
	var var_Appearance = G2antt1.VisualAppearance;
		var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABEgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGMYhTgmFgAQhFcZQSB0Eg1BKMYwjOJgFgmEQxDQNIBQSLIYQiGSWZBGUBJDjWGgyQjOEByD" +
	"IMRwjE6UZBgeCRViEMo9RrSEZSLAdGRFAaVYDdULBEACU5VRZQFCwTQcBhpIyoZpkECobh2TYgQjYNT1NSkLxeGoSbbuGhBQrOAw1XTEMhyDR0LTJM6bMBACqrBi2L4x" +
	"URfOBRXLQAYbHjAZ7rSgacjKRpKRbmAV4Oh+O5pQjadp1TidNwHLoAK7nGwbbgmfwAZrAdjABj1HgBNS2dDkaabQrKEZ4XYAHAXVROOQTWIANb2XC4bwSLAwTJJYzjTh" +
	"iC2GInFOOQckiVw6AeCIvHSBzkCwDxfE6WZ2jsehICadx5kGYZdDgMRrA2c4NmWY56jyGxgEQJIgGkGJHEGVByBkWoCjkNAAAQIQ2AYRoDGQJAoKuZYgBgRZHggHZqAk" +
	"AZDjYGA7E8KB0kyB5LiiBgigiYhIgiQ4Jk4WIkn6CphjQDgbDmIwDBIMg3GMQ4uDaDZjgiZg6DIY5DGIPg/GQBAMneEJMFkFJqhGTppCYSoSmSSQ2EoPJlAMIhSDmZRE" +
	"AyVYVk0eRkm+FpkmkdhehaTp4iSZQxiYRAODIMQODmJJxhqTwJjYbobmcCZGHKGxLjmVQDC+J4DiYeg8GGWYuH6H5oAoBoCgcTwimaBodmeGZongPRPCoCoOiOZ5qBII" +
	"oiAuaZomkPoPGOToEiaaZKHaHYfiUA5OhMAAngoVh6iYKYqHqKoqmGWoGiOKRkHOKJ7D2TxKgaNotmuCpmFAPQrkqPh4iwaw6laOowmwOpwnSL4LmiXJ9D4TxbBqTozm" +
	"0CxGjwPRtEsIJsjWT4Dlydo1C2Sx2l6N5uAOWpijIDpbhYQ42i4K4mmqOpukuMpnjIJIjmKco5m8S5WnaPZkDuSJ4h0S46FKcY8m+DAHAGPovkoUhgD4cILmsCpCnCTA" +
	"2nKQgPhwFokh4JpjmsFpEDGDBnBqRpwgwWJ6kSKhZjie5FnGTIXCWR4yAmYh+D+D48g8HpLnMDJHDIPoylObwpWIY5/CyTJzkydw1kSIhzA6ZQ7E+fJrDWUZ0g0JxKks" +
	"T5NDSPJTmUaRcmAN5Nn0FJ/lMdYNGcWpWnWHRaGAMZ2AQDoEDKNhLicVpViQDYnGqWpPl2HxFDQNwJgoLoGGaCcDInRdjMCuNYbovR2D2FyNgNIcAJC5FWKwNwcBqAzC" +
	"WBoPgTA8BkEwFwN4HRjjyAMH8EgcQ5CaGIFoAAHQ3AgAAIAQBAQ==");
		var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAEhABBYDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGMYhTgmFgAQhFcZQSB0Eg1BKMYwjOJgFgmEQxDQNIBQSLIYQiGSWZTgMYRSASI43RoMUIzV" +
	"AcQxDEaIZLlGQYHgkNIhDJPcZ0VDUbQGBiQIRmIAHNBwJJUVZFdBDLQkQy5HapZDkECobA+CZQTzUUI1LS9WS1HYaRJle4YRDUMJyQjdV4TRINHQvMinYzqOzrOhaW5T" +
	"SzLcqyCK0SxxR4AJ4yGobJjiQYJShXcxyDQ8dyZC7PQohG7ofxUAKDVjhMjZRQeMS9JCwaThHElRQHMyBdJkKA9Iq2WaGXBeeQ3JbNbzrYzHb5hHZgAzTOoWbzWFT8BJ" +
	"OFOCAYGcJJjHGTh+C2H40AAL5ckyBQDFkKoWHYLw9iGTpGDUY4zkIdwbF8JhbgMc5hF6OJ8C6BhTkOcBAlsR4NnQaAflAIQJBQBoRgwdAdEcIYVEUQJBGYOBCBMYQUGg" +
	"NhCEKB5FB4VBBgQXJgF+IAzA4Ig5GIQIQBwOxiGiIgngoYpIi4LoKiMA5KDIMwjEKakmk6OJkkmDpNgidgtgwI55AYJw5iQQwSEYNxkgiZJrEITppDSc4TkyCREmeFJk" +
	"CkAkLmWAwWFoOolkkNheDuJJJDSb4YmIQ4UkaGZlFkVJVhqTR5jYYw7mWeQ1AkPAnEmVh1C6Z4JiYL4KGQYwQmOH5PBoBh2h0EIaAaBg8GMI5Ij6IpokoNoOiOaJDiaE" +
	"oiA8KgegGIRpGoZoaiaaZDmCdYlGkZAmgmKJqEqFomimaoKCaIoqGqSo2iwQhknqRoyiyaxKlaNotk8OpCjiLprkqbQJD0LALAaQowmwSwWkaMZQhOVpKjKbJLDaTozm" +
	"0CxFAkPYtEsVpWjWbYLGaWo2lCGRil6N5pAuBpiDsbhLH6Zo3G4ax6HhYgpFibYjCWa4ml4QhPguVp2D4b4Li6bYPmiSZWngPhvGuWQJj+b5zmsBo+iePAmDCIwoGwGJ" +
	"6kEL4MA8EJDjCC46FWQwoBObwGkQD4UCcDpDg+PIHBWPpiHwYJxD+MgcH8BpH4cBJ7kicIrnKC4hg+fIjCoPoQhyOwuD8M5CnMPpJCMCIIkOOQOlOfw1k6MnJDwPw0GO" +
	"fhvDGdQNAIKdalOAJfDedJdC8SxCeyNJQleZhdEoJ4iEyLYWlWVx0GQJJslqTQtjcVJYi6aZ8mMM43EmFwCECJkfYyWiDuAuG0EgdBNB8AYHYMgxwEM1EAIAgIA==");
		var_Appearance.Add(3,"CP:2 -2 -2 2 2");
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bars = var_Chart.Bars;
			var var_Bar = var_Bars.Add("A");
				var_Bar.Height = 15;
				var_Bar.Color = 33554432;
				var_Bar.Pattern = 6;
			var var_Bar1 = var_Bars.Add("Task:A");
				var_Bar1.Shortcut = "Task";
				var_Bar1.Height = 15;
				var_Bar1.Color = 16777216;
				var_Bar1.Def(20) = true;
		var_Chart.NonworkingDaysColor = 15790320;
		var_Chart.SelBarColor = 16711680;
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Task 1"),"Task","1/2/2001","1/16/2001",null,null);
		var h = var_Items.AddItem("Task 2");
		var_Items.AddBar(h,"Task","1/2/2001","1/16/2001","",null);
		var_Items.ItemBar(h,"",33) = 65535;
		h = var_Items.AddItem("Task 3");
		var_Items.AddBar(h,"Task","1/2/2001","1/16/2001","",null);
		var_Items.ItemBar(h,"",257) = true;
		h = var_Items.AddItem("Task 4");
		var_Items.AddBar(h,"Task","1/2/2001","1/16/2001","",null);
		var_Items.ItemBar(h,"",40) = 58753152;
		h = var_Items.AddItem("Task 5");
		var_Items.AddBar(h,"Task","1/2/2001","1/16/2001","",null);
		var_Items.ItemBar(h,"",40) = 25198720;
		h = var_Items.AddItem("Task 6");
		var_Items.AddBar(h,"Task","1/2/2001","1/16/2001","",null);
		var_Items.ItemBar(h,"",40) = 2130771712;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1855:
Is there a way to display automatically the duration ( days, hours, minutes ) of the bar next to it

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Column = G2antt1.Columns.Add("Tasks");
		var_Column.AllowSizing = false;
		var_Column.Width = 36;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 64;
		var_Chart.FirstVisibleDate = "4/6/2009";
		var_Chart.LevelCount = 2;
		var var_Bar = var_Chart.Bars.Add("Task:Progress");
			var_Bar.Shortcut = "TaskS";
			var_Bar.Def(3) = "<%=((1:=int(0:= (%258))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != " +
	"0 ? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')%>";
		var_Chart.ResizeUnitScale = 1048576;
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("T1"),"TaskS","4/10/2009 2:30:00 AM","4/16/2009 2:30:00 AM",null,null);
		var_Items.AddBar(var_Items.AddItem("T2"),"TaskS","4/14/2009 9:00:00 AM","4/22/2009 10:10:00 AM",null,null);
		var_Items.ItemBar(0,"<*>",20) = true;
		var_Items.ItemBar(0,"<*>",4) = 18;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1854:
Is there a way to display automatically the duration ( days, hours, minutes ) of the bar next to it

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Column = G2antt1.Columns.Add("Tasks");
		var_Column.AllowSizing = false;
		var_Column.Width = 36;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 64;
		var_Chart.FirstVisibleDate = "4/6/2009";
		var_Chart.LevelCount = 2;
		var_Chart.UnitScale = 65536;
		var_Chart.ResizeUnitScale = 1048576;
		var_Chart.Bars.Item("Task").Def(3) = "<%=((1:=int(0:= (%513))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != " +
	"0 ? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')%>";
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("T1"),"Task","4/6/2009 2:30:00 AM","4/6/2009 12:35:00 PM",null,null);
		var_Items.AddBar(var_Items.AddItem("T2"),"Task","4/6/2009 9:00:00 AM","4/6/2009 10:10:00 AM",null,null);
		var_Items.ItemBar(0,"<*>",4) = 18;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1853:
Does it support single or multiple split pane views

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	G2antt1.Background(18) = 8421504;
	G2antt1.Background(142) = 2631720;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 76;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Summary");
			var_Bar.Pattern = 3;
			var_Bar.Shape = 4;
			var_Bar.Color = 16711680;
			var_Bar.StartColor = var_Bar.Color;
			var_Bar.EndColor = var_Bar.Color;
		var_Chart.AllowSplitPane = 3;
		var_Chart.SplitPaneWidth = "128,128";
	var var_Items = G2antt1.Items;
		var hSummary = var_Items.AddItem("Summary");
		var_Items.AddBar(hSummary,"Summary","1/2/2001","1/2/2001","",null);
		var hTask = var_Items.InsertItem(hSummary,null,"Task A");
		var_Items.AddBar(hTask,"Task","1/2/2001","1/5/2001","K1",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task B");
		var_Items.AddBar(hTask,"Task","1/4/2001","1/8/2001","K2",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task C");
		var_Items.AddBar(hTask,"Task","2/23/2001","2/27/2001","K3",null);
		var_Items.ExpandItem(hSummary) = true;
		var_Items.DefineSummaryBars(hSummary,"",-1,"<*>");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1852:
How can I programmatically add more split panes ( by code)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	G2antt1.Background(18) = 8421504;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 76;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Summary");
			var_Bar.Pattern = 3;
			var_Bar.Shape = 4;
			var_Bar.Color = 16711680;
			var_Bar.StartColor = var_Bar.Color;
			var_Bar.EndColor = var_Bar.Color;
		var_Chart.AllowSplitPane = 1;
	var var_Items = G2antt1.Items;
		var hSummary = var_Items.AddItem("Summary");
		var_Items.AddBar(hSummary,"Summary","1/2/2001","1/2/2001","",null);
		var hTask = var_Items.InsertItem(hSummary,null,"Task A");
		var_Items.AddBar(hTask,"Task","1/2/2001","1/5/2001","K1",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task B");
		var_Items.AddBar(hTask,"Task","1/4/2001","1/8/2001","K2",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task C");
		var_Items.AddBar(hTask,"Task","2/23/2001","2/27/2001","K3",null);
		var_Items.ExpandItem(hSummary) = true;
		var_Items.DefineSummaryBars(hSummary,"",-1,"<*>");
	var var_Chart1 = G2antt1.Chart;
		var_Chart1.ScrollTo(var_Chart1.EndPrintDate,1);
		var_Chart1.SplitPaneWidth = "128,128,128";
		var_Chart1.ScrollTo(var_Chart1.StartPrintDate,1);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1851:
How can I programmatically add a split pane, or adding a split view at runtime

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	G2antt1.Background(142) = 2631720;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 76;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Summary");
			var_Bar.Pattern = 3;
			var_Bar.Shape = 4;
			var_Bar.Color = 16711680;
			var_Bar.StartColor = var_Bar.Color;
			var_Bar.EndColor = var_Bar.Color;
		var_Chart.AllowSplitPane = 1;
	var var_Items = G2antt1.Items;
		var hSummary = var_Items.AddItem("Summary");
		var_Items.AddBar(hSummary,"Summary","1/2/2001","1/2/2001","",null);
		var hTask = var_Items.InsertItem(hSummary,null,"Task A");
		var_Items.AddBar(hTask,"Task","1/2/2001","1/5/2001","K1",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task B");
		var_Items.AddBar(hTask,"Task","1/4/2001","1/8/2001","K2",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task C");
		var_Items.AddBar(hTask,"Task","2/23/2001","2/27/2001","K3",null);
		var_Items.ExpandItem(hSummary) = true;
		var_Items.DefineSummaryBars(hSummary,"",-1,"<*>");
	var var_Chart1 = G2antt1.Chart;
		var_Chart1.ScrollTo(var_Chart1.EndPrintDate,1);
		var_Chart1.SplitPaneWidth = "128";
		var_Chart1.ScrollTo(var_Chart1.StartPrintDate,1);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1850:
Is there any way, property, procedure or anything else to split the control into multiple views

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	G2antt1.Background(142) = 2631720;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 76;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Summary");
			var_Bar.Pattern = 3;
			var_Bar.Shape = 4;
			var_Bar.Color = 16711680;
			var_Bar.StartColor = var_Bar.Color;
			var_Bar.EndColor = var_Bar.Color;
		var_Chart.AllowSplitPane = 1;
	var var_Items = G2antt1.Items;
		var hSummary = var_Items.AddItem("Summary");
		var_Items.AddBar(hSummary,"Summary","1/2/2001","1/2/2001","",null);
		var hTask = var_Items.InsertItem(hSummary,null,"Task A");
		var_Items.AddBar(hTask,"Task","1/2/2001","1/5/2001","K1",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task B");
		var_Items.AddBar(hTask,"Task","1/4/2001","1/8/2001","K2",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task C");
		var_Items.AddBar(hTask,"Task","2/23/2001","2/27/2001","K3",null);
		var_Items.ExpandItem(hSummary) = true;
		var_Items.DefineSummaryBars(hSummary,"",-1,"<*>");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1849:
It appears that I can not use the ItemFromPoint property in my environment. What else I can do

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="MouseMove(Button,Shift,X,Y)" LANGUAGE="JScript">
	alert( G2antt1.ExecuteTemplate("Dim c, hit; ItemFromPoint(-1,-1, c, hit )") );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Column = G2antt1.Columns.Add("Default");
		var_Column.Def(0) = true;
		var_Column.PartialCheck = true;
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Root 1");
		var_Items.InsertItem(h,null,"Child 1");
		var_Items.InsertItem(h,null,"Child 2");
		var_Items.ExpandItem(h) = true;
		h = var_Items.AddItem("Root 2");
		var_Items.InsertItem(h,null,"Child 1");
		var_Items.InsertItem(h,null,"Child 2");
		var_Items.ExpandItem(h) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1848:
How can I change the color for selected links (ebn)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Appearance = G2antt1.VisualAppearance;
		var_Appearance.RenderType = -2;
		var_Appearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BNkMQAAYAQGKIYBkAKBQAGaAoDDYNQwQwAAwjIKEEwsACEIrjKCVIgkHYJRjGEZxMAsEwjAoaQChEZRUhEMgxDDIIxAJIcaw0GSEZwgOQZB" +
	"iOEYnDANMgzDLMZR7DajYymSA6LiKNo+QjKFB0NLMVRtEIIIzCSCaNomT4DS4NIi2DYcVhhMqBYbtCZZBo2FpZUxXdL0BJMVxbHKYJikW4pVjoAJ+TxccjVDQNJyLQ6r" +
	"YzuAAKNpuO58RbdGDQHA9KyfLCEcTxYAMbp6X5kaBZVp2VCMRzbTLUIDzPNVCTrNIaJioAaMeiCG5NUzieqRNalLABFjZMIHDbtGynDIJZruW52+CLIZpWbEOiRXr2Tx" +
	"xgGYp5Fie5mAYBgIgSFDrDOIZUmQZYiECXJUjIEQ3lUGgbEIRQcg+Hg8DEFxYFuOR/i+X5znufh/omBgCgCVwjn4BoBmCCAmAqApgkefgMgOYQID4DoELsUgTgUYYIC4" +
	"F4GGGSAaBuBxhhgfgggUYgog4EYJGIaBJn6ChiBiLgsgkIpoj4J4BCMSJWDaDZjgiZgCEAQCAgA==");
		var_Appearance.Add(2,"CP:1 -2 -2 2 2");
	G2antt1.DefaultItemHeight = 24;
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.NonworkingDays = 0;
		var_Chart.LinksStyle = 0;
		var_Chart.LinksWidth = 2;
		var_Chart.SelLinkColor = 33554687;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L1",h1,"",h2,"");
		var_Items.Link("L1",257) = true;
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L2",h2,"",h3,"");
		var_Items.SchedulePDM(0,"");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1847:
How can I change the color for selected links (color, no frame)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DefaultItemHeight = 24;
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.NonworkingDays = 0;
		var_Chart.LinksStyle = 0;
		var_Chart.LinksWidth = 2;
		var_Chart.SelLinkColor = 2130706687;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L1",h1,"",h2,"");
		var_Items.Link("L1",257) = true;
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L2",h2,"",h3,"");
		var_Items.SchedulePDM(0,"");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1846:
How can I change the color for selected links (color, frame)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DefaultItemHeight = 24;
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.NonworkingDays = 0;
		var_Chart.LinksStyle = 0;
		var_Chart.LinksWidth = 2;
		var_Chart.SelLinkColor = 255;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L1",h1,"",h2,"");
		var_Items.Link("L1",257) = true;
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L2",h2,"",h3,"");
		var_Items.SchedulePDM(0,"");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1845:
By default, the bar gets selected once the user releases the button of the mouse. Is it possible to change this behavior so the bar gets selected once the user presses the button of the mouse
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="MouseDown(Button,Shift,X,Y)" LANGUAGE="JScript">
	var h = G2antt1.ItemFromPoint(-1,-1,c,hit);
	var b = G2antt1.Chart.BarFromPoint(-1,-1);
	var var_Items = G2antt1.Items;
		var_Items.ItemBar(0,"<*>",257) = false;
		var_Items.ItemBar(h,b,257) = true;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DefaultItemHeight = 32;
	var var_Appearance = G2antt1.VisualAppearance;
		var_Appearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BNkMQAAYAQGKIYBkAKBQAGaAoDDYNQwQwAAwjIKEEwsACEIrjKCVIgkHYJRjGEZxMAsEwjAoaQChEZRUhEMgxDDIIxAJIcaw0GSEZwgOQZB" +
	"iOEYnDANMgzDLMZR7DajYymSA6LiKNo+QjKFB0NLMVRtEIIIzCSCaNomT4DS4NIi2DYcVhhMqBYbtCZZBo2FpZUxXdL0BJMVxbHKYJikW4pVjoAJ+TxccjVDQNJyLQ6r" +
	"YzuAAKNpuO58RbdGDQHA9KyfLCEcTxYAMbp6X5kaBZVp2VCMRzbTLUIDzPNVCTrNIaJioAaMeiCG5NUzieqRNalLABFjZMIHDbtGynDIJZruW52+CLIZpWbEOiRXr2Tx" +
	"xgGYp5Fie5mAYBgIgSFDrDOIZUmQZYiECXJUjIEQ3lUGgbEIRQcg+Hg8DEFxYFuOR/i+X5znufh/omBgCgCVwjn4BoBmCCAmAqApgkefgMgOYQID4DoELsUgTgUYYIC4" +
	"F4GGGSAaBuBxhhgfgggUYgog4EYJGIaBJn6ChiBiLgsgkIpoj4J4BCMSJWDaDZjgiZgCEAQCAgA==");
		var_Appearance.Add(2,"CP:1 -2 -2 2 2");
	var var_Chart = G2antt1.Chart;
		var_Chart.AllowSelectObjects = 0;
		var_Chart.FirstVisibleDate = "1/1/2002";
		var_Chart.SelBarColor = 33554432;
		var_Chart.PaneWidth(0) = 48;
	G2antt1.Columns.Add("Task");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task");
		var_Items.AddBar(h,"Task","1/2/2002","1/4/2002","A",null);
		var_Items.AddBar(h,"Task","1/6/2002","1/10/2002","B",null);
		var_Items.AddBar(h,"Task","1/11/2002","1/14/2002","C",null);
		var_Items.ItemBar(h,"B",257) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1844:
How can I change the bar's color (sample 3, ebn, individual, global)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Appearance = G2antt1.VisualAppearance;
		var_Appearance.RenderType = -2;
		var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABN0GACAADACAxRDAMgBQKAAzQFAYahuGSGAAGMYxQgmFgAQhFcZQSKUOQTDKMIziYBYJhEMQyDAAUIjOKsIhkGYcZAGQBJCjWGodQLOEgwH" +
	"IERQjEyUJAGGQIHhyPYbUbGUpQHKkeRtGqgBgoKhKEouNYgAbGYIwTRsdyfDSXBpEWwbDgkNQwWTDNoRDIUQStCysaYjOpnfrUAJ1P7FdQ1NJkXRhGSSK7maapaiCSZ6" +
	"STCMj1FhVKSNJ7DQKhGpgKh/ApgYpQOK4fLNXyRBK4QAyKA6bgPFZOZbFViaXY1V5bNKrcjhHQwAyHJ4XXRdV4YRAkUT4GqiJKGSYcQhuXZWbRqO6ABhef6DRThc6jKp" +
	"FHIE4llEcojHqSZNgoIxnlgd5thsLREleL43gsYZ9BkaAYkMAgAm+CxGDWWAtiKCRfjcdRgHoHYnicUwgAIEIREAaQYkcQZUHIGRUDQJBOEYRAhDYCxGgMZAkCgdYQha" +
	"XQIAYERwQuahXggdgeG6VZ4H4IhdiIGIOB8YIiGiHZZgqYpGF4KYHiKCI+CAU5jCiTQ2g0YhEFyax4gABAEIC");
		var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAEhABU0IQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyjAKMEwsACEIrjKCRShyCYZRhGcTAJBMIhiGQYAChEZxVhEMgzDjIAxSJAcQRFESaAABGCQG" +
	"h+N4/S4NIi0CIsZQjCaiZ7pKA5bgMCo+UrNMixZQVCSOGChYRpCaZWpGGodQRUFbVHAlKypJKCKrEWSrDhuYAAW7XM7yBS1TzVNSuLZtaLqSroAJ1WTWMB0Ra8NzZEKf" +
	"aZACj4arKejrRDCMAggI=");
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 128;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.Def(4) = 18;
			var_Bar.Color = 16777216;
		var var_Bar1 = var_Chart.Bars.Item("Summary");
			var_Bar1.Def(4) = 18;
			var_Bar1.Color = 33554432;
	var var_Items = G2antt1.Items;
		var hSummaryJ = var_Items.AddItem("Summary A");
		var_Items.AddBar(hSummaryJ,"Summary","1/2/2001","1/2/2001","J",null);
		var hTaskJ = var_Items.InsertItem(hSummaryJ,null,"Task A.1");
		var_Items.AddBar(hTaskJ,"Task","1/2/2001","1/5/2001","J1",null);
		hTaskJ = var_Items.InsertItem(hSummaryJ,null,"Task A.2");
		var_Items.AddBar(hTaskJ,"Task","1/4/2001","1/8/2001","J2",null);
		var_Items.DefineSummaryBars(hSummaryJ,"J",-1,"<*>");
		var hSummaryK = var_Items.AddItem("Summary B");
		var_Items.AddBar(hSummaryK,"Summary","1/2/2001","1/2/2001","K",null);
		var hTaskK = var_Items.InsertItem(hSummaryK,null,"Task B.1");
		var_Items.AddBar(hTaskK,"Task","1/2/2001","1/5/2001","K1",null);
		hTaskK = var_Items.InsertItem(hSummaryK,null,"Task B.2");
		var_Items.AddBar(hTaskK,"Task","1/4/2001","1/8/2001","K2",null);
		var_Items.DefineSummaryBars(hSummaryK,"K",-1,"<*>");
		var_Items.ItemBar(0,"<K*>",33) = 255;
		var_Items.ExpandItem(0) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1843:
How can I change the bar's color (sample 2, global)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 128;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.Def(4) = 18;
			var_Bar.Color = 255;
		var var_Bar1 = var_Chart.Bars.Item("Summary");
			var_Bar1.Def(4) = 18;
			var_Bar1.Color = 255;
			var_Bar1.StartColor = var_Bar1.Color;
			var_Bar1.EndColor = var_Bar1.Color;
	var var_Items = G2antt1.Items;
		var hSummaryJ = var_Items.AddItem("Summary A");
		var_Items.AddBar(hSummaryJ,"Summary","1/2/2001","1/2/2001","J",null);
		var hTaskJ = var_Items.InsertItem(hSummaryJ,null,"Task A.1");
		var_Items.AddBar(hTaskJ,"Task","1/2/2001","1/5/2001","J1",null);
		hTaskJ = var_Items.InsertItem(hSummaryJ,null,"Task A.2");
		var_Items.AddBar(hTaskJ,"Task","1/4/2001","1/8/2001","J2",null);
		var_Items.DefineSummaryBars(hSummaryJ,"J",-1,"<*>");
		var hSummaryK = var_Items.AddItem("Summary B");
		var_Items.AddBar(hSummaryK,"Summary","1/2/2001","1/2/2001","K",null);
		var hTaskK = var_Items.InsertItem(hSummaryK,null,"Task B.1");
		var_Items.AddBar(hTaskK,"Task","1/2/2001","1/5/2001","K1",null);
		hTaskK = var_Items.InsertItem(hSummaryK,null,"Task B.2");
		var_Items.AddBar(hTaskK,"Task","1/4/2001","1/8/2001","K2",null);
		var_Items.DefineSummaryBars(hSummaryK,"K",-1,"<*>");
		var_Items.ExpandItem(0) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1842:
How can I change the bar's color (sample 1, individual)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 128;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.Bars.Item("Task").Def(4) = 18;
		var_Chart.Bars.Item("Summary").Def(4) = 18;
	var var_Items = G2antt1.Items;
		var hSummaryJ = var_Items.AddItem("Summary A");
		var_Items.AddBar(hSummaryJ,"Summary","1/2/2001","1/2/2001","J","  (default)");
		var hTaskJ = var_Items.InsertItem(hSummaryJ,null,"Task A.1");
		var_Items.AddBar(hTaskJ,"Task","1/2/2001","1/5/2001","J1","(default)");
		hTaskJ = var_Items.InsertItem(hSummaryJ,null,"Task A.2");
		var_Items.AddBar(hTaskJ,"Task","1/4/2001","1/8/2001","J2","(default)");
		var_Items.DefineSummaryBars(hSummaryJ,"J",-1,"<*>");
		var hSummaryK = var_Items.AddItem("Summary B");
		var_Items.AddBar(hSummaryK,"Summary","1/2/2001","1/2/2001","K",null);
		var hTaskK = var_Items.InsertItem(hSummaryK,null,"Task B.1");
		var_Items.AddBar(hTaskK,"Task","1/2/2001","1/5/2001","K1",null);
		hTaskK = var_Items.InsertItem(hSummaryK,null,"Task B.2");
		var_Items.AddBar(hTaskK,"Task","1/4/2001","1/8/2001","K2",null);
		var_Items.DefineSummaryBars(hSummaryK,"K",-1,"<*>");
		var_Items.ItemBar(hSummaryK,"",33) = 255;
		var_Items.ItemBar(0,"<K*>",33) = 255;
		var_Items.ExpandItem(0) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1841:
How do I make the control read-only (method 2)

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="Edit(Item,ColIndex,Cancel)" LANGUAGE="JScript">
	Cancel = true;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Editor = G2antt1.Columns.Add("Editor").Editor;
		var_Editor.EditType = 6;
		var_Editor.AddItem(1,"One",null);
		var_Editor.AddItem(2,"Two",null);
	var var_Column = G2antt1.Columns.Add("Check");
		var var_Editor1 = var_Column.Editor;
			var_Editor1.EditType = 19;
			var_Editor1.Option(16) = 2;
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem(1),1) = 0;
		var_Items.CellValue(var_Items.AddItem(2),1) = 1;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1840:
How do I make the control read-only (method 1)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ReadOnly = -1;
	var var_Editor = G2antt1.Columns.Add("Editor").Editor;
		var_Editor.EditType = 6;
		var_Editor.AddItem(1,"One",null);
		var_Editor.AddItem(2,"Two",null);
	var var_Column = G2antt1.Columns.Add("Check");
		var var_Editor1 = var_Column.Editor;
			var_Editor1.EditType = 19;
			var_Editor1.Option(16) = 2;
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem(1),1) = 0;
		var_Items.CellValue(var_Items.AddItem(2),1) = 1;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1839:
The ReadOnly property does not prevent changing the column's check-box (sample 2)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ShowFocusRect = false;
	var var_Column = G2antt1.Columns.Add("C1");
		var_Column.AllowSizing = false;
		var_Column.Width = 18;
		var_Column.Editor.EditType = 19;
	G2antt1.Columns.Add("C2");
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem(0),1) = "Item 1";
		var_Items.CellValue(var_Items.AddItem(-1),1) = "Item 2";
		var_Items.CellValue(var_Items.AddItem(0),1) = "Item 3";
	G2antt1.ReadOnly = true;
	G2antt1.Columns.Item(0).Editor.Option(17) = 2;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1838:
The ReadOnly property does not prevent changing the column's check-box (sample 1)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ShowFocusRect = false;
	var var_Column = G2antt1.Columns.Add("C1");
		var_Column.AllowSizing = false;
		var_Column.Width = 18;
		var var_Editor = var_Column.Editor;
			var_Editor.EditType = 19;
			var_Editor.Option(17) = 1;
	G2antt1.Columns.Add("C2");
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem(0),1) = "Item 1";
		var_Items.CellValue(var_Items.AddItem(-1),1) = "Item 2";
		var_Items.CellValue(var_Items.AddItem(0),1) = "Item 3";
	G2antt1.ReadOnly = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1837:
How can I change the visual appearance of the control's split bar (sample 3)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Default");
	var var_Appearance = G2antt1.VisualAppearance;
		var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABPsIQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyjAKMEwsACEIrjKCRShyCYZRrGUQxCKIZhzEgYRokAYYRDIMg5SBIETzFIMCQ9AaaJpieRJG" +
	"iiKoJSxHErgFD8QxzEKOZqnCapViAMpOAZQAwDAIoWhpKKBRhqOpRUhaID/WAAFCUZK4ASTDCyLRgNy4lACgI");
		var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAEhABPkIQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyjAKMEwsACEIrjKCRShyCYZRrGUQxCKIZhzEgYRoiEYhXDiIAxARHcgyBIMPQJGSaZpkSRpI" +
	"iqHItS6BM4RVKkcw7G6BaJnGJpADKTQGQiMIwDAIoWhpKCBaiqSpqMglf5fg6pOJqHACZZKWLNLpxDBMAkBA=");
		var_Appearance.Add(3,"gBFLBCJwBAEHhEJAAEhABUUIQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyjAKMEwsACEIrjKCRShyCYZRrGQCwTCIYhmHKSRhGSIRSDcOIgDCBEbyDIEQw9AiZZqmaRZH" +
	"imK4cS5MEhwHKsLSLGyOZwoSapbgmJooU5KUwSYKQcxBI6laYpIAKJhiWobTxUEBwMKlJw5KoBJxjKqIbp2XZsUxIAxXEA1HBgGASRZGS5bDreeQ0UZCL74GAFUy/Lib" +
	"a6weqnLhGCYBgIA==");
	G2antt1.Background(18) = 25198720;
	G2antt1.Background(141) = 41975936;
	G2antt1.Background(142) = 50397441;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 64;
		var_Chart.HistogramVisible = true;
		var_Chart.HistogramHeight = 64;
		var_Chart.OverviewHeight = 48;
		var_Chart.OverviewVisible = -1;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1836:
How can I change the color for the control's split bar (sample 2)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Default");
	G2antt1.Background(18) = 12500670;
	G2antt1.Background(141) = 8421504;
	G2antt1.Background(142) = 65536;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 64;
		var_Chart.HistogramVisible = true;
		var_Chart.HistogramHeight = 64;
		var_Chart.OverviewHeight = 48;
		var_Chart.OverviewVisible = -1;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1835:
How do I highlight a bar with an icon, exclamation mark or some warning sign, without using exBarCaption, exBarExtraCaption which I've already use for something else ( sample 2 )

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "12/26/2000";
		var_Chart.PaneWidth(false) = 128;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var_Items.AddItem("");
		var h = var_Items.AddItem("Item");
		var_Items.AddItem("");
		var_Items.AddBar(h,"Task","1/1/2001","1/13/2001","A",null);
	var var_Notes = G2antt1.Chart.Notes;
		var var_Note = var_Notes.Add("Attention",G2antt1.Items.ItemByIndex(1),"A"," <font ;11>! ");
			var_Note.RelativePosition = 0.5;
			var_Note.ShowLink = 0;
			var_Note.PartVOffset(1) = 0;
			var_Note.PartShadow(1) = false;
			var_Note.PartBackColor(1) = 65535;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1834:
How do I highlight a bar with an icon, exclamation mark or some warning sign, without using exBarCaption, exBarExtraCaption which I've already use for something else ( sample 1 )

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "12/26/2000";
		var_Chart.PaneWidth(false) = 128;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var_Items.AddItem("");
		var h = var_Items.AddItem("Item");
		var_Items.AddItem("");
		var_Items.AddBar(h,"Task","1/1/2001","1/13/2001","A",null);
		var_Items.ItemBar(h,"A",53) = "[text=`<bgcolor=FFFF00><font ;11> ! `,align=0x11]";
		var_Items.ItemBar(h,"A",55) = 8;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1833:
How do I get the "Summary" bar being shown in the control's histogram (sample 2)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	G2antt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAEhABU0IQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyjAKMEwsACEIrjKCRShyCYZRhGcTAJBMIhiGQYAChEZxVhEMgzDjIAxSJAcQRFESaAABGCQG" +
	"h+N4/S4NIi0CIsZQjCaiZ7pKA5bgMCo+UrNMixZQVCSOGChYRpCaZWpGGodQRUFbVHAlKypJKCKrEWSrDhuYAAW7XM7yBS1TzVNSuLZtaLqSroAJ1WTWMB0Ra8NzZEKf" +
	"aZACj4arKejrRDCMAggI=");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 128;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.HistogramVisible = true;
		var_Chart.HistogramHeight = 64;
		var_Chart.HistogramView = 1136;
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.HistogramPattern = var_Bar.Pattern;
			var_Bar.HistogramType = 256;
			var_Bar.HistogramCumulativeOriginalColorBars = 1;
	var var_Items = G2antt1.Items;
		var hSummary = var_Items.AddItem("Summary");
		var_Items.AddBar(hSummary,"Task","1/2/2001","1/2/2001","",null);
		var_Items.ItemBar(hSummary,"",33) = 16777216;
		var hTask = var_Items.InsertItem(hSummary,null,"Task A");
		var_Items.AddBar(hTask,"Task","1/2/2001","1/5/2001","K1",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task B");
		var_Items.AddBar(hTask,"Task","1/4/2001","1/8/2001","K2",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task C");
		var_Items.AddBar(hTask,"Task","1/12/2001","1/17/2001","K3",null);
		var_Items.ExpandItem(hSummary) = true;
		var_Items.DefineSummaryBars(hSummary,"",-1,"<*>");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1832:
How do I get the "Summary" bar being shown in the control's histogram (sample 1)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAEhABU0IQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyjAKMEwsACEIrjKCRShyCYZRhGcTAJBMIhiGQYAChEZxVhEMgzDjIAxSJAcQRFESaAABGCQG" +
	"h+N4/S4NIi0CIsZQjCaiZ7pKA5bgMCo+UrNMixZQVCSOGChYRpCaZWpGGodQRUFbVHAlKypJKCKrEWSrDhuYAAW7XM7yBS1TzVNSuLZtaLqSroAJ1WTWMB0Ra8NzZEKf" +
	"aZACj4arKejrRDCMAggI=");
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 128;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.HistogramVisible = true;
		var_Chart.HistogramHeight = 64;
		var_Chart.HistogramView = 1136;
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.HistogramPattern = var_Bar.Pattern;
		var var_Bar1 = var_Chart.Bars.Item("Summary");
			var_Bar1.Color = 16777216;
			var_Bar1.HistogramColor = 65536;
			var_Bar1.HistogramPattern = 6;
	var var_Items = G2antt1.Items;
		var hSummary = var_Items.AddItem("Summary");
		var_Items.AddBar(hSummary,"Summary","1/2/2001","1/2/2001","",null);
		var hTask = var_Items.InsertItem(hSummary,null,"Task A");
		var_Items.AddBar(hTask,"Task","1/2/2001","1/5/2001","K1",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task B");
		var_Items.AddBar(hTask,"Task","1/4/2001","1/8/2001","K2",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task C");
		var_Items.AddBar(hTask,"Task","1/12/2001","1/17/2001","K3",null);
		var_Items.ExpandItem(hSummary) = true;
		var_Items.DefineSummaryBars(hSummary,"",-1,"<*>");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1831:
How can I temporarily/programmatically hide the control's tooltip

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="RClick()" LANGUAGE="JScript">
	var nToolTipDelay = G2antt1.ToolTipDelay;
	G2antt1.ToolTipDelay = 0;
	G2antt1.ToolTipDelay = nToolTipDelay;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Column w/h tooltip...").ToolTip = "This is a bit of text that's shown when the cursor hovers the column.<br><br><sha ;;0><c>Right-Click to hide it</sha>";
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstWeekDay = var_Chart.LocFirstWeekDay;
		var_Chart.MonthNames = var_Chart.LocMonthNames;
		var_Chart.WeekDays = var_Chart.LocWeekDays;
		var_Chart.AMPM = var_Chart.LocAMPM;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 128;
		var_Chart.UnitScale = 4096;
	G2antt1.HeaderAppearance = 1;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1830:
Is it possible to find out the handle of the item, giving the key of the bar only

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Debug = true;
	G2antt1.DefaultItemHeight = 32;
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 64;
		var_Chart.Bars.Item("Task").Height = 16;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.ShowLinks = 1;
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Task 1"),"Task","1/2/2001","1/4/2001","K1",null);
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/5/2001","1/7/2001","K2",null);
		var_Items.ItemBold(var_Items.ItemBar(0,"K2",512)) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1829:
How can I programmatically add a link between two bars, knowing the keys of these bars only

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Debug = true;
	G2antt1.DefaultItemHeight = 32;
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 64;
		var_Chart.Bars.Item("Task").Height = 16;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.ShowLinks = 1;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/5/2001","1/7/2001","AK2",null);
		var_Items.AddLink("Link1",0,"K1",0,"AK2");
		var_Items.AddLink("Link2",0,"K1",0,"<A?2>");
		var_Items.AddLink("Link3",0,"<*1>",0,"AK2");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1828:
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 3)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.LinesAtRoot = -1;
	G2antt1.DrawGridLines = -2;
	G2antt1.AutoDrag = 3;
	G2antt1.HasLines = 1;
	G2antt1.Indent = 16;
	G2antt1.MarkSearchColumn = false;
	var var_Columns = G2antt1.Columns;
		var var_Column = var_Columns.Add("");
			var_Column.Def(17) = 1;
			var_Column.FormatColumn = "((1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 + `` :  (=:0 mid (1 + 1 + =:1) )  + `)` ) + ` ` + value";
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Root");
		var_Items.InsertItem(h,null,"Child");
		var hChild = var_Items.InsertItem(h,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(h,null,"Child");
		var_Items.ExpandItem(0) = true;
		h = var_Items.AddItem("Root");
		var_Items.InsertItem(h,null,"Child");
		hChild = var_Items.InsertItem(h,null,"Child");
		var_Items.CellState(hChild,0) = 1;
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(h,null,"Child");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1827:
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 2)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.LinesAtRoot = -1;
	G2antt1.GridLineColor = 12500670;
	G2antt1.DrawGridLines = -2;
	G2antt1.AutoDrag = 3;
	G2antt1.HasLines = 1;
	G2antt1.Indent = 16;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Default");
		var var_Column = var_Columns.Add("");
			var_Column.Def(17) = 1;
			var_Column.Def(49) = 4;
			var_Column.AllowSizing = false;
			var_Column.Width = 36;
			var_Column.Position = 0;
			var_Column.FormatColumn = "(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : (`............` left 2 * (=:0 count `.`)) + (=:0 mid (1 + 1 + =" +
	":1) ) ";
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Root");
		var_Items.InsertItem(h,null,"Child");
		var hChild = var_Items.InsertItem(h,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(h,null,"Child");
		var_Items.ExpandItem(0) = true;
		h = var_Items.AddItem("Root");
		var_Items.InsertItem(h,null,"Child");
		hChild = var_Items.InsertItem(h,null,"Child");
		var_Items.CellState(hChild,0) = 1;
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(h,null,"Child");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1826:
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 1)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.LinesAtRoot = -1;
	G2antt1.DrawGridLines = -2;
	G2antt1.AutoDrag = 3;
	G2antt1.HasLines = 1;
	G2antt1.Indent = 16;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Default");
		var var_Column = var_Columns.Add("");
			var_Column.Def(17) = 1;
			var_Column.Def(49) = 4;
			var_Column.Alignment = 2;
			var_Column.AllowSizing = false;
			var_Column.Width = 24;
			var_Column.Position = 0;
			var_Column.FormatColumn = "(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : `<i>` + (=:0 mid (1 + 1 + =:1) ) ";
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Root");
		var_Items.InsertItem(h,null,"Child");
		var hChild = var_Items.InsertItem(h,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(h,null,"Child");
		var_Items.ExpandItem(0) = true;
		h = var_Items.AddItem("Root");
		var_Items.InsertItem(h,null,"Child");
		hChild = var_Items.InsertItem(h,null,"Child");
		var_Items.CellState(hChild,0) = 1;
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(hChild,null,"Child");
		var_Items.InsertItem(h,null,"Child");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1825:
How can I programmatically group by columns, without having the control's sort bar visible

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.ColumnAutoResize = false;
	var rs = new ActiveXObject("ADOR.Recordset");
		rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",3,3,null);
	G2antt1.DataSource = rs;
	G2antt1.SortBarHeight = 0;
	G2antt1.SortBarVisible = true;
	G2antt1.SortBarCaption = "Drag a <b>column</b> header here to group by that column.";
	G2antt1.AllowGroupBy = true;
	G2antt1.Layout = "multiplesort=\"C1:2\"";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1824:
How do I perform my own sort

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="Sort()" LANGUAGE="JScript">
	alert( "Sort" );
	var var_Items = G2antt1.Items;
		var_Items.ItemPosition(var_Items.ItemByIndex(1)) = 0;
		var_Items.ItemPosition(var_Items.ItemByIndex(0)) = 1;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.SingleSort = false;
	G2antt1.SortOnClick = 1;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Index").FormatColumn = "0 index ``";
		var_Columns.Add("Data 1");
		var_Columns.Add("Data 2");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem(0);
		var_Items.CellValue(h,1) = 2;
		var_Items.CellValue(h,2) = 3;
		h = var_Items.AddItem(4);
		var_Items.CellValue(h,1) = 5;
		var_Items.CellValue(h,2) = 6;
		h = var_Items.AddItem(7);
		var_Items.CellValue(h,1) = 8;
		var_Items.CellValue(h,2) = 9;
	G2antt1.Layout = "multiplesort=\"C1:1 C2:2\"";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1823:
Is it possible to have a different alignment for parts of the cell's caption

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = true;
	G2antt1.TreeColumnIndex = -1;
	G2antt1.DrawGridLines = -2;
	var var_Column = G2antt1.Columns.Add("Default");
		var_Column.Def(0) = true;
	var var_Items = G2antt1.Items;
		var_Items.CellHAlignment(var_Items.AddItem("all-left"),0) = 0;
		var_Items.CellHAlignment(var_Items.AddItem("all-center"),0) = 1;
		var_Items.CellHAlignment(var_Items.AddItem("all-right"),0) = 2;
		var h = var_Items.AddItem("left<c>center<r>right");
		var_Items.CellValueFormat(h,0) = 1;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1822:
I have a column with Def(exCellSingleLine) property on False, word-wrapping, and I am wondering if possible to update the column's content while user is resizing it
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Columns = G2antt1.Columns;
		var var_Column = var_Columns.Add("MultipleLine");
			var_Column.Width = 32;
			var_Column.Def(16) = false;
			var_Column.Def(64) = true;
		var var_Column1 = var_Columns.Add("SingleLine");
			var_Column1.Def(16) = false;
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem("This is a bit of long text that should break the line"),1) = "This is a bit of long text that should break the line";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1821:
Is there an other way to detect if a bar is overlapping any other bar

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="BarResizing(Item,Key)" LANGUAGE="JScript">
	G2antt1.Refresh();
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = 2;
	G2antt1.HeaderAppearance = 4;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	G2antt1.DefaultItemHeight = 22;
	G2antt1.Columns.Add("Task");
	var var_Column = G2antt1.Columns.Add("Intersect / Count");
		var_Column.Def(19) = "A";
		var_Column.Def(18) = 521;
		var_Column.LevelKey = 1;
	var var_Column1 = G2antt1.Columns.Add(" / With");
		var_Column1.Def(19) = "A";
		var_Column1.Def(18) = 520;
		var_Column1.LevelKey = 1;
	G2antt1.Items.AllowCellValueToItemBar = true;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 148;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.OverlaidType = 1;
			var_Bar.OverlaidGroup = "TaskB";
			var_Bar.Def(4) = 16;
		var var_Bar1 = var_Chart.Bars.Add("TaskB");
			var_Bar1.Pattern = 6;
			var_Bar1.Def(4) = 18;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("A");
		var_Items.AddBar(h,"Task","1/2/2001","1/4/2001","A","A");
		var_Items.AddBar(h,"TaskB","1/3/2001","1/5/2001","B","B");
		h = var_Items.AddItem("A");
		var_Items.AddBar(h,"Task","1/6/2001","1/9/2001","A","A");
		var_Items.AddBar(h,"TaskB","1/10/2001","1/13/2001","B","B");
		h = var_Items.AddItem("A");
		var_Items.AddBar(h,"TaskB","1/6/2001","1/9/2001","B1","B1");
		var_Items.AddBar(h,"Task","1/10/2001","1/13/2001","A","A");
		var_Items.AddBar(h,"TaskB","1/10/2001","1/13/2001","B2","B2");
		h = var_Items.AddItem("A");
		var_Items.AddBar(h,"Task","1/8/2001","1/11/2001","B1","B1");
		var_Items.AddBar(h,"Task","1/10/2001","1/13/2001","A","A");
		var_Items.AddBar(h,"Task","1/12/2001","1/15/2001","B2","B2");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1820:
How can I get the absolute position of an item
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AddItem(Item)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		var_Items.AddBar(Item,"Task","1/2/2017","1/5/2017",null,null);
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="MouseMove(Button,Shift,X,Y)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		alert( var_Items.CellCaption(G2antt1.ItemFromPoint(-1,-1,c,hit),"Position") );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2017";
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	G2antt1.BackColorAlternate = 15790320;
	G2antt1.LinesAtRoot = -1;
	G2antt1.Columns.Add("Def").DisplayFilterButton = true;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Root");
		var_Items.InsertItem(var_Items.InsertItem(h,null,"Child 1"),null,"Sub-Child 1");
		var_Items.InsertItem(var_Items.InsertItem(h,null,"Child 2"),null,"Sub-Child 2");
	G2antt1.PutItems(G2antt1.GetItems(-1),null);
	G2antt1.PutItems(G2antt1.GetItems(-1),null);
	G2antt1.PutItems(G2antt1.GetItems(-1),null);
	var var_Column = G2antt1.Columns.Add("Position");
		var_Column.FormatColumn = "1 apos ``";
		var_Column.Visible = false;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1819:
How do I sort the index column as numeric (Method 2)

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AddItem(Item)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		var_Items.CellData(Item,1) = var_Items.CellCaption(Item,1);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -1;
	G2antt1.ColumnAutoResize = true;
	G2antt1.ShowFocusRect = false;
	var var_Column = G2antt1.Columns.Add("Next");
		var_Column.Def(48) = 4;
		var_Column.Def(52) = 4;
	var var_Column1 = G2antt1.Columns.Add("Index");
		var_Column1.AllowSizing = false;
		var_Column1.Width = 48;
		var_Column1.FormatColumn = "(((0 := (1 index ``)) mod 3) case ( default: ``; 0 : `<r><fgcolor=B0B0B0>`; 1: ``; 2 : `<c><fgcolor=808080>` )) + str(=:0)";
		var_Column1.Def(17) = 1;
		var_Column1.SortType = 5;
		var_Column1.Position = 0;
	var var_Items = G2antt1.Items;
		var_Items.AddItem("Item 1");
		var_Items.AddItem("Item 2");
		var_Items.AddItem("Item 3");
		var_Items.AddItem("Item 4");
		var_Items.AddItem("Item 5");
		var_Items.AddItem("Item 6");
		var_Items.AddItem("Item 7");
		var_Items.AddItem("Item 8");
		var_Items.AddItem("Item 9");
		var_Items.AddItem("Item 10");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1818:
How do I sort the index column as numeric (Method 1)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Column = G2antt1.Columns.Add("Sort Index As String (Default)");
		var_Column.FormatColumn = "1 index ``";
	var var_Column1 = G2antt1.Columns.Add("Sort Index As Numeric");
		var_Column1.ComputedField = "%C0";
		var_Column1.SortType = 1;
	var var_Items = G2antt1.Items;
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1817:
How can I put icons/images into buttons

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
	"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
	"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
	"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
	var var_Column = G2antt1.Columns.Add("C+B");
		var_Column.AllowSizing = false;
		var_Column.Width = 48;
		var_Column.FormatColumn = "` <img>` + ( 1 + (1 index ``) mod 3 ) + `</img> `";
		var_Column.Def(17) = 1;
		var_Column.Def(0) = true;
		var_Column.Def(2) = true;
		var_Column.Def(3) = true;
	G2antt1.Columns.Add("");
	G2antt1.DrawGridLines = 2;
	G2antt1.DefaultItemHeight = 20;
	var var_Items = G2antt1.Items;
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1816:
Is it possible to have a CheckBox and Button TOGETHER on all cells in a column

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="ButtonClick(Item,ColIndex,Key)" LANGUAGE="JScript">
	alert( "ButtonClick" );
	alert( Item );
	alert( Key );
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="CellStateChanged(Item,ColIndex)" LANGUAGE="JScript">
	alert( "CellStateChanged" );
	alert( Item );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	var var_Column = G2antt1.Columns.Add("");
		var_Column.AllowSizing = false;
		var_Column.Width = 32;
		var_Column.FormatColumn = "1 index ``";
	var var_Column1 = G2antt1.Columns.Add("Def");
		var_Column1.AllowSizing = false;
		var_Column1.Width = 48;
		var_Column1.FormatColumn = "`     `";
		var_Column1.Def(0) = true;
		var_Column1.Def(2) = true;
		var_Column1.Def(3) = true;
	G2antt1.Columns.Add("");
	var var_Items = G2antt1.Items;
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
		var_Items.AddItem("");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1815:
Does filtering work with umlauts / accents characters

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Column = G2antt1.Columns.Add("Names");
		var_Column.DisplayFilterButton = true;
		var_Column.FilterType = 3;
	var var_Items = G2antt1.Items;
		var_Items.AddItem("Mantel");
		var_Items.AddItem("Mechanik");
		var_Items.AddItem("Motor");
		var_Items.AddItem("Murks");
		var_Items.AddItem("Märchen");
		var_Items.AddItem("Möhren");
		var_Items.AddItem("Mühle");
		var_Items.AddItem("Sérigraphie");
	G2antt1.Columns.Item(0).Filter = "*ä*";
	G2antt1.ApplyFilter();
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1814:
How can I temporarily disable resizing the overview part of the control

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	G2antt1.OnResizeControl = 1024;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.OverviewVisible = 69890;
		var_Chart.OverviewHeight = 32;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Item 1"),"Task","1/2/2001","1/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 2"),"Task","2/2/2001","2/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 3"),"Task","3/2/2001","3/11/2001",null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1813:
Is it possible to resize the overview part of the control at runtime

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAEhABVADg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGUYBRgmFgAQhFcZQSBcEgTDaMYzgMBYJhEMQyDSAUIjPEyMg0DjIIwgJIUaw0GSXIRkGQZC" +
	"hGJooTJQMrTZIEbQxHSkIyRVTmZACS5NRZPYy0FAkQhlFSbJBCOKwVomR5KUxTVg1DJwahLCKULLhGI7KgObIRSJOcZ1XAdCQ0cB0XpAC6LaqSA4nSjKcqwJKEZRJIyj" +
	"JwgSrrWhePoJYBVAAQPQdDYaCivK5uWK6PqKUIlZBQGQVNS1MRrLSEcwgPKgAyzDadZzfQAWTZFTQjN61RgtXR6eyoAJ0aziFDVFo0WRlEwacorGhcbgPPrCRrxGBVNw" +
	"gGOJo4kIeASB0Zw/iGDoym6dobh2XpiDWJo5HMd56h6dxjlICIEhQDQmDOIZUmQZZlAADpYHIEQ3nUGgNhCEIhAkawamAAAYEWRAGB2bA2EqYg2AyA4glgPgSgQYRIEI" +
	"FoEmEeBWBiBphFAAgPDwDgDEycQ4A0Q5IwkDwjgyWA8k4SIsmUNoPEOFJbD0DhjHINA3E8Q4eDiDojhiYJmg+Ixokic4LmKQxiCkNk2CCX4DmGaA0nAN4NBiDJSDwTgT" +
	"Eycg4E0WIYlcPJiiiMJZhCTYpgCcw5g2OYOGWGQmCkEJkheYopGoVw1GSGQuA2ExIlOQJcDOZJzEDSJNBiAgiU4Q5GCeChNHkHJygsaBzGaCYimiCY0mMNZoCMWhUDUJ" +
	"5pkYTIDk6YxwkwO5NlMOoch6JQJm4U4JCIMxWFSKbCBoKIgmJDAuDgKhohKIoTk0GhaHOJgNiMKJuDaaYzHCTYnAyaZmjSKIiDiCghjEYg6AaR4yk0OpOiFSQLAKNgjG" +
	"cQ40lkMhOmqZo7DKTpzG6Pw3CmYx2HiNAsCqBh8h6Z5bh6T4oC0G4Im+OAtlMNpTjUTYDCKVo2C3QBLi6a5bH6YY4EyehzAGO4wEwDoejwK5rnK95vDgPJsDWTBjjSWA" +
	"xnEK5aleNhriuawKi8Lp7H8HpHHGXBskyQpxguXwNgMTpDFiRZDnEExfBSPRvHuXwYkycYslae5NjMQwrDGNZxFyHINDsDRTBMKZKnKLIwm2S4xF0Jw8lKTIcm9eA0hy" +
	"QwuksM5jiyVQwnQDQIlaVo0EyLwQlGcRNCME5EjKfYXGSWEhDMQ5QnOahHG6KwoFOCoFiOaBNlcdIjiQag7HOL0dwuxKC1aeNQI4BQihNDoEwXowxmh8CIL8Yg8ROBfA" +
	"SMcaIOR6CHBkMgLgrwUjLHkHMG4NQaBzE4MQaIyw5gxEsH0Dw9FBBNA6PUDoLwpjTHqF0N4WQShSHgGwcY2RkhdFCL8bYdwOivDqNse4fRnh5G+PYEgaR1B0E4B4D4ix" +
	"xB4G8E8SI5R8D+DeJUc4eRPB/EaJ8DwpwojDHUPofwtxYjtH2F4d4sx3j7E+AcXo8B9geFCNYOIHhfg/GmPQPoXw3jZHuPoX4hxuj1H8J8T43RPhDEgM8eo/B/iQGuPw" +
	"fxEh1guAIAwQAgCAg");
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.OverviewVisible = 69890;
		var_Chart.OverviewHeight = 32;
		var_Chart.OverviewSelBackColor = 16777216;
		var_Chart.OverviewBackColor = 16448250;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Item 1"),"Task","1/2/2001","1/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 2"),"Task","2/2/2001","2/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 3"),"Task","3/2/2001","3/11/2001",null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1812:
You've provided examples of how to create bars for each record of a MS Access table, however I would like to create a database connected Gantt that has multiple bars per item/resource. Could you please advise

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AddGroupItem(Item)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		var_Items.AddBar(Item,"Summary",var_Items.CellValue(Item,2),var_Items.CellValue(Item,4),"0",null);
		var_Items.DefineSummaryBars(Item,"0",-3,"0");
		var_Items.AddBar(Item,"SummaryB",var_Items.CellValue(Item,2),var_Items.CellValue(Item,4),"1",null);
		var_Items.DefineSummaryBars(Item,"1",-3,"1");
		var_Items.ItemBackColor(Item) = 15790320;
	G2antt1.Chart.ItemBackColor(Item) = 15790320;
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="AddItem(Item)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		var_Items.AddBar(Item,"Task",var_Items.CellValue(Item,2),var_Items.CellValue(Item,4),var_Items.ItemBar(Item,"",256),null);
		var_Items.AddBar(Item,"TaskB",var_Items.CellValue(Item,3),var_Items.CellValue(Item,4),var_Items.ItemBar(Item,"",256),null);
</SCRIPT>

<SCRIPT FOR="G2antt1" EVENT="MouseDown(Button,Shift,X,Y)" LANGUAGE="JScript">
	var i = G2antt1.ItemFromPoint(-1,-1,c,hit);
	G2antt1.FullRowSelect = G2antt1.Columns.Item(c).Data;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ScrollBySingleLine = true;
	G2antt1.HeaderHeight = 22;
	G2antt1.HeaderAppearance = 1;
	G2antt1.BackColorLock = 15790320;
	G2antt1.BackColorHeader = G2antt1.BackColorLock;
	G2antt1.HasLines = 0;
	G2antt1.ColumnAutoResize = false;
	G2antt1.SortBarVisible = false;
	G2antt1.AllowGroupBy = true;
	G2antt1.ReadOnly = -1;
	G2antt1.ShowFocusRect = false;
	G2antt1.CountLockedColumns = 1;
	G2antt1.AutoDrag = 16;
	G2antt1.SingleSort = false;
	G2antt1.ColumnsAllowSizing = true;
	G2antt1.DrawGridLines = -1;
	G2antt1.GridLineStyle = 48;
	G2antt1.GridLineColor = 14474460;
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "9/1/1994";
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 256;
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.Height = 15;
			var_Bar.Color = 8421504;
			var_Bar.StartColor = 52428;
			var_Bar.EndColor = var_Bar.StartColor;
			var_Bar.OverlaidType = 3;
			var_Bar.OverlaidGroup = "Task,TaskB";
			var_Bar.Pattern = 96;
		var var_Bar1 = var_Chart.Bars.Copy("Task","TaskB");
			var_Bar1.Color = 8421504;
			var_Bar1.StartColor = 39321;
			var_Bar1.EndColor = var_Bar1.StartColor;
		var var_Bar2 = var_Chart.Bars.Item("Summary");
			var_Bar2.OverlaidType = 3;
			var_Bar2.OverlaidGroup = "Summary,SummaryB";
			var_Bar2.Color = 52428;
			var_Bar2.StartColor = var_Bar2.Color;
			var_Bar2.EndColor = var_Bar2.Color;
		var var_Bar3 = var_Chart.Bars.Copy("Summary","SummaryB");
			var_Bar3.Color = 39321;
			var_Bar3.StartColor = var_Bar3.Color;
			var_Bar3.EndColor = var_Bar3.Color;
	G2antt1.BackColorSortBar = G2antt1.BackColor;
	G2antt1.ColumnAutoResize = false;
	var rs = new ActiveXObject("ADOR.Recordset");
		rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access2007\\sample.accdb",3,3,null);
	G2antt1.DataSource = rs;
	G2antt1.Debug = true;
	G2antt1.Columns.Item(0).Data = -1;
	G2antt1.Layout = "singlesort=\"C5:1\";multiplesort=\" C1:2\"";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1811:
How can I filter for multiple captions on a single column, using OR clause

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.MarkSearchColumn = true;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var var_Column = var_Columns.Add("Title");
			var_Column.Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.FilterBarPromptColumns = "1";
	G2antt1.FilterBarPromptPattern = "Vice Inside";
	G2antt1.FilterBarPromptType = 2;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1810:
How can I filter for multiple captions on a single column, using AND clause

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.MarkSearchColumn = true;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var var_Column = var_Columns.Add("Title");
			var_Column.Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.FilterBarPromptColumns = "1";
	G2antt1.FilterBarPromptPattern = "Vice Sales";
	G2antt1.FilterBarPromptType = 1;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1809:
How can I display the limits/margins of the project, in the overview part of the control

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAEhABVADg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGUYBRgmFgAQhFcZQSBcEgTDaMYzgMBYJhEMQyDSAUIjPEyMg0DjIIwgJIUaw0GSXIRkGQZC" +
	"hGJooTJQMrTZIEbQxHSkIyRVTmZACS5NRZPYy0FAkQhlFSbJBCOKwVomR5KUxTVg1DJwahLCKULLhGI7KgObIRSJOcZ1XAdCQ0cB0XpAC6LaqSA4nSjKcqwJKEZRJIyj" +
	"JwgSrrWhePoJYBVAAQPQdDYaCivK5uWK6PqKUIlZBQGQVNS1MRrLSEcwgPKgAyzDadZzfQAWTZFTQjN61RgtXR6eyoAJ0aziFDVFo0WRlEwacorGhcbgPPrCRrxGBVNw" +
	"gGOJo4kIeASB0Zw/iGDoym6dobh2XpiDWJo5HMd56h6dxjlICIEhQDQmDOIZUmQZZlAADpYHIEQ3nUGgNhCEIhAkawamAAAYEWRAGB2bA2EqYg2AyA4glgPgSgQYRIEI" +
	"FoEmEeBWBiBphFAAgPDwDgDEycQ4A0Q5IwkDwjgyWA8k4SIsmUNoPEOFJbD0DhjHINA3E8Q4eDiDojhiYJmg+Ixokic4LmKQxiCkNk2CCX4DmGaA0nAN4NBiDJSDwTgT" +
	"Eycg4E0WIYlcPJiiiMJZhCTYpgCcw5g2OYOGWGQmCkEJkheYopGoVw1GSGQuA2ExIlOQJcDOZJzEDSJNBiAgiU4Q5GCeChNHkHJygsaBzGaCYimiCY0mMNZoCMWhUDUJ" +
	"5pkYTIDk6YxwkwO5NlMOoch6JQJm4U4JCIMxWFSKbCBoKIgmJDAuDgKhohKIoTk0GhaHOJgNiMKJuDaaYzHCTYnAyaZmjSKIiDiCghjEYg6AaR4yk0OpOiFSQLAKNgjG" +
	"cQ40lkMhOmqZo7DKTpzG6Pw3CmYx2HiNAsCqBh8h6Z5bh6T4oC0G4Im+OAtlMNpTjUTYDCKVo2C3QBLi6a5bH6YY4EyehzAGO4wEwDoejwK5rnK95vDgPJsDWTBjjSWA" +
	"xnEK5aleNhriuawKi8Lp7H8HpHHGXBskyQpxguXwNgMTpDFiRZDnEExfBSPRvHuXwYkycYslae5NjMQwrDGNZxFyHINDsDRTBMKZKnKLIwm2S4xF0Jw8lKTIcm9eA0hy" +
	"QwuksM5jiyVQwnQDQIlaVo0EyLwQlGcRNCME5EjKfYXGSWEhDMQ5QnOahHG6KwoFOCoFiOaBNlcdIjiQag7HOL0dwuxKC1aeNQI4BQihNDoEwXowxmh8CIL8Yg8ROBfA" +
	"SMcaIOR6CHBkMgLgrwUjLHkHMG4NQaBzE4MQaIyw5gxEsH0Dw9FBBNA6PUDoLwpjTHqF0N4WQShSHgGwcY2RkhdFCL8bYdwOivDqNse4fRnh5G+PYEgaR1B0E4B4D4ix" +
	"xB4G8E8SI5R8D+DeJUc4eRPB/EaJ8DwpwojDHUPofwtxYjtH2F4d4sx3j7E+AcXo8B9geFCNYOIHhfg/GmPQPoXw3jZHuPoX4hxuj1H8J8T43RPhDEgM8eo/B/iQGuPw" +
	"fxEh1guAIAwQAgCAg");
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.OverviewVisible = 31746;
		var_Chart.OverviewHeight = 64;
		var_Chart.OverviewSelBackColor = 16777216;
		var_Chart.OverviewBackColor = 16448250;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Item 1"),"Task","1/2/2001","1/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 2"),"Task","2/2/2001","2/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 3"),"Task","3/2/2001","3/11/2001",null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1808:
Is it possible to display a time-scale for the overview part of the control (separated)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.OverviewVisible = 5122;
		var_Chart.OverviewHeight = 48;
		var_Chart.LevelCount = 2;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Item 1"),"Task","1/2/2001","1/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 2"),"Task","2/2/2001","2/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 3"),"Task","3/2/2001","3/11/2001",null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1807:
Is it possible to display a time-scale for the overview part of the control

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.OverviewVisible = 4098;
		var_Chart.LevelCount = 2;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Item 1"),"Task","1/2/2001","1/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 2"),"Task","2/2/2001","2/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 3"),"Task","3/2/2001","3/11/2001",null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1806:
How can I display the time-scale only, in the overview part of the control

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.OverviewVisible = 4610;
		var_Chart.LevelCount = 2;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Item 1"),"Task","1/2/2001","1/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 2"),"Task","2/2/2001","2/11/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Item 3"),"Task","3/2/2001","3/11/2001",null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1805:
How can I detect that the mouse pointer is within an InsideZoom object
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="MouseMove(Button,Shift,X,Y)" LANGUAGE="JScript">
	var var_Chart = G2antt1.Chart;
		var d = var_Chart.DateFromPoint(-1,-1);
		var iz = var_Chart.InsideZooms.Contains(d);
		alert( d );
		alert( "If the iz object is nothing, the date is not zoomed, else it is." );
		alert( iz );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(0) = 0;
		var_Chart.LevelCount = 2;
		var_Chart.FirstWeekDay = 1;
		var_Chart.AllowInsideZoom = true;
		var_Chart.InsideZooms.Add("1/10/2001");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1804:
Is it possible to word-wrap text/caption on the bar, so it gets displayed on multiple lines

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ScrollBySingleLine = true;
	G2antt1.ItemsAllowSizing = -1;
	G2antt1.DrawGridLines = 1;
	G2antt1.HeaderHeight = 28;
	G2antt1.DefaultItemHeight = 24;
	G2antt1.BackColorLevelHeader = G2antt1.BackColor;
	G2antt1.HeaderAppearance = 5;
	G2antt1.Columns.Add("Tasks");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 128;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.DrawGridLines = 1;
		var var_Bar = var_Chart.Bars.Copy("Task","TaskB");
			var_Bar.Height = 15;
			var_Bar.Pattern = 32;
			var_Bar.StartColor = 16771276;
			var_Bar.EndColor = var_Bar.StartColor;
			var_Bar.Color = 16711680;
		var var_Bar1 = var_Chart.Bars.Item("Task");
			var_Bar1.Height = -1;
			var_Bar1.Pattern = 32;
			var_Bar1.StartColor = 16771276;
			var_Bar1.EndColor = var_Bar1.StartColor;
			var_Bar1.Color = 16711680;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Word-Wrap Inside");
		var_Items.AddBar(h,"Task","1/9/2001","1/13/2001","A1",null);
		var_Items.ItemBar(h,"A1",53) = "none[(2,2,100%-4,100%-4),text=`This is a bit of text that should break the line`,wordwrap]";
		h = var_Items.AddItem("Word-Wrap Inside");
		var_Items.AddBar(h,"Task","1/5/2001","1/19/2001","A2",null);
		var_Items.ItemBar(h,"A2",53) = "none[(2,2,100%-4,100%-4),align=0x11,text=`This is a bit of text that should break the line`,wordwrap]";
		h = var_Items.AddItem("Word-Wrap Back");
		var_Items.AddBar(h,"TaskB","1/9/2001","1/13/2001","A3",null);
		var_Items.ItemBar(h,"A3",53) = "client[align=0x11,text=`This is a bit of text that should break the line`,wordwrap]";
		var_Items.ItemBar(h,"A3",54) = 2;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1803:
Can I set the search box / filterbarprompt to invisible, so I can use my own input and *string* via VBA
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarHeight = 0;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.FilterBarPromptPattern = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1802:
How to load a hierarchy using the control's DataSource property (Parent-ID-Relation)

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AddItem(Item)" LANGUAGE="JScript">
	var var_Items = G2antt1.Items;
		var_Items.SetParent(Item,var_Items.FindItem(var_Items.CellValue(Item,"ReportsTo"),"EmployeeID",null));
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.LinesAtRoot = -1;
	G2antt1.ColumnAutoResize = false;
	G2antt1.ContinueColumnScroll = false;
	var rs = new ActiveXObject("ADOR.Recordset");
		rs.Open("SELECT * FROM Employees ORDER BY ReportsTo","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB",3,3,null);
	G2antt1.DataSource = rs;
	G2antt1.Items.ExpandItem(0) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1801:
How can I highlight the limits/margins of a summary bar, according with the child bars

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Appearance = G2antt1.VisualAppearance;
		var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABRkIQAAYAQGKQYhiAKBQAGaAoDDcMA4QwAAyjhwkAIIQK/cZRPC0Ow8GSEZAgOKIch6FgCQjEIxDKIsVRZEiDYRmGLpIiOJoWSQBUIyJKoA" +
	"Q0f6fIziaTpNiGL4yTBPMzyJRcEx1GyBZ5negaAo2AwIQiUBomGahajkMqZQAJaCSCI2Y4eDZCIoTXR1WAxDq3ZruKpLUpOc4DOrEMIwCEBA=");
		var_Appearance.Add(2,"CP:1 -4 0 5 0");
		var_Appearance.Add(3,"gBFLBCJwBAEHhEJAAEhABOMGACAADACAxSDEMQBQKAAzQFAYbhgHCGAAGUYBRgmFgAQhFcZQSKUOQTDKMIziYBYJhEMQyDAAUIjOKsIhkGYcZAGQBJCjWGodQRHc5TN" +
	"CMTRRECDY4kAYpAiKRYbSpAcyQHQ8bQtHwYKAoOg6JjWIAHRqCMI0XINHQ3FwaRJsCwoJhOZIDWZENDQTSsLSxJSkIRfe4wArNf4XVBVMqSdKEZRJLybJwADApAo2eIl" +
	"QjJdQ4TSdBSdQwDLYhECpbwCT6JT7jGLQJZsNyvBLIYDrKA8UozFqHQRYNhxDZNShhM6rMigPQQAq8AKlRbVNzXLamLwHRS9BpoORhUjHD4bVxVOyaPpAAaBFbhI44QZ" +
	"OHYNYfjgaI0BySp8HMVZdlgaxtBqexWkqOw1lGbZzlwfQ0AwYR/gka5FiMGpgkQYYviGV4kBUWpmlsaYGHMEgACECQUAaEYMHQHRHCGFRBECRJkGQQgTGCVBoDYQhCgQ" +
	"JZoG4EIAGEFwGB+dwxHaB5iAabReggYhGnUToJGIRgCCiCBdjiNguGmYo4gIKoMGIKIeDSCYTGiXg4EITo3hAiJAICA==");
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 128;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.Bars.Item("Summary").Color = 50331648;
	var var_Items = G2antt1.Items;
		var hSummary = var_Items.AddItem("Summary");
		var_Items.AddBar(hSummary,"Summary","1/2/2001","1/2/2001","",null);
		var hTask = var_Items.InsertItem(hSummary,null,"Task A");
		var_Items.AddBar(hTask,"Task","1/2/2001","1/5/2001","K1",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task B");
		var_Items.AddBar(hTask,"Task","1/4/2001","1/8/2001","K2",null);
		hTask = var_Items.InsertItem(hSummary,null,"Task C");
		var_Items.AddBar(hTask,"Task","1/6/2001","1/10/2001","K3",null);
		var_Items.ExpandItem(hSummary) = true;
		var_Items.DefineSummaryBars(hSummary,"",-1,"<*>");
		var_Items.ItemBar(hSummary,"",34) = 33554432;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>