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

Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = true;
Gantt1->ContinueColumnScroll = false;
Gantt1->MarkSearchColumn = false;
Gantt1->SearchColumnIndex = 1;
Gantt1->Indent = 16;
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Gantt1->FilterBarPromptVisible = true;
Gantt1->FilterBarPromptPattern = L"Nancy";
Gantt1->FilterInclude = Exganttlib_tlb::FilterIncludeEnum::exItemsWithChilds;
Gantt1->Chart->LevelCount = 2;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h0 = var_Items->AddItem(TVariant("Nancy Davolio"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Representative"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("Seattle"));
	h0 = var_Items->InsertItem(h0,TNoParam(),TVariant("Andrew Fuller"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("Tacoma"));
	h0 = var_Items->InsertItem(h0,TNoParam(),TVariant("Michael Suyama"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Representative"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("London"));
	h0 = var_Items->AddItem(TVariant("Janet Leverling"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Representative"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->InsertItem(h0,TNoParam(),TVariant("Margaret Peacock"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Representative"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("Redmond"));
Gantt1->ApplyFilter();
Gantt1->EndUpdate();

900:
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

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Date");
	var_Column->SortType = Exganttlib_tlb::SortTypeEnum::SortDate;
	var_Column->DisplayFilterButton = true;
	var_Column->DisplayFilterPattern = false;
	var_Column->DisplayFilterDate = true;
	var_Column->FilterList = Exganttlib_tlb::FilterListEnum::exShowFocusItem | Exganttlib_tlb::FilterListEnum::exShowCheckBox | Exganttlib_tlb::FilterListEnum::exSortItemsDesc;
Exganttlib_tlb::IColumnPtr var_Column1 = Gantt1->Columns->Add(L"DateTime");
	var_Column1->SortType = Exganttlib_tlb::SortTypeEnum::SortDateTime;
	var_Column1->DisplayFilterButton = true;
	var_Column1->DisplayFilterPattern = false;
	var_Column1->FilterList = Exganttlib_tlb::FilterListEnum::exShowFocusItem | Exganttlib_tlb::FilterListEnum::exShowCheckBox | Exganttlib_tlb::FilterListEnum::exSortItemsDesc;
Exganttlib_tlb::IColumnPtr var_Column2 = Gantt1->Columns->Add(L"Time");
	var_Column2->SortType = Exganttlib_tlb::SortTypeEnum::SortTime;
	var_Column2->DisplayFilterButton = true;
	var_Column2->DisplayFilterPattern = false;
	var_Column2->FilterList = Exganttlib_tlb::FilterListEnum::exShowFocusItem | Exganttlib_tlb::FilterListEnum::exShowCheckBox | Exganttlib_tlb::FilterListEnum::exSortItemsDesc;
	var_Column2->FormatColumn = L"time(value)";
Exganttlib_tlb::IColumnPtr var_Column3 = Gantt1->Columns->Add(L"Numeric");
	var_Column3->SortType = Exganttlib_tlb::SortTypeEnum::SortNumeric;
	var_Column3->DisplayFilterButton = true;
	var_Column3->FilterList = Exganttlib_tlb::FilterListEnum::exShowFocusItem | Exganttlib_tlb::FilterListEnum::exShowCheckBox | Exganttlib_tlb::FilterListEnum::exSortItemsDesc;
Exganttlib_tlb::IColumnPtr var_Column4 = Gantt1->Columns->Add(L"String");
	var_Column4->DisplayFilterButton = true;
	var_Column4->FilterList = Exganttlib_tlb::FilterListEnum::exShowFocusItem | Exganttlib_tlb::FilterListEnum::exShowCheckBox | Exganttlib_tlb::FilterListEnum::exSortItemsDesc;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant(TDateTime(2010,1,27).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(TDateTime(2010,1,27,10,00,00,0).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant(var_Items->get_CellCaption(TVariant(h),TVariant(1))));
	var_Items->set_CellCaption(TVariant(h),TVariant(3),TVariant(1));
	var_Items->set_CellCaption(TVariant(h),TVariant(4),TVariant(var_Items->get_CellCaption(TVariant(h),TVariant(3))));
	h = var_Items->AddItem(TVariant(TDateTime(2011,1,27).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(TDateTime(2011,1,27,9,00,00,0).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant(var_Items->get_CellCaption(TVariant(h),TVariant(1))));
	var_Items->set_CellCaption(TVariant(h),TVariant(3),TVariant(11));
	var_Items->set_CellCaption(TVariant(h),TVariant(4),TVariant(var_Items->get_CellCaption(TVariant(h),TVariant(3))));
	h = var_Items->AddItem(TVariant(TDateTime(2010,11,2).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(TDateTime(2010,11,2,9,00,00,0).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant(var_Items->get_CellCaption(TVariant(h),TVariant(1))));
	var_Items->set_CellCaption(TVariant(h),TVariant(3),TVariant(2));
	var_Items->set_CellCaption(TVariant(h),TVariant(4),TVariant(var_Items->get_CellCaption(TVariant(h),TVariant(3))));
Gantt1->Columns->get_Item(TVariant("DateTime"))->DisplayFilterDate = false;
Gantt1->EndUpdate();

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

Gantt1->BeginUpdate();
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"P1");
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
	var_Column->PartialCheck = true;
Exganttlib_tlb::IColumnPtr var_Column1 = Gantt1->Columns->Add(L"P2");
	var_Column1->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
	var_Column1->PartialCheck = true;
	var_Column1->FormatColumn = L"1 index ``";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Root"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child A"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child B"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child A"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child B"));
	var_Items->AddItem(TVariant("Root"));
	var_Items->AddItem(TVariant("Root"));
Gantt1->SingleSort = false;
Gantt1->Layout = L"multiplesort=\"C0:1 C1:2\";collapse=\"\"";
Gantt1->EndUpdate();

898:
How can I get ride / hide the image being dragged by OLE Drag and Drop
// OLEStartDrag event - Occurs when the OLEDrag method is called.
void __fastcall TForm1::Gantt1OLEStartDrag(TObject *Sender,Exganttlib_tlb::IExDataObject   *Data,long *   AllowedEffects)
{
	// Data.SetData("data to drag")
	AllowedEffects = 1;
}

Gantt1->OLEDropMode = Exganttlib_tlb::exOLEDropModeEnum::exOLEDropManual;
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exDragDropAfter] = RGB(255,255,255);
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Gantt1->Columns->Add(L"Default");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Root"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);

897:
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)

Gantt1->BeginUpdate();
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exRowLines;
Gantt1->AutoDrag = Exganttlib_tlb::AutoDragEnum::exAutoDragPositionAny;
Gantt1->HasLines = Exganttlib_tlb::HierarchyLineEnum::exSolidLine;
Gantt1->Indent = 16;
Gantt1->MarkSearchColumn = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"");
		var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
		var_Column->FormatColumn = L"((1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 + `` :  (=:0 mid (1 + 1 + =:1) )  + `)` ) + ` ` + value";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Root"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	long hChild = var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	var_Items->set_ExpandItem(0,true);
	h = var_Items->AddItem(TVariant("Root"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	hChild = var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	var_Items->set_CellState(TVariant(hChild),TVariant(0),1);
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
Gantt1->EndUpdate();

896:
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)

Gantt1->BeginUpdate();
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Gantt1->GridLineColor = RGB(190,190,190);
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exRowLines;
Gantt1->AutoDrag = Exganttlib_tlb::AutoDragEnum::exAutoDragPositionAny;
Gantt1->HasLines = Exganttlib_tlb::HierarchyLineEnum::exSolidLine;
Gantt1->Indent = 16;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Default");
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"");
		var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
		var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellPaddingRight,TVariant(4));
		var_Column->AllowSizing = false;
		var_Column->Width = 36;
		var_Column->Position = 0;
		var_Column->FormatColumn = TVariant(String("(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : (`............` left 2 * (=:0 count `.`)) + (=:0 mid (1 + 1 + =") +
":1) ) ");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Root"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	long hChild = var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	var_Items->set_ExpandItem(0,true);
	h = var_Items->AddItem(TVariant("Root"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	hChild = var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	var_Items->set_CellState(TVariant(hChild),TVariant(0),1);
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
Gantt1->EndUpdate();

895:
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)

Gantt1->BeginUpdate();
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exRowLines;
Gantt1->AutoDrag = Exganttlib_tlb::AutoDragEnum::exAutoDragPositionAny;
Gantt1->HasLines = Exganttlib_tlb::HierarchyLineEnum::exSolidLine;
Gantt1->Indent = 16;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Default");
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"");
		var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
		var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellPaddingRight,TVariant(4));
		var_Column->Alignment = Exganttlib_tlb::AlignmentEnum::RightAlignment;
		var_Column->AllowSizing = false;
		var_Column->Width = 24;
		var_Column->Position = 0;
		var_Column->FormatColumn = L"(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : `<i>` + (=:0 mid (1 + 1 + =:1) ) ";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Root"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	long hChild = var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	var_Items->set_ExpandItem(0,true);
	h = var_Items->AddItem(TVariant("Root"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	hChild = var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
	var_Items->set_CellState(TVariant(hChild),TVariant(0),1);
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(hChild,TNoParam(),TVariant("Child"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child"));
Gantt1->EndUpdate();

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

Gantt1->BeginUpdate();
Gantt1->TreeColumnIndex = -1;
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exRowLines;
Gantt1->Chart->set_PaneWidth(true,0);
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Default");
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellHAlignment(TVariant(var_Items->AddItem(TVariant("all-left"))),TVariant(0),Exganttlib_tlb::AlignmentEnum::LeftAlignment);
	var_Items->set_CellHAlignment(TVariant(var_Items->AddItem(TVariant("all-center"))),TVariant(0),Exganttlib_tlb::AlignmentEnum::CenterAlignment);
	var_Items->set_CellHAlignment(TVariant(var_Items->AddItem(TVariant("all-right"))),TVariant(0),Exganttlib_tlb::AlignmentEnum::RightAlignment);
	long h = var_Items->AddItem(TVariant("left<c>center<r>right"));
	var_Items->set_CellCaptionFormat(TVariant(h),TVariant(0),Exganttlib_tlb::CaptionFormatEnum::exHTML);
Gantt1->EndUpdate();

893:
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
Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"MultipleLine");
		var_Column->Width = 32;
		var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellSingleLine,TVariant(false));
		var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exColumnResizeContiguously,TVariant(true));
	Exganttlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"SingleLine");
		var_Column1->set_Def(Exganttlib_tlb::DefColumnEnum::exCellSingleLine,TVariant(false));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("This is a bit of long text that should break the line"))),TVariant(1),TVariant("This is a bit of long text that should break the line"));
Gantt1->EndUpdate();

892:
How do I sort the index column as numeric

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->set_CellData(TVariant(Item),TVariant(1),TVariant(var_Items->get_ItemToIndex(Item)));
}

Gantt1->BeginUpdate();
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exAllLines;
Gantt1->ColumnAutoResize = true;
Gantt1->ShowFocusRect = false;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Next");
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellPaddingLeft,TVariant(4));
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exHeaderPaddingLeft,TVariant(4));
Exganttlib_tlb::IColumnPtr var_Column1 = Gantt1->Columns->Add(L"Index");
	var_Column1->AllowSizing = false;
	var_Column1->Width = 48;
	var_Column1->FormatColumn = L"(((0 := (1 index ``)) mod 3) case ( default: ``; 0 : `<r><fgcolor=B0B0B0>`; 1: ``; 2 : `<c><fgcolor=808080>` )) + str(=:0)";
	var_Column1->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
	var_Column1->SortType = Exganttlib_tlb::SortTypeEnum::SortUserData;
	var_Column1->Position = 0;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("Item 1"));
	var_Items->AddItem(TVariant("Item 2"));
	var_Items->AddItem(TVariant("Item 3"));
	var_Items->AddItem(TVariant("Item 4"));
	var_Items->AddItem(TVariant("Item 5"));
	var_Items->AddItem(TVariant("Item 6"));
	var_Items->AddItem(TVariant("Item 7"));
	var_Items->AddItem(TVariant("Item 8"));
	var_Items->AddItem(TVariant("Item 9"));
	var_Items->AddItem(TVariant("Item 10"));
Gantt1->EndUpdate();

891:
How can I put icons/images into buttons

Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = true;
Gantt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"C+B");
	var_Column->AllowSizing = false;
	var_Column->Width = 48;
	var_Column->FormatColumn = L"` <img>` + ( 1 + (1 index ``) mod 3 ) + `</img> `";
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasButton,TVariant(true));
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellButtonAutoWidth,TVariant(true));
Gantt1->Columns->Add(L"");
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exVLines;
Gantt1->DefaultItemHeight = 20;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
Gantt1->EndUpdate();

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

// CellButtonClick event - Fired after the user clicks on the cell of button type. 
void __fastcall TForm1::Gantt1CellButtonClick(TObject *Sender,Exganttlib_tlb::HITEM   Item,long   ColIndex)
{
	OutputDebugString( L"CellButtonClick" );
	OutputDebugString( L"Item" );
}

// CellStateChanged event - Fired after cell's state has been changed.
void __fastcall TForm1::Gantt1CellStateChanged(TObject *Sender,Exganttlib_tlb::HITEM   Item,long   ColIndex)
{
	OutputDebugString( L"CellStateChanged" );
	OutputDebugString( L"Item" );
}

Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = true;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"");
	var_Column->AllowSizing = false;
	var_Column->Width = 32;
	var_Column->FormatColumn = L"1 index ``";
Exganttlib_tlb::IColumnPtr var_Column1 = Gantt1->Columns->Add(L"Def");
	var_Column1->AllowSizing = false;
	var_Column1->Width = 48;
	var_Column1->FormatColumn = L"`     `";
	var_Column1->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
	var_Column1->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasButton,TVariant(true));
	var_Column1->set_Def(Exganttlib_tlb::DefColumnEnum::exCellButtonAutoWidth,TVariant(true));
Gantt1->Columns->Add(L"");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
	var_Items->AddItem(TVariant(""));
Gantt1->EndUpdate();

889:
Does filtering work with umlauts / accents characters
Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Names");
	var_Column->DisplayFilterButton = true;
	var_Column->FilterType = Exganttlib_tlb::FilterTypeEnum::exPattern;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("Mantel"));
	var_Items->AddItem(TVariant("Mechanik"));
	var_Items->AddItem(TVariant("Motor"));
	var_Items->AddItem(TVariant("Murks"));
	var_Items->AddItem(TVariant("Märchen"));
	var_Items->AddItem(TVariant("Möhren"));
	var_Items->AddItem(TVariant("Mühle"));
	var_Items->AddItem(TVariant("Sérigraphie"));
Gantt1->Columns->get_Item(TVariant(0))->Filter = L"*ä*";
Gantt1->ApplyFilter();
Gantt1->EndUpdate();

888:
Can I set the search box / filterbarprompt to invisible, so I can use my own input and *string* via VBA
Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = true;
Gantt1->ContinueColumnScroll = false;
Gantt1->MarkSearchColumn = false;
Gantt1->SearchColumnIndex = 1;
Gantt1->FilterBarHeight = 0;
Gantt1->FilterBarPromptVisible = true;
Gantt1->Chart->set_PaneWidth(true,0);
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h0 = var_Items->AddItem(TVariant("Nancy Davolio"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Representative"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("Seattle"));
	h0 = var_Items->AddItem(TVariant("Andrew Fuller"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->AddItem(TVariant("Janet Leverling"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Representative"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->AddItem(TVariant("Margaret Peacock"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Representative"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("Redmond"));
	h0 = var_Items->AddItem(TVariant("Steven Buchanan"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Manager"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("London"));
	h0 = var_Items->AddItem(TVariant("Michael Suyama"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Representative"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("London"));
	h0 = var_Items->AddItem(TVariant("Robert King"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Representative"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("London"));
	h0 = var_Items->AddItem(TVariant("Laura Callahan"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("Seattle"));
	h0 = var_Items->AddItem(TVariant("Anne Dodsworth"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(1),TVariant("Sales Representative"));
	var_Items->set_CellCaption(TVariant(h0),TVariant(2),TVariant("London"));
Gantt1->FilterBarPromptPattern = L"London";
Gantt1->EndUpdate();

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

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->SetParent(Item,var_Items->get_FindItem(TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant("ReportsTo"))),TVariant("EmployeeID"),TNoParam()));
}

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("SELECT * FROM Employees ORDER BY ReportsTo"),TVariant("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->Items->set_ExpandItem(0,true);
Gantt1->EndUpdate();

886:
The week number is not correct. What can I do

Exganttlib_tlb::IChartPtr var_Chart = Gantt1->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->set_PaneWidth(false,0);
	var_Chart->UnitScale = Exganttlib_tlb::UnitEnum::exWeek;
	var_Chart->UnitWidth = 32;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2016,1,1).operator double()));
	var_Chart->WeekNumberAs = Exganttlib_tlb::WeekNumberAsEnum::exISO8601WeekNumber;
	var_Chart->ScrollTo(var_Chart->get_FirstVisibleDate(),TVariant(1));

885:
How can I display my logo on print/print-preview

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,4).operator double()));
Gantt1->EndUpdate();
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		ExPrint 1.0 Control Library

	TypeLib: ExPrint.dll

	to define the namespace: Exprintlib_tlb
*/
//#include "EXPRINTLIB_TLB.h"
Exprintlib_tlb::IExPrintPtr var_Print = Variant::CreateObject(L"Exontrol.Print");
	var_Print->PageOrientation = Exprintlib_tlb::PageOrientationEnum::exLandscape;
	var_Print->set_HTMLPicture(L"logo",TVariant("c:\\exontrol\\images\\zipdisk.gif"));
	var_Print->ExtraCaption(TVariant("logo"),TVariant("<img>logo</img>"),TVariant(1),TVariant(1));
	var_Print->PrintExt = (IUnknown*)Gantt1->DefaultDispatch;
	var_Print->Preview();

884:
How can I align captions of items with checkbox, with items with no checkbox

Gantt1->BeginUpdate();
Gantt1->Columns->Add(L"Default");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellImages(TVariant(var_Items->AddItem(TVariant(0))),TVariant(0),TVariant("1"));
	var_Items->set_CellHasCheckBox(TVariant(var_Items->AddItem(TVariant(1))),TVariant(0),true);
	var_Items->set_CellImages(TVariant(var_Items->AddItem(TVariant(2))),TVariant(0),TVariant("1"));
Gantt1->EndUpdate();

883:
How do I show the chart's labels in 24-hour clock format

Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_PaneWidth(false,0);
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double()));
	var_Chart->LevelCount = 3;
	Exganttlib_tlb::ILevelPtr var_Level = var_Chart->get_Level(0);
		var_Level->set_Label(TVariant("<%mmm%> <%d%>, <%yyyy%>"));
		var_Level->Alignment = Exganttlib_tlb::AlignmentEnum::exHOutside | Exganttlib_tlb::AlignmentEnum::CenterAlignment;
		var_Level->Unit = Exganttlib_tlb::UnitEnum::exDay;
	Exganttlib_tlb::ILevelPtr var_Level1 = var_Chart->get_Level(1);
		var_Level1->set_Label(TVariant("<b><%h%>:00</b>"));
		var_Level1->Alignment = Exganttlib_tlb::AlignmentEnum::CenterAlignment;
		var_Level1->Unit = Exganttlib_tlb::UnitEnum::exHour;
		var_Level1->DrawTickLines = true;
		var_Level1->DrawGridLines = true;
	Exganttlib_tlb::ILevelPtr var_Level2 = var_Chart->get_Level(2);
		var_Level2->set_Label(TVariant("<%nn%>"));
		var_Level2->Unit = Exganttlib_tlb::UnitEnum::exMinute;
		var_Level2->Count = 15;
	var_Chart->ScrollTo(TDateTime(2001,1,1,8,30,00,0).operator double(),TVariant(0));

882:
How do I show the chart's labels in 12-hour clock format

Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_PaneWidth(false,0);
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double()));
	var_Chart->LevelCount = 3;
	Exganttlib_tlb::ILevelPtr var_Level = var_Chart->get_Level(0);
		var_Level->set_Label(TVariant("<%mmm%> <%d%>, <%yyyy%>"));
		var_Level->Alignment = Exganttlib_tlb::AlignmentEnum::exHOutside | Exganttlib_tlb::AlignmentEnum::CenterAlignment;
		var_Level->Unit = Exganttlib_tlb::UnitEnum::exDay;
	Exganttlib_tlb::ILevelPtr var_Level1 = var_Chart->get_Level(1);
		var_Level1->set_Label(TVariant("<b><%h%>:00</b> <%AM/PM%>"));
		var_Level1->Alignment = Exganttlib_tlb::AlignmentEnum::CenterAlignment;
		var_Level1->Unit = Exganttlib_tlb::UnitEnum::exHour;
		var_Level1->DrawTickLines = true;
		var_Level1->DrawGridLines = true;
	Exganttlib_tlb::ILevelPtr var_Level2 = var_Chart->get_Level(2);
		var_Level2->set_Label(TVariant("<%nn%>"));
		var_Level2->Unit = Exganttlib_tlb::UnitEnum::exMinute;
		var_Level2->Count = 15;
	var_Chart->ScrollTo(TDateTime(2001,1,1,8,30,00,0).operator double(),TVariant(0));

881:
The control does not ensure the item to fit the control's client area once the user clicks the cell's button or check box. What can be done
// MouseDown event - Occurs when the user presses a mouse button.
void __fastcall TForm1::Gantt1MouseDown(TObject *Sender,short   Button,short   Shift,int   X,int   Y)
{
	// Items.EnsureVisibleItem(ItemFromPoint(-1,-1,c,hit))
}

Gantt1->BeginUpdate();
Gantt1->TreeColumnIndex = -1;
Gantt1->SelForeColor = Gantt1->ForeColor;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Buttons");
	var_Column->Alignment = Exganttlib_tlb::AlignmentEnum::CenterAlignment;
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasButton,TVariant(true));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("Button A"));
	var_Items->AddItem(TVariant("Button B"));
	var_Items->AddItem(TVariant("Button C"));
Gantt1->EndUpdate();

880:
Do you have any Fit-To-Page options when printing the control (W x T, Fit-To )

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,4).operator double()));
Gantt1->EndUpdate();
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		ExPrint 1.0 Control Library

	TypeLib: ExPrint.dll

	to define the namespace: Exprintlib_tlb
*/
//#include "EXPRINTLIB_TLB.h"
Exprintlib_tlb::IExPrintPtr var_Print = Variant::CreateObject(L"Exontrol.Print");
	var_Print->set_Options(TVariant("FitToPage =1 x 2"));
	var_Print->PrintExt = (IUnknown*)Gantt1->DefaultDispatch;
	var_Print->Preview();

879:
Do you have any Fit-To-Page options when printing the control ( x T, Fit-To Tall )

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,4).operator double()));
Gantt1->EndUpdate();
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		ExPrint 1.0 Control Library

	TypeLib: ExPrint.dll

	to define the namespace: Exprintlib_tlb
*/
//#include "EXPRINTLIB_TLB.h"
Exprintlib_tlb::IExPrintPtr var_Print = Variant::CreateObject(L"Exontrol.Print");
	var_Print->set_Options(TVariant("FitToPage = x 2"));
	var_Print->PrintExt = (IUnknown*)Gantt1->DefaultDispatch;
	var_Print->Preview();

878:
Do you have any Fit-To-Page options when printing the control ( W x, Fit-To Wide )

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,4).operator double()));
Gantt1->EndUpdate();
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		ExPrint 1.0 Control Library

	TypeLib: ExPrint.dll

	to define the namespace: Exprintlib_tlb
*/
//#include "EXPRINTLIB_TLB.h"
Exprintlib_tlb::IExPrintPtr var_Print = Variant::CreateObject(L"Exontrol.Print");
	var_Print->set_Options(TVariant("FitToPage = 2 x"));
	var_Print->PrintExt = (IUnknown*)Gantt1->DefaultDispatch;
	var_Print->Preview();

877:
Do you have any Fit-To-Page options when printing the control ( percent view, Adjust-To )

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,4).operator double()));
Gantt1->EndUpdate();
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		ExPrint 1.0 Control Library

	TypeLib: ExPrint.dll

	to define the namespace: Exprintlib_tlb
*/
//#include "EXPRINTLIB_TLB.h"
Exprintlib_tlb::IExPrintPtr var_Print = Variant::CreateObject(L"Exontrol.Print");
	var_Print->set_Options(TVariant("FitToPage = 50%"));
	var_Print->PrintExt = (IUnknown*)Gantt1->DefaultDispatch;
	var_Print->Preview();

876:
Does the title of the cell's tooltip supports HTML format

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"");
	var_Column->Caption = L"";
	var_Column->HTMLCaption = L"Column";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellToolTip(TVariant(var_Items->AddItem(TVariant("tooltip w/h different title"))),TVariant(0),TVariant(String("<c><b><fgcolor=FF0000>Title</fgcolor></b><br>This is bit of text that's shown when the user hovers the cell. This shows the tit") +
"le centered with a different color."));
Gantt1->EndUpdate();

875:
How do I specify a different title for the cell's tooltip

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"");
	var_Column->Caption = L"This is the title";
	var_Column->HTMLCaption = L"Column";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellToolTip(TVariant(var_Items->AddItem(TVariant("tooltip w/h different title"))),TVariant(0),L"This is bit of text that's shown when the user hovers the cell.");
Gantt1->EndUpdate();

874:
The cell's tooltip displays the column's caption in its title. How can I get ride of that

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"C1");
	var_Columns->Add(L"C2");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("tooltip w/h caption"));
	var_Items->set_CellToolTip(TVariant(h),TVariant(0),L"This is bit of text that's shown when the user hovers the cell. This shows the column's caption in the title.");
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("tooltip no caption"));
	var_Items->set_CellToolTip(TVariant(h),TVariant(1),L"This is bit of text that's shown when the user hovers the cell. This shows no column's caption in the title.");
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->get_Item(TVariant("C2"));
	var_Column->HTMLCaption = var_Column->Caption;
	var_Column->Caption = L"";
Gantt1->EndUpdate();

873:
How can I programmatically show the column's filter

// RClick event - Fired when right mouse button is clicked
void __fastcall TForm1::Gantt1RClick(TObject *Sender)
{
	long i = Gantt1->ItemFromPoint[-1,-1,c,hit];
	Gantt1->Columns->get_Item(TVariant(c))->ShowFilter(TVariant("-1,-1,128,128"));
}

Gantt1->BeginUpdate();
Gantt1->ShowFocusRect = false;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Items ");
	var_Column->DisplayFilterPattern = false;
	var_Column->FilterList = Exganttlib_tlb::FilterListEnum::exShowExclude | Exganttlib_tlb::FilterListEnum::exShowFocusItem | Exganttlib_tlb::FilterListEnum::exShowCheckBox;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("Item 1"));
	var_Items->AddItem(TVariant("Item 2"));
	var_Items->AddItem(TVariant("Item 3"));
Gantt1->EndUpdate();

872:
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 2)

// ColumnClick event - Fired after the user clicks on column's header.
void __fastcall TForm1::Gantt1ColumnClick(TObject *Sender,Exganttlib_tlb::IColumn   *Column)
{
	// Column.SortOrder = 1
	Gantt1->SortOnClick = Exganttlib_tlb::SortOnClickEnum::exDefaultSort;
	Gantt1->Columns->get_Item(TVariant("Sort"))->SortOrder = Exganttlib_tlb::SortOrderEnum::SortAscending;
	Gantt1->SortOnClick = Exganttlib_tlb::SortOnClickEnum::exUserSort;
}

Gantt1->BeginUpdate();
Gantt1->MarkSearchColumn = false;
Gantt1->SortOnClick = Exganttlib_tlb::SortOnClickEnum::exUserSort;
Gantt1->Columns->Add(L"Items");
Gantt1->Columns->Add(L"Sort")->Visible = false;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Item 1 (3)"))),TVariant(1),TVariant(3));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Item 2 (1)"))),TVariant(1),TVariant(1));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Item 3 (2)"))),TVariant(1),TVariant(2));
Gantt1->EndUpdate();

871:
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 1)

// ColumnClick event - Fired after the user clicks on column's header.
void __fastcall TForm1::Gantt1ColumnClick(TObject *Sender,Exganttlib_tlb::IColumn   *Column)
{
	// Column.SortOrder = 1
	Gantt1->Items->SortChildren(0,TVariant("Sort"),true);
}

Gantt1->BeginUpdate();
Gantt1->MarkSearchColumn = false;
Gantt1->SortOnClick = Exganttlib_tlb::SortOnClickEnum::exUserSort;
Gantt1->Columns->Add(L"Items");
Gantt1->Columns->Add(L"Sort")->Visible = false;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Item 1 (3)"))),TVariant(1),TVariant(3));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Item 2 (1)"))),TVariant(1),TVariant(1));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Item 3 (2)"))),TVariant(1),TVariant(2));
Gantt1->EndUpdate();

870:
How can I sort by two-columns, one by date and one by time

Gantt1->BeginUpdate();
Gantt1->SingleSort = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Index")->FormatColumn = L"1 index ``";
	var_Columns->Add(L"Date")->SortType = Exganttlib_tlb::SortTypeEnum::SortDate;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Time");
		var_Column->SortType = Exganttlib_tlb::SortTypeEnum::SortTime;
		var_Column->FormatColumn = L"time(value)";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant(0));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(TDateTime(2001,1,1).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant(TDateTime(2001,1,1,10,00,00,0).operator double()));
	h = var_Items->AddItem(TVariant(0));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(TDateTime(2000,12,31).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant(TDateTime(2001,1,1,10,00,00,0).operator double()));
	h = var_Items->AddItem(TVariant(0));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(TDateTime(2001,1,1).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant(TDateTime(2001,1,1,6,00,00,0).operator double()));
	h = var_Items->AddItem(TVariant(0));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(TDateTime(2000,12,31).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant(TDateTime(2001,1,1,8,00,00,0).operator double()));
	h = var_Items->AddItem(TVariant(0));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(TDateTime(2001,1,1).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant(TDateTime(2001,1,1,8,00,00,0).operator double()));
	h = var_Items->AddItem(TVariant(0));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(TDateTime(2000,12,31).operator double()));
	var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant(TDateTime(2001,1,1,6,00,00,0).operator double()));
Gantt1->Layout = L"multiplesort=\"C1:1 C2:1\"";
Gantt1->EndUpdate();

869:
How can I connect to a DBF file
Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADODB.Recordset");
	rs->Open(TVariant("Select * From foxcode.DBF"),TVariant("Provider=vfpoledb;Data Source=C:\\Program Files\\Microsoft Visual FoxPro 9\\"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->Chart->set_PaneWidth(true,0);
Gantt1->EndUpdate();

868:
How can I change the bar's color based on values on the columns

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,3).operator double()));
	var_Chart->set_PaneWidth(false,256);
	var_Chart->LevelCount = 2;
	var_Chart->UnitScale = Exganttlib_tlb::UnitEnum::exDay;
	var_Chart->FirstWeekDay = Exganttlib_tlb::WeekDayEnum::exMonday;
	var_Chart->OverviewVisible = Exganttlib_tlb::OverviewVisibleEnum::exOverviewShowAll;
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Exganttlib_tlb::IConditionalFormatsPtr var_ConditionalFormats = Gantt1->ConditionalFormats;
	Exganttlib_tlb::IConditionalFormatPtr var_ConditionalFormat = var_ConditionalFormats->Add(L"1",TNoParam());
		var_ConditionalFormat->ApplyTo = Exganttlib_tlb::FormatApplyToEnum(0x1);
		var_ConditionalFormat->Bold = true;
		var_ConditionalFormat->BackColor = RGB(250,250,250);
	Exganttlib_tlb::IConditionalFormatPtr var_ConditionalFormat1 = var_ConditionalFormats->Add(L"%1 = 5",TNoParam());
		var_ConditionalFormat1->ApplyToBars = L"Task";
		var_ConditionalFormat1->BarColor = RGB(255,0,0);
		var_ConditionalFormat1->ForeColor = RGB(255,0,0);
		var_ConditionalFormat1->BarOverviewColor = RGB(255,0,0);
	Exganttlib_tlb::IConditionalFormatPtr var_ConditionalFormat2 = var_ConditionalFormats->Add(L"%1 = 3",TNoParam());
		var_ConditionalFormat2->ApplyToBars = L"Task";
		var_ConditionalFormat2->BarColor = RGB(0,255,0);
		var_ConditionalFormat2->ForeColor = RGB(0,255,0);
		var_ConditionalFormat2->BarOverviewColor = RGB(0,255,0);
Gantt1->EndUpdate();

867:
Does your control supports scrolling by touching the screen

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,3).operator double()));
	var_Chart->set_PaneWidth(false,256);
	var_Chart->LevelCount = 2;
	var_Chart->UnitScale = Exganttlib_tlb::UnitEnum::exDay;
	var_Chart->FirstWeekDay = Exganttlib_tlb::WeekDayEnum::exMonday;
	var_Chart->OverviewVisible = Exganttlib_tlb::OverviewVisibleEnum::exOverviewShowAll;
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->ContinueColumnScroll = true;
Gantt1->ScrollBySingleLine = true;
Gantt1->AutoDrag = Exganttlib_tlb::AutoDragEnum::exAutoDragScrollOnShortTouch | Exganttlib_tlb::AutoDragEnum::exAutoDragScroll;
Gantt1->EndUpdate();

866:
How can I export the control's content to a PDF document (method 1)

Gantt1->BeginUpdate();
Gantt1->MarkSearchColumn = false;
Gantt1->Columns->Add(L"Tasks");
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_PaneWidth(false,196);
	var_Chart->LevelCount = 2;
	var_Chart->ShowEmptyBars = 1;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2009,1,1).operator double()));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2009,1,2).operator double()),TVariant(TDateTime(2009,1,7).operator double()),TNoParam(),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 2")),TVariant("Task"),TVariant(TDateTime(2009,1,4).operator double()),TVariant(TDateTime(2009,1,9).operator double()),TNoParam(),TNoParam());
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		ExPrint 1.0 Control Library

	TypeLib: ExPrint.dll

	to define the namespace: Exprintlib_tlb
*/
//#include "EXPRINTLIB_TLB.h"
Exprintlib_tlb::IExPrintPtr var_Print = Variant::CreateObject(L"Exontrol.Print");
	var_Print->PrintExt = (IUnknown*)Gantt1->DefaultDispatch;
	var_Print->CopyTo(L"c:/temp/xtest.pdf");
OutputDebugString( L"Look for C:\\Temp\\xtest.pdf file." );
Gantt1->EndUpdate();

865:
How can I export the control's content to a PDF document (method 2)

Gantt1->BeginUpdate();
Gantt1->MarkSearchColumn = false;
Gantt1->Columns->Add(L"Tasks");
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_PaneWidth(false,196);
	var_Chart->LevelCount = 2;
	var_Chart->ShowEmptyBars = 1;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2009,1,1).operator double()));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2009,1,2).operator double()),TVariant(TDateTime(2009,1,7).operator double()),TNoParam(),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 2")),TVariant("Task"),TVariant(TDateTime(2009,1,4).operator double()),TVariant(TDateTime(2009,1,9).operator double()),TNoParam(),TNoParam());
TVariant var_CopyTo = TVariant(Gantt1->CopyTo[L"c:/temp/xtest.pdf"]);
OutputDebugString( L"Look for C:\\Temp\\xtest.pdf file." );
Gantt1->EndUpdate();

864:
Is there a syntax for conditional formatting of items, based on CellState/CellStateChange

// CellStateChanged event - Fired after cell's state has been changed.
void __fastcall TForm1::Gantt1CellStateChanged(TObject *Sender,Exganttlib_tlb::HITEM   Item,long   ColIndex)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->set_CellCaption(TVariant(Item),TVariant(2),TVariant(var_Items->get_CellState(TVariant(Item),TVariant(0))));
}

Gantt1->BeginUpdate();
Gantt1->ShowFocusRect = false;
Gantt1->SelBackMode = Exganttlib_tlb::BackModeEnum::exTransparent;
Exganttlib_tlb::IConditionalFormatPtr var_ConditionalFormat = Gantt1->ConditionalFormats->Add(L"%2 != 0",TNoParam());
	var_ConditionalFormat->Bold = true;
	var_ConditionalFormat->ForeColor = RGB(255,0,0);
	var_ConditionalFormat->ApplyTo = Exganttlib_tlb::FormatApplyToEnum::exFormatToItems;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"");
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
	var_Column->Width = 16;
	var_Column->AllowSizing = false;
Gantt1->Columns->Add(L"Information");
Gantt1->Columns->Add(L"Hidden")->Visible = false;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant(""))),TVariant(1),TVariant("This is a bit of text associated"));
	long h = var_Items->AddItem(TVariant(""));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("This is a bit of text associated"));
	var_Items->set_CellState(TVariant(h),TVariant(0),1);
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant(""))),TVariant(1),TVariant("This is a bit of text associated"));
Gantt1->EndUpdate();

863:
How can I use no scroll bars for touch-screens

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,3).operator double()));
	var_Chart->set_PaneWidth(false,256);
	var_Chart->LevelCount = 2;
	var_Chart->UnitScale = Exganttlib_tlb::UnitEnum::exDay;
	var_Chart->FirstWeekDay = Exganttlib_tlb::WeekDayEnum::exMonday;
	var_Chart->OverviewVisible = Exganttlib_tlb::OverviewVisibleEnum::exOverviewShowAll;
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->AutoDrag = Exganttlib_tlb::AutoDragEnum::exAutoDragScroll;
Gantt1->ScrollWidth = 4;
Gantt1->ScrollHeight = 4;
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exHSLeft] = RGB(192,192,192);
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exHSRight] = RGB(192,192,192);
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exHSBack] = RGB(224,224,224);
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exHSThumb] = RGB(128,128,128);
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exVSBack] = RGB(224,224,224);
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exVSDown] = RGB(192,192,192);
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exVSThumb] = RGB(128,128,128);
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exVSUp] = RGB(192,192,192);
Gantt1->ScrollButtonWidth = 0;
Gantt1->ScrollButtonHeight = 0;
Gantt1->EndUpdate();

862:
How can I print the selected items only

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Gantt1->SingleSel = false;
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,4).operator double()));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_SelectItem(var_Items->get_ItemByIndex(0),true);
	var_Items->set_SelectItem(var_Items->get_ItemByIndex(2),true);
	var_Items->set_SelectItem(var_Items->get_ItemByIndex(4),true);
Gantt1->EndUpdate();
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		ExPrint 1.0 Control Library

	TypeLib: ExPrint.dll

	to define the namespace: Exprintlib_tlb
*/
//#include "EXPRINTLIB_TLB.h"
Exprintlib_tlb::IExPrintPtr var_Print = Variant::CreateObject(L"Exontrol.Print");
	var_Print->set_Options(TVariant("Print = Selection"));
	var_Print->PrintExt = (IUnknown*)Gantt1->DefaultDispatch;
	var_Print->Preview();

861:
How can I sort the columns to be displayed on the columns floating bar

Gantt1->ColumnAutoResize = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"City")->Visible = false;
	var_Columns->Add(L"Start")->Visible = false;
	var_Columns->Add(L"End")->Visible = false;
Gantt1->ColumnsFloatBarVisible = true;
Gantt1->ColumnsFloatBarSortOrder = Exganttlib_tlb::SortOrderEnum::SortAscending;

860:
How can I add a vertical padding

Gantt1->BeginUpdate();
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exAllLines;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Padding");
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellSingleLine,TVariant(false));
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellPaddingLeft,TVariant(6));
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellPaddingRight,TVariant(6));
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellPaddingTop,TVariant(6));
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellPaddingBottom,TVariant(6));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("padding"));
	var_Items->AddItem(TVariant("padding"));
Gantt1->EndUpdate();

859:
How do you embed HTML options into the anchor click string

// AnchorClick event - Occurs when an anchor element is clicked.
void __fastcall TForm1::Gantt1AnchorClick(TObject *Sender,BSTR   AnchorID,BSTR   Options)
{
	OutputDebugString( L"AnchorID" );
	OutputDebugString( L"Options" );
}

Gantt1->BeginUpdate();
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Car")->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("<a mazda_1;options for 1>Mazda <b>1</b></a>"));
	var_Items->AddItem(TVariant("<a mazda_2;options for 2>Mazda <b>2</b></a>"));
	var_Items->AddItem(TVariant("<a mazda_3;options for 3a>Mazda <b>3.a</b></a>"));
	var_Items->AddItem(TVariant("<a mazda_3;options for 3b>Mazda <b>3.b</b></a>"));
Gantt1->EndUpdate();

858:
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 3)

Gantt1->BeginUpdate();
Gantt1->VisualAppearance->Add(1,TVariant(String("gBFLBCJwBAEHhEJAEGg4BVEIQAAYAQGKIYBkAKBQAGaAoDDMOQwQwAAxjGKEEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQCWIAzATGYBRfIUEgjBM6ExwG78e") +
"gBHp/ZpkACIJJAaRjHQdJxGKKMQB9DIhCZpeKhWgkKIJBzOEyBRC4ERBGqNGrsIgLEqWZpnWhaNpWXYTLyBN64LhuK46g53O6wLxvK6hEr2dJ/YBcIAOfghf4NQ7EMRx" +
"LC8Mw3BDvYDkOAABAIgI="));
Gantt1->SelBackColor = 0x1fffffe;
Gantt1->ShowFocusRect = false;
Gantt1->Columns->Add(L"Items");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_ItemBackColor(var_Items->AddItem(TVariant("red")),RGB(255,0,0));
	var_Items->set_ItemBackColor(var_Items->AddItem(TVariant("blue")),RGB(0,0,255));
	var_Items->set_ItemBackColor(var_Items->AddItem(TVariant("green")),RGB(0,255,0));
Gantt1->EndUpdate();

857:
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 2)

Gantt1->BeginUpdate();
Gantt1->SelBackMode = Exganttlib_tlb::BackModeEnum::exTransparent;
Gantt1->ShowFocusRect = false;
Gantt1->Columns->Add(L"Items");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_ItemBackColor(var_Items->AddItem(TVariant("red")),RGB(255,0,0));
	var_Items->set_ItemBackColor(var_Items->AddItem(TVariant("blue")),RGB(0,0,255));
	var_Items->set_ItemBackColor(var_Items->AddItem(TVariant("green")),RGB(0,255,0));
Gantt1->EndUpdate();

856:
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 1)

Gantt1->BeginUpdate();
Gantt1->SelBackColor = Gantt1->BackColor;
Gantt1->SelForeColor = Gantt1->ForeColor;
Gantt1->ShowFocusRect = true;
Gantt1->Columns->Add(L"Items");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_ItemBackColor(var_Items->AddItem(TVariant("red")),RGB(255,0,0));
	var_Items->set_ItemBackColor(var_Items->AddItem(TVariant("blue")),RGB(0,0,255));
	var_Items->set_ItemBackColor(var_Items->AddItem(TVariant("green")),RGB(0,255,0));
Gantt1->EndUpdate();

855:
Do you have any Fit-To-Page options when printing the control

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,4).operator double()));
Gantt1->EndUpdate();
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		ExPrint 1.0 Control Library

	TypeLib: ExPrint.dll

	to define the namespace: Exprintlib_tlb
*/
//#include "EXPRINTLIB_TLB.h"
Exprintlib_tlb::IExPrintPtr var_Print = Variant::CreateObject(L"Exontrol.Print");
	var_Print->set_Options(TVariant("FitToPage = On"));
	var_Print->PrintExt = (IUnknown*)Gantt1->DefaultDispatch;
	var_Print->Preview();

854:
How can I add a footer row

Gantt1->ShowLockedItems = true;
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exVLines;
Gantt1->Columns->Add(L"C1");
Gantt1->Columns->Add(L"C2");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_LockedItemCount(Exganttlib_tlb::VAlignmentEnum::BottomAlignment,1);
	long h = var_Items->get_LockedItem(Exganttlib_tlb::VAlignmentEnum::BottomAlignment,0);
	var_Items->set_ItemBackColor(h,RGB(128,128,128));
	var_Items->set_ItemForeColor(h,RGB(255,255,255));
	var_Items->set_CellCaption(TVariant(h),TVariant(0),TVariant("footer c1"));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("footer c2"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("cell"))),TVariant(1),TVariant("cell"));

853:
How can I add a header row

Gantt1->ShowLockedItems = true;
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exVLines;
Gantt1->Columns->Add(L"C1");
Gantt1->Columns->Add(L"C2");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_LockedItemCount(Exganttlib_tlb::VAlignmentEnum::TopAlignment,1);
	long h = var_Items->get_LockedItem(Exganttlib_tlb::VAlignmentEnum::TopAlignment,0);
	var_Items->set_ItemBackColor(h,RGB(128,128,128));
	var_Items->set_ItemForeColor(h,RGB(255,255,255));
	var_Items->set_CellCaption(TVariant(h),TVariant(0),TVariant("footer c1"));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("footer c2"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("cell"))),TVariant(1),TVariant("cell"));

852:
How can I programmatically add more columns to the sort bar and other to be sorted, but not included in the sort bar

Gantt1->SortBarVisible = true;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"0");
	var_Columns->Add(L"1");
	var_Columns->Add(L"2");
	var_Columns->Add(L"3");
	var_Columns->Add(L"4");
Gantt1->Layout = L"multiplesort=\"C3:1 C4:2\";singlesort=\"C2:1\"";

851:
How can I fix a column, while other sizable and fill the control's client
Gantt1->ColumnAutoResize = true;
Gantt1->Columns->Add(L"Sizable");
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"F");
	var_Column->AllowSizing = false;
	var_Column->Width = 16;

850:
When I'm trying to show string with "line break" character (vbCrLF) in a textbox, it shows 2 squares. Is there any way to hide these squares

Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Value");
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"CellSingleLine = False");
		var_Column->ComputedField = L"%0";
		var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellSingleLine,TVariant(false));
	Exganttlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"FormatColumn/replace CRLF");
		var_Column1->ComputedField = L"%0";
		var_Column1->FormatColumn = L"value replace `\\r\\n` with ``";
	Exganttlib_tlb::IColumnPtr var_Column2 = var_Columns->Add(L"FormatColumn/replace TAB,CRLF");
		var_Column2->ComputedField = L"%0";
		var_Column2->FormatColumn = L"(value replace `\\t` with ``) replace `\\r\\n` with ``";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("a\\ta\\r\\nb\\tb"));

849:
Is there any way to "unselect" radio group

// DblClick event - Occurs when the user dblclk the left mouse button over an object.
void __fastcall TForm1::Gantt1DblClick(TObject *Sender,short   Shift,int   X,int   Y)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		long h = var_Items->get_CellChecked(1234);
		var_Items->set_CellHasCheckBox(TVariant(0),TVariant(h),true);
		var_Items->set_CellState(TVariant(0),TVariant(h),0);
		var_Items->set_CellHasCheckBox(TVariant(0),TVariant(h),false);
}

// SelectionChanged event - Fired after a new item has been selected.
void __fastcall TForm1::Gantt1SelectionChanged(TObject *Sender)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->set_CellState(TVariant(var_Items->FocusItem),TVariant(0),1);
}

Gantt1->MarkSearchColumn = false;
Gantt1->SelBackColor = RGB(255,255,128);
Gantt1->SelForeColor = RGB(0,0,0);
Gantt1->Columns->Add(L"Default");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Radio 1"));
	var_Items->set_CellHasRadioButton(TVariant(h),TVariant(0),true);
	var_Items->set_CellRadioGroup(TVariant(h),TVariant(0),1234);
	h = var_Items->AddItem(TVariant("Radio 2"));
	var_Items->set_CellHasRadioButton(TVariant(h),TVariant(0),true);
	var_Items->set_CellRadioGroup(TVariant(h),TVariant(0),1234);
	var_Items->set_CellState(TVariant(h),TVariant(0),1);
	h = var_Items->AddItem(TVariant("Radio 3"));
	var_Items->set_CellHasRadioButton(TVariant(h),TVariant(0),true);
	var_Items->set_CellRadioGroup(TVariant(h),TVariant(0),1234);

848:
The Column.Alignment property does not seem to work for cells with images in them. What can be done

Gantt1->BeginUpdate();
Gantt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Gantt1->TreeColumnIndex = -1;
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exAllLines;
Gantt1->HeaderHeight = 24;
Gantt1->DefaultItemHeight = 24;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Image");
	var_Column->AllowSizing = false;
	var_Column->Width = 32;
	var_Column->HTMLCaption = L"<img>1</img>";
	var_Column->HeaderAlignment = Exganttlib_tlb::AlignmentEnum::CenterAlignment;
	var_Column->Alignment = Exganttlib_tlb::AlignmentEnum::CenterAlignment;
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
Gantt1->Columns->Add(L"Rest");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("<img>1</img>"));
	var_Items->AddItem(TVariant("<img>2</img>"));
	var_Items->AddItem(TVariant("<img>3</img>"));
Gantt1->EndUpdate();

847:
Does your control support subscript or superscript, in HTML captions

Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double()));
	var_Chart->set_PaneWidth(false,64);
Gantt1->Columns->Add(L"Column");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Item 1"));
	var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant(""),TNoParam());
	var_Items->set_ItemBar(h,TVariant(""),Exganttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<sha ;;0>Event <b><font ;6><off -6>2<off 4>3<off 4>1"));
	var_Items->set_ItemBar(h,TVariant(""),Exganttlib_tlb::ItemBarPropertyEnum::exBarHAlignCaption,TVariant(18));

846:
How do I arrange my columns on multiple levels

Gantt1->BeginUpdate();
Gantt1->ColumnAutoResize = false;
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exAllLines;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"C0");
		var_Column->ExpandColumns = L"1,2";
		var_Column->DisplayExpandButton = false;
	var_Columns->Add(L"C1");
	var_Columns->Add(L"C2");
	var_Columns->Add(L"C3");
	Exganttlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"C4");
		var_Column1->ExpandColumns = L"5,6";
		var_Column1->DisplayExpandButton = false;
	var_Columns->Add(L"C5");
	Exganttlib_tlb::IColumnPtr var_Column2 = var_Columns->Add(L"C6");
		var_Column2->ExpandColumns = L"6,7";
		var_Column2->DisplayExpandButton = false;
	var_Columns->Add(L"C7");
Gantt1->EndUpdate();

845:
Does your control support expandable header or columns, so I can arrange it on multiple levels

Gantt1->BeginUpdate();
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exAllLines;
Gantt1->BackColorLevelHeader = RGB(240,240,240);
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Photo");
		var_Column->AllowSizing = false;
		var_Column->Width = 32;
	var_Columns->Add(L"Personal Info");
	var_Columns->Add(L"Title");
	var_Columns->Add(L"Name");
	var_Columns->Add(L"First");
	var_Columns->Add(L"Last");
	var_Columns->Add(L"Address");
	var_Columns->get_Item(TVariant("Personal Info"))->ExpandColumns = L"2,3";
	Exganttlib_tlb::IColumnPtr var_Column1 = var_Columns->get_Item(TVariant("Name"));
		var_Column1->ExpandColumns = L"4,5";
		var_Column1->Expanded = false;
Gantt1->EndUpdate();

844:
Can I change the format of date to be shown in the control

Gantt1->Chart->set_PaneWidth(true,0);
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Default");
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Format.1");
		var_Column->ComputedField = L"%0";
		var_Column->FormatColumn = L"dateF(value) replace `/` with `-`";
	Exganttlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"Format.2");
		var_Column1->ComputedField = L"%0";
		var_Column1->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
		var_Column1->FormatColumn = L"`<b>`+ shortdate(value) + `</b> ` + timeF(value)";
	Exganttlib_tlb::IColumnPtr var_Column2 = var_Columns->Add(L"Format.3");
		var_Column2->ComputedField = L"%0";
		var_Column2->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
		var_Column2->FormatColumn = TVariant(String("` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `Fr`; 6 : `Sa`) ) + `</b> ` + ( dateF(val") +
"ue) replace `/` with `-` )");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double()));
	var_Items->AddItem(TVariant(TDateTime(2001,1,2,10,00,00,0).operator double()));

843:
How can I remove all bars from the chart
Gantt1->Columns->Add(L"Task");
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double()));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 3")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 4")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K2"),TNoParam());
	var_Items->ClearBars(0);

842:
How can I change the color for all bars with a specified key

Gantt1->Columns->Add(L"Task");
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double()));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 3")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 4")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K2"),TNoParam());
	var_Items->set_ItemBar(0,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarColor,TVariant(255));

841:
Is there any automatic way to change a property for all bars with a specified key

Gantt1->Columns->Add(L"Task");
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double()));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 3")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 4")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K2"),TNoParam());
	var_Items->set_ItemBar(0,TVariant("K1"),Exganttlib_tlb::ItemBarPropertyEnum::exBarColor,TVariant(255));

840:
How can I remove all bars with specified key

Gantt1->Columns->Add(L"Task");
Gantt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double()));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 3")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Task 4")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K2"),TNoParam());
	var_Items->RemoveBar(0,TVariant("K1"));

839:
How can I find if there is any filter applied to the control

// FilterChange event - Occurs when the filter was changed.
void __fastcall TForm1::Gantt1FilterChange(TObject *Sender)
{
	OutputDebugString( L"If negative, the filter is present, else not" );
	OutputDebugString( PChar(Gantt1->Items->VisibleItemCount) );
}

Gantt1->BeginUpdate();
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Gantt1->TreeColumnIndex = -1;
Gantt1->FilterInclude = Exganttlib_tlb::FilterIncludeEnum::exMatchingItemsOnly;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Column");
	var_Column->DisplayFilterButton = true;
	var_Column->FilterType = Exganttlib_tlb::FilterTypeEnum::exFilter;
	var_Column->Filter = L"C1";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("R1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C2"));
	var_Items->set_ExpandItem(h,true);
	h = var_Items->AddItem(TVariant("R2"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C2"));
Gantt1->ApplyFilter();
Gantt1->EndUpdate();

838:
How can I prevent showing the lines for the hierarchy while using the exMatchingItemsOnly option

Gantt1->BeginUpdate();
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Gantt1->TreeColumnIndex = -1;
Gantt1->FilterInclude = Exganttlib_tlb::FilterIncludeEnum::exMatchingItemsOnly;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Column");
	var_Column->DisplayFilterButton = true;
	var_Column->FilterType = Exganttlib_tlb::FilterTypeEnum::exFilter;
	var_Column->Filter = L"C1|C2";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("R1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C2"));
	var_Items->set_ExpandItem(h,true);
	h = var_Items->AddItem(TVariant("R2"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C2"));
Gantt1->ApplyFilter();
Gantt1->EndUpdate();

837:
Is there any method to get only the matched items and not the items with his parent

Gantt1->BeginUpdate();
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Gantt1->FilterInclude = Exganttlib_tlb::FilterIncludeEnum::exMatchingItemsOnly;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Column");
	var_Column->DisplayFilterButton = true;
	var_Column->FilterType = Exganttlib_tlb::FilterTypeEnum::exFilter;
	var_Column->Filter = L"C1|C2";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("R1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C2"));
	var_Items->set_ExpandItem(h,true);
	h = var_Items->AddItem(TVariant("R2"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("C2"));
Gantt1->ApplyFilter();
Gantt1->EndUpdate();

836:
Is there any property I can save and restore automatically the current setting, column position, size, and so on (2)

Gantt1->BeginUpdate();
Gantt1->Columns->Add(L"Column");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("Item 1"));
	var_Items->AddItem(TVariant("Item 2"));
	var_Items->AddItem(TVariant("Item 3"));
Gantt1->Layout = L"Select=\"0\";SingleSort=\"C0:2\";Columns=1";
Gantt1->EndUpdate();

835:
Is there any property I can save and restore automatically the current setting, column position, size, and so on (1)

Gantt1->BeginUpdate();
Gantt1->Columns->Add(L"Column");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("Item 1"));
	var_Items->AddItem(TVariant("Item 2"));
	var_Items->AddItem(TVariant("Item 3"));
Gantt1->Layout = TVariant(String("gBjAAwAAuABmABpABsAB0ABlAByhoAPIAOEPAA9gYABoABQAgUEg0XN4AOcJicKkpujMbjsfkMFk0YhkQgUOjUEl8gjcGO0ok8KMULjEaGMcj08kQAO8oMkTNEtGwAG") +
"QAqc7gUlhh1ABtAEsk9GpEfhElgVcsMupNlnlonlaAFcr0shUsp8QPEtnVJqJhmcIhUMh0QiU5sYAqMngUSuEMw07k8Qv0SgVRrNEuVflF2jF5x9JyNEm0TjQijemyE0" +
"jE3t+YruauoAu4Az1qj9BzRn0UzksSnAA0xDjY6qnAw8OiUQ0dwzN0zWz2t7j8/xURAGNvWH6k8xlEhklhEI0O/6QAgI=");
Gantt1->EndUpdate();

834:
I have noticed that the column's header is changed once the cursor hovers it. Is it possible to change that visual appearance

Gantt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2");
Gantt1->BackColorHeader = 0x1000000;
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exCursorHoverColumn] = 0x12d86ff;

833:
Is it possible to change the visual appearance of the columns selector/floating bar(3)

Gantt1->ColumnAutoResize = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->Visible = false;
Gantt1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\normal.ebn"));
Gantt1->VisualAppearance->Add(3,TVariant("c:\\exontrol\\images\\pushed.ebn"));
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exColumnsFloatAppearance] = 0x2000000;
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exColumnsFloatBackColor] = 0x3000000;
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exColumnsFloatCaptionBackColor] = RGB(246,245,240);
Gantt1->ColumnsFloatBarVisible = true;

832:
Is it possible to change the visual appearance of the columns selector/floating bar(2)

Gantt1->ColumnAutoResize = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->Visible = false;
Gantt1->VisualAppearance->Add(3,TVariant("c:\\exontrol\\images\\pushed.ebn"));
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exColumnsFloatBackColor] = 0x3000000;
Gantt1->ColumnsFloatBarVisible = true;

831:
Is it possible to change the visual appearance of the columns selector/floating bar(1)

Gantt1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\normal.ebn"));
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exColumnsFloatAppearance] = 0x2000000;
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exColumnsFloatBackColor] = RGB(246,245,240);
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exColumnsFloatCaptionBackColor] = RGB(246,245,240);
Gantt1->ColumnsFloatBarVisible = true;

830:
I am using the ColumnsFloatBarVisible property on True, but still not able to add any column on that list

Gantt1->ColumnAutoResize = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->Visible = false;
Gantt1->ColumnsFloatBarVisible = true;

829:
Is it possible to list a column to columns selector/floating bar, but still user can use it

Gantt1->ColumnAutoResize = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->Visible = false;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Column 3");
		var_Column->Visible = false;
		var_Column->Enabled = false;
Gantt1->ColumnsFloatBarVisible = true;

828:
How can I prevent a specific column not to be listed in the columns selector/floating bar

Gantt1->ColumnAutoResize = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->Visible = false;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Column 3");
		var_Column->Visible = false;
		var_Column->AllowDragging = false;
Gantt1->ColumnsFloatBarVisible = true;

827:
Is it possible to change the "Columns" caption being shown in the columns selector/floating bar

Gantt1->ColumnAutoResize = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->Visible = false;
Gantt1->Description[Exganttlib_tlb::DescriptionTypeEnum::exColumnsFloatBar] = L"Hidden Columns";
Gantt1->ColumnsFloatBarVisible = true;

826:
How can I show the columns selector, so the user can drag and drop columns to the view

Gantt1->ColumnAutoResize = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->Visible = false;
Gantt1->ColumnsFloatBarVisible = true;

825:
The column's header is changed while the cursor hovers it. Is it possible to prevent that

Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2");
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exCursorHoverColumn] = -1;

824:
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client area

Gantt1->BeginUpdate();
Gantt1->ScrollBars = Exganttlib_tlb::ScrollBarsEnum::exDisableBoth;
Gantt1->Chart->ToolTip = L"";
Gantt1->ScrollPartVisible[Exganttlib_tlb::ScrollBarEnum::exVScroll,Exganttlib_tlb::ScrollPartEnum::exExtentThumbPart] = true;
Gantt1->ScrollPartVisible[Exganttlib_tlb::ScrollBarEnum::exHScroll,Exganttlib_tlb::ScrollPartEnum::exExtentThumbPart] = true;
Gantt1->ScrollPartVisible[Exganttlib_tlb::ScrollBarEnum::exHChartScroll,Exganttlib_tlb::ScrollPartEnum::exExtentThumbPart] = true;
Gantt1->ScrollWidth = 4;
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exVSBack] = RGB(240,240,240);
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exVSThumb] = RGB(128,128,128);
Gantt1->ScrollHeight = 4;
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exHSBack] = Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exVSBack];
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exHSThumb] = Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exVSThumb];
Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exScrollSizeGrip] = Gantt1->Background[Exganttlib_tlb::BackgroundPartEnum::exVSBack];
Gantt1->EndUpdate();

823:
How can I display the Year in Thai, Buddhist, Korean format

Exganttlib_tlb::IChartPtr var_Chart = Gantt1->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->set_PaneWidth(false,0);
	var_Chart->UnitScale = Exganttlib_tlb::UnitEnum::exDay;
	Exganttlib_tlb::ILevelPtr var_Level = var_Chart->get_Level(0);
		var_Level->set_Label(TVariant("<%mmmm%> <%d%>, <%loc_yyyy%> <r><%ww%>"));
		var_Level->Unit = Exganttlib_tlb::UnitEnum::exWeek;
		var_Level->set_ToolTip(TVariant(var_Level->get_Label()));
	var_Chart->ToolTip = L"<%ddd%> <%m%>/<%d%>/<%loc_yyyy%>";
Gantt1->Description[Exganttlib_tlb::DescriptionTypeEnum::exFilterBarDateMonths] = Gantt1->Chart->MonthNames;

822:
How does localization work

Exganttlib_tlb::IChartPtr var_Chart = Gantt1->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->set_PaneWidth(false,0);

821:
How can I have a case-insensitive filter (exFilterDoCaseSensitive flag is not set)

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Gantt1->MarkSearchColumn = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Car");
		var_Column->DisplayFilterButton = true;
		var_Column->FilterType = Exganttlib_tlb::FilterTypeEnum::exFilter;
		var_Column->Filter = L"MAZDA";
	Exganttlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"Equipment");
		var_Column1->DisplayFilterButton = true;
		var_Column1->DisplayFilterPattern = false;
		var_Column1->CustomFilter = L"Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*";
		var_Column1->FilterType = Exganttlib_tlb::FilterTypeEnum::exPattern;
		var_Column1->Filter = L"AIR BAG";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Mazda"))),TVariant(1),TVariant("Air Bag"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Toyota"))),TVariant(1),TVariant("Air Bag,Air condition"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Ford"))),TVariant(1),TVariant("Air condition"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Nissan"))),TVariant(1),TVariant("Air Bag,ABS,ESP"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Mazda"))),TVariant(1),TVariant("Air Bag, ABS,ESP"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Mazda"))),TVariant(1),TVariant("ABS,ESP"));
Gantt1->ApplyFilter();
Gantt1->EndUpdate();

820:
How can I have a case-sensitive filter

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Gantt1->MarkSearchColumn = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Car");
		var_Column->DisplayFilterButton = true;
		var_Column->FilterType = Exganttlib_tlb::FilterTypeEnum::exFilterDoCaseSensitive | Exganttlib_tlb::FilterTypeEnum::exFilter;
		var_Column->Filter = L"Mazda";
	Exganttlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"Equipment");
		var_Column1->DisplayFilterButton = true;
		var_Column1->DisplayFilterPattern = false;
		var_Column1->CustomFilter = L"Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*";
		var_Column1->FilterType = Exganttlib_tlb::FilterTypeEnum::exFilterDoCaseSensitive | Exganttlib_tlb::FilterTypeEnum::exPattern;
		var_Column1->Filter = L"Air Bag";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Mazda"))),TVariant(1),TVariant("Air Bag"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Toyota"))),TVariant(1),TVariant("Air Bag,Air condition"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Ford"))),TVariant(1),TVariant("Air condition"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Nissan"))),TVariant(1),TVariant("Air Bag,ABS,ESP"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Mazda"))),TVariant(1),TVariant("Air Bag, ABS,ESP"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Mazda"))),TVariant(1),TVariant("ABS,ESP"));
Gantt1->ApplyFilter();
Gantt1->EndUpdate();

819:
I am using the FormatColumn/FormatCell to format my columns. Is it possible to ignore the SelForeColor, so the foreground color for selected items does not override my settings

// SelectionChanged event - Fired after a new item has been selected.
void __fastcall TForm1::Gantt1SelectionChanged(TObject *Sender)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->ClearItemBackColor(0);
		var_Items->set_ItemBackColor(var_Items->get_SelectedItem(0),RGB(128,255,255));
}

Gantt1->BeginUpdate();
Gantt1->MarkSearchColumn = false;
Gantt1->SelForeColor = Gantt1->ForeColor;
Gantt1->SelBackColor = Gantt1->BackColor;
Gantt1->ShowFocusRect = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Format");
		var_Column->FormatColumn = TVariant(String("type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00") +
"00FF>+'+(value format '2|.|3|,' ): '0.00') )");
		var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant(10));
	var_Items->AddItem(TVariant(-8));
Gantt1->EndUpdate();

818:
How do I hide the selection
Gantt1->BeginUpdate();
Gantt1->MarkSearchColumn = false;
Gantt1->SelForeColor = Gantt1->ForeColor;
Gantt1->SelBackColor = Gantt1->BackColor;
Gantt1->ShowFocusRect = false;
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Format");
		var_Column->FormatColumn = TVariant(String("type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00") +
"00FF>+'+(value format '2|.|3|,' ): '0.00') )");
		var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant(10));
	var_Items->AddItem(TVariant(-8));
Gantt1->EndUpdate();

817:
How do I access the cells, or how do I get the values in the columns
Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"C1");
	var_Columns->Add(L"C2");
	var_Columns->Add(L"C3");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Item 1"));
	var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("SubItem 1.1"));
	var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant("SubItem 1.2"));
	OutputDebugString( PChar(var_Items->get_CellCaption(TVariant(h),TVariant(2))) );

816:
How can I change the check-boxes appearance

Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Default");
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
	var_Column->PartialCheck = true;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Root"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
Exganttlib_tlb::IAppearancePtr var_Appearance = Gantt1->VisualAppearance;
	var_Appearance->Add(1,TVariant("XP:Button 3 12"));
	var_Appearance->Add(2,TVariant("XP:Button 3 11"));
	var_Appearance->Add(3,TVariant("XP:Button 3 10"));
Gantt1->CheckImage[Exganttlib_tlb::CheckStateEnum::Unchecked] = 16777216;
Gantt1->CheckImage[Exganttlib_tlb::CheckStateEnum::Checked] = 33554432;
Gantt1->CheckImage[Exganttlib_tlb::CheckStateEnum::PartialChecked] = 50331648;

815:
How can I load my table from an Access 2007, using ADO

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,3).operator double()));
	var_Chart->set_PaneWidth(false,256);
	var_Chart->LevelCount = 2;
	var_Chart->UnitScale = Exganttlib_tlb::UnitEnum::exDay;
	var_Chart->FirstWeekDay = Exganttlib_tlb::WeekDayEnum::exMonday;
	var_Chart->OverviewVisible = Exganttlib_tlb::OverviewVisibleEnum::exOverviewShowAll;
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access2007\\sample.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->EndUpdate();

814:
Is it possible display numbers in the same format no matter of regional settings in the control panel

Gantt1->BeginUpdate();
Gantt1->Columns->Add(L"Def")->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant(666666.27));
	var_Items->set_FormatCell(TVariant(h),TVariant(0),L"(value format '') +  ' <fgcolor=808080>(default positive)'");
	h = var_Items->AddItem(TVariant(666666.27));
	var_Items->set_FormatCell(TVariant(h),TVariant(0),L"(value format '2|.|3|,|1|1')");
	h = var_Items->AddItem(TVariant(-666666.27));
	var_Items->set_FormatCell(TVariant(h),TVariant(0),L"(value format '') +  ' <fgcolor=808080>(default negative)'");
	h = var_Items->AddItem(TVariant(-666666.27));
	var_Items->set_FormatCell(TVariant(h),TVariant(0),L"(value format '2|.|3|,|1|1')");
Gantt1->EndUpdate();

813:
The right pane needs to show ONLY the hours 6am to 9pm (every hour) for one day only and the user should not to be able to scroll left or right nor see any other hours. How can I do that

Gantt1->BeginUpdate();
Gantt1->Columns->Add(L"Tasks");
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->LevelCount = 2;
	var_Chart->set_ScrollRange(Exganttlib_tlb::ScrollRangeEnum::exStartDate,TVariant(TDateTime(2001,1,1).operator double()));
	var_Chart->set_ScrollRange(Exganttlib_tlb::ScrollRangeEnum::exEndDate,TVariant(TDateTime(2001,1,1).operator double()));
	var_Chart->UnitScale = Exganttlib_tlb::UnitEnum::exHour;
	var_Chart->NonworkingHours = 12582975;
	var_Chart->ShowNonworkingUnits = false;
	var_Chart->get_Level(0)->Alignment = Exganttlib_tlb::AlignmentEnum::exHOutside | Exganttlib_tlb::AlignmentEnum::CenterAlignment;
	var_Chart->UnitWidth = 18;
	var_Chart->set_PaneWidth(true,294);
	var_Chart->ScrollBar = false;
Gantt1->OnResizeControl = Exganttlib_tlb::OnResizeControlEnum::exDisableSplitter;
Gantt1->EndUpdate();

812:
Can I use ebn files to display the selected dates

Gantt1->BeginUpdate();
Exganttlib_tlb::IAppearancePtr var_Appearance = Gantt1->VisualAppearance;
	var_Appearance->Add(2,TVariant("c:\\exontrol\\images\\normal.ebn"));
	var_Appearance->Add(1,TVariant("CP:2 0 -4 0 4"));
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2008,1,1).operator double()));
	var_Chart->MarkTodayColor = var_Chart->BackColor;
	var_Chart->LevelCount = 2;
	var_Chart->MarkSelectDateColor = 0x1000000;
	var_Chart->SelectLevel = 1;
	var_Chart->set_SelectDate(TDateTime(2008,1,3).operator double(),true);
	var_Chart->set_SelectDate(TDateTime(2008,1,4).operator double(),true);
Gantt1->Columns->Add(L"Default");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2008,1,2).operator double()),TVariant(TDateTime(2008,1,6).operator double()),TNoParam(),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2008,1,3).operator double()),TVariant(TDateTime(2008,1,7).operator double()),TNoParam(),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Item 3")),TVariant("Task"),TVariant(TDateTime(2008,1,4).operator double()),TVariant(TDateTime(2008,1,8).operator double()),TNoParam(),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Item 4")),TVariant("Task"),TVariant(TDateTime(2008,1,5).operator double()),TVariant(TDateTime(2008,1,9).operator double()),TNoParam(),TNoParam());
Gantt1->EndUpdate();

811:
Can I use ebn files to display the selected dates

Gantt1->BeginUpdate();
Gantt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2008,1,1).operator double()));
	var_Chart->MarkTodayColor = var_Chart->BackColor;
	var_Chart->LevelCount = 2;
	var_Chart->MarkSelectDateColor = 0x1000000;
	var_Chart->SelectLevel = 1;
	var_Chart->set_SelectDate(TDateTime(2008,1,3).operator double(),true);
Gantt1->Columns->Add(L"Default");
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2008,1,2).operator double()),TVariant(TDateTime(2008,1,6).operator double()),TNoParam(),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2008,1,3).operator double()),TVariant(TDateTime(2008,1,7).operator double()),TNoParam(),TNoParam());
	var_Items->AddBar(var_Items->AddItem(TVariant("Item 3")),TVariant("Task"),TVariant(TDateTime(2008,1,4).operator double()),TVariant(TDateTime(2008,1,8).operator double()),TNoParam(),TNoParam());
Gantt1->EndUpdate();

810:
How can I change the color for selected dates to be solid

Gantt1->BeginUpdate();
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_PaneWidth(false,0);
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2008,1,1).operator double()));
	var_Chart->MarkTodayColor = var_Chart->BackColor;
	var_Chart->LevelCount = 2;
	var_Chart->MarkSelectDateColor = 0x7fff0000;
	var_Chart->SelectLevel = 1;
	var_Chart->set_SelectDate(TDateTime(2008,1,15).operator double(),true);
	var_Chart->set_SelectDate(TDateTime(2008,1,16).operator double(),true);
Gantt1->EndUpdate();

809:
How can I add or change the padding (spaces) for captions in the control's header

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Gantt1->Columns->Add(L"Padding-Left")->set_Def(Exganttlib_tlb::DefColumnEnum::exHeaderPaddingLeft,TVariant(18));
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Padding-Right");
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exHeaderPaddingRight,TVariant(18));
	var_Column->HeaderAlignment = Exganttlib_tlb::AlignmentEnum::RightAlignment;
Gantt1->EndUpdate();

808:
Do you have any plans to add cell spacing and cell padding to the cells

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Gantt1->DrawGridLines = Exganttlib_tlb::GridLinesEnum::exAllLines;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Padding-Left");
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
	var_Column->set_Def(Exganttlib_tlb::DefColumnEnum::exCellPaddingLeft,TVariant(18));
Gantt1->Columns->Add(L"No-Padding")->set_Def(Exganttlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
Gantt1->Columns->Add(L"Empty")->Position = 0;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Item A.1"))),TVariant(1),TVariant("Item A.2"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Item B.1"))),TVariant(1),TVariant("Item B.2"));
	var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Item C.1"))),TVariant(1),TVariant("Item C.2"));
Gantt1->EndUpdate();

807:
Is it possible to display information about the firing events
// Event event - Notifies the application once the control fires an event.
void __fastcall TForm1::Gantt1Event(TObject *Sender,long   EventID)
{
	OutputDebugString( PChar(Gantt1->EventParam[-2]) );
}


806:
Is it possible to scroll the control's content by clicking and moving the mouse up or down

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,3).operator double()));
	var_Chart->set_PaneWidth(false,256);
	var_Chart->LevelCount = 2;
	var_Chart->UnitScale = Exganttlib_tlb::UnitEnum::exDay;
	var_Chart->FirstWeekDay = Exganttlib_tlb::WeekDayEnum::exMonday;
	var_Chart->OverviewVisible = Exganttlib_tlb::OverviewVisibleEnum::exOverviewShowAll;
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->AutoDrag = Exganttlib_tlb::AutoDragEnum::exAutoDragScroll;
Gantt1->EndUpdate();

805:
How do I load bars from my ADO table/database

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void __fastcall TForm1::Gantt1AddItem(TObject *Sender,Exganttlib_tlb::HITEM   Item)
{
	Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
		var_Items->AddBar(Item,TVariant("Task"),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(2))),TVariant(var_Items->get_CellCaption(TVariant(Item),TVariant(4))),TNoParam(),TNoParam());
}

Gantt1->BeginUpdate();
Exganttlib_tlb::IChartPtr var_Chart = Gantt1->Chart;
	var_Chart->set_FirstVisibleDate(TVariant(TDateTime(1994,8,3).operator double()));
	var_Chart->set_PaneWidth(false,256);
	var_Chart->LevelCount = 2;
	var_Chart->UnitScale = Exganttlib_tlb::UnitEnum::exDay;
	var_Chart->FirstWeekDay = Exganttlib_tlb::WeekDayEnum::exMonday;
	var_Chart->OverviewVisible = Exganttlib_tlb::OverviewVisibleEnum::exOverviewShowAll;
Gantt1->ColumnAutoResize = false;
Gantt1->ContinueColumnScroll = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		Microsoft ActiveX Data Objects 6.1 Library

	TypeLib: msado15.dll

	to define the namespace: Adodb_tlb
*/
//#include "ADODB_TLB.h"
Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset");
	rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0);
Gantt1->DataSource = (IDispatch*)rs;
Gantt1->EndUpdate();

804:
Is it possible to auto-numbering the children items but still keeps the position after filtering

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Items");
	var_Column->DisplayFilterButton = true;
	var_Column->FilterType = Exganttlib_tlb::FilterTypeEnum::exFilter;
	var_Column->Filter = L"Child 2";
Exganttlib_tlb::IColumnPtr var_Column1 = Gantt1->Columns->Add(L"Pos.1");
	var_Column1->FormatColumn = L"1 ropos ''";
	var_Column1->Position = 0;
	var_Column1->Width = 32;
	var_Column1->AllowSizing = false;
Exganttlib_tlb::IColumnPtr var_Column2 = Gantt1->Columns->Add(L"Pos.2");
	var_Column2->FormatColumn = L"1 ropos ':'";
	var_Column2->Position = 1;
	var_Column2->Width = 32;
	var_Column2->AllowSizing = false;
Exganttlib_tlb::IColumnPtr var_Column3 = Gantt1->Columns->Add(L"Pos.3");
	var_Column3->FormatColumn = L"1 ropos ':|A-Z'";
	var_Column3->Position = 2;
	var_Column3->Width = 32;
	var_Column3->AllowSizing = false;
Exganttlib_tlb::IColumnPtr var_Column4 = Gantt1->Columns->Add(L"Pos.4");
	var_Column4->FormatColumn = L"1 ropos '|A-Z|'";
	var_Column4->Position = 3;
	var_Column4->Width = 32;
	var_Column4->AllowSizing = false;
Exganttlib_tlb::IColumnPtr var_Column5 = Gantt1->Columns->Add(L"Pos.5");
	var_Column5->FormatColumn = L"'<font Tahoma;7>' + 1 ropos '-<b>||A-Z'";
	var_Column5->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
	var_Column5->Position = 4;
	var_Column5->Width = 32;
	var_Column5->AllowSizing = false;
Exganttlib_tlb::IColumnPtr var_Column6 = Gantt1->Columns->Add(L"Pos.6");
	var_Column6->FormatColumn = L"'<b>'+ 1 ropos '</b>:<fgcolor=FF0000>|A-Z|'";
	var_Column6->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
	var_Column6->Position = 5;
	var_Column6->Width = 48;
	var_Column6->AllowSizing = false;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	h = var_Items->AddItem(TVariant("Root 2"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
Gantt1->ApplyFilter();
Gantt1->EndUpdate();

803:
Is it possible to auto-numbering the children items too

Gantt1->BeginUpdate();
Gantt1->Chart->set_PaneWidth(true,0);
Gantt1->LinesAtRoot = Exganttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
Gantt1->Columns->Add(L"Items");
Exganttlib_tlb::IColumnPtr var_Column = Gantt1->Columns->Add(L"Pos.1");
	var_Column->FormatColumn = L"1 rpos ''";
	var_Column->Position = 0;
	var_Column->Width = 32;
	var_Column->AllowSizing = false;
Exganttlib_tlb::IColumnPtr var_Column1 = Gantt1->Columns->Add(L"Pos.2");
	var_Column1->FormatColumn = L"1 rpos ':'";
	var_Column1->Position = 1;
	var_Column1->Width = 32;
	var_Column1->AllowSizing = false;
Exganttlib_tlb::IColumnPtr var_Column2 = Gantt1->Columns->Add(L"Pos.3");
	var_Column2->FormatColumn = L"1 rpos ':|A-Z'";
	var_Column2->Position = 2;
	var_Column2->Width = 32;
	var_Column2->AllowSizing = false;
Exganttlib_tlb::IColumnPtr var_Column3 = Gantt1->Columns->Add(L"Pos.4");
	var_Column3->FormatColumn = L"1 rpos '|A-Z|'";
	var_Column3->Position = 3;
	var_Column3->Width = 32;
	var_Column3->AllowSizing = false;
Exganttlib_tlb::IColumnPtr var_Column4 = Gantt1->Columns->Add(L"Pos.5");
	var_Column4->FormatColumn = L"'<font Tahoma;7>' + 1 rpos '-<b>||A-Z'";
	var_Column4->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
	var_Column4->Position = 4;
	var_Column4->Width = 32;
	var_Column4->AllowSizing = false;
Exganttlib_tlb::IColumnPtr var_Column5 = Gantt1->Columns->Add(L"Pos.6");
	var_Column5->FormatColumn = L"'<b>'+ 1 rpos '</b>:<fgcolor=FF0000>|A-Z|'";
	var_Column5->set_Def(Exganttlib_tlb::DefColumnEnum::exCellCaptionFormat,TVariant(1));
	var_Column5->Position = 5;
	var_Column5->Width = 48;
	var_Column5->AllowSizing = false;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	h = var_Items->AddItem(TVariant("Root 2"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
Gantt1->EndUpdate();

802:
Is there any way to add auto-numbering

Exganttlib_tlb::IColumnsPtr var_Columns = Gantt1->Columns;
	var_Columns->Add(L"Items");
	Exganttlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Pos");
		var_Column->FormatColumn = L"1 pos ''";
		var_Column->Position = 0;
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant("Item 1"));
	var_Items->AddItem(TVariant("Item 2"));
	var_Items->AddItem(TVariant("Item 3"));

801:
How can I format my column to display the percent values “5,00%”

Gantt1->Columns->Add(L"Percent")->FormatColumn = L"((dbl(value) * 100) format '2|,|3.')+'%'";
Exganttlib_tlb::IItemsPtr var_Items = Gantt1->Items;
	var_Items->AddItem(TVariant(0.5));
	var_Items->AddItem(TVariant(0.4));
	var_Items->AddItem(TVariant(0.75));