property G2antt.HotForeColor as Color
Retrieves or sets a value that indicates the hot-tracking foreground color.

TypeDescription
Color A color expression that indicates the foreground color for item from the cursor ( hovering the item ).
By default, the HotForeColor property is 0, which means that the HotForeColor property has no effect. Use the HotForeColor property on a non-zero value to highlight the item from the cursor. The HotBackColor property specifies the background color to highlight the item from the cursor. The ItemFromPoint property gets the item from the cursor. The SelForeColor property specifies the selection foreground color. 

The following sample displays a different background color mouse passes over an item.

VBA  
With G2antt1
	.BeginUpdate 
	.Columns.Add "Def"
	.HotBackColor = RGB(0,0,128)
	.HotForeColor = RGB(255,255,255)
	With .Items
		.AddItem "Item A"
		.AddItem "Item B"
		.AddItem "Item C"
	End With
	.EndUpdate 
End With
VB6  
With G2antt1
	.BeginUpdate 
	.Columns.Add "Def"
	.HotBackColor = RGB(0,0,128)
	.HotForeColor = RGB(255,255,255)
	With .Items
		.AddItem "Item A"
		.AddItem "Item B"
		.AddItem "Item C"
	End With
	.EndUpdate 
End With
VB.NET  
With Exg2antt1
	.BeginUpdate()
	.Columns.Add("Def")
	.HotBackColor = Color.FromArgb(0,0,128)
	.HotForeColor = Color.FromArgb(255,255,255)
	With .Items
		.AddItem("Item A")
		.AddItem("Item B")
		.AddItem("Item C")
	End With
	.EndUpdate()
End With
VB.NET for /COM  
With AxG2antt1
	.BeginUpdate()
	.Columns.Add("Def")
	.HotBackColor = RGB(0,0,128)
	.HotForeColor = RGB(255,255,255)
	With .Items
		.AddItem("Item A")
		.AddItem("Item B")
		.AddItem("Item C")
	End With
	.EndUpdate()
End With
C++  
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library'

	#import <ExG2antt.dll>
	using namespace EXG2ANTTLib;
*/
EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown();
spG2antt1->BeginUpdate();
spG2antt1->GetColumns()->Add(L"Def");
spG2antt1->PutHotBackColor(RGB(0,0,128));
spG2antt1->PutHotForeColor(RGB(255,255,255));
EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems();
	var_Items->AddItem("Item A");
	var_Items->AddItem("Item B");
	var_Items->AddItem("Item C");
spG2antt1->EndUpdate();
C++ Builder  
G2antt1->BeginUpdate();
G2antt1->Columns->Add(L"Def");
G2antt1->HotBackColor = RGB(0,0,128);
G2antt1->HotForeColor = RGB(255,255,255);
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant("Item A"));
	var_Items->AddItem(TVariant("Item B"));
	var_Items->AddItem(TVariant("Item C"));
G2antt1->EndUpdate();
C#  
exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Def");
exg2antt1.HotBackColor = Color.FromArgb(0,0,128);
exg2antt1.HotForeColor = Color.FromArgb(255,255,255);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
	var_Items.AddItem("Item A");
	var_Items.AddItem("Item B");
	var_Items.AddItem("Item C");
exg2antt1.EndUpdate();
JavaScript  
<OBJECT classid="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
	G2antt1.BeginUpdate()

	G2antt1.Columns.Add("Def")

	G2antt1.HotBackColor = 8388608

	G2antt1.HotForeColor = 16777215

	var var_Items = G2antt1.Items

		var_Items.AddItem("Item A")

		var_Items.AddItem("Item B")

		var_Items.AddItem("Item C")

	G2antt1.EndUpdate()

</SCRIPT>
C# for /COM  
axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Def");
axG2antt1.HotBackColor = Color.FromArgb(0,0,128);
axG2antt1.HotForeColor = Color.FromArgb(255,255,255);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddItem("Item A");
	var_Items.AddItem("Item B");
	var_Items.AddItem("Item C");
axG2antt1.EndUpdate();
X++ (Dynamics Ax 2009)  
public void init()
{
	COM com_Items

	anytype var_Items




	super()


	exg2antt1.BeginUpdate()

	exg2antt1.Columns().Add("Def")

	exg2antt1.HotBackColor(WinApi::RGB2int(0,0,128))

	exg2antt1.HotForeColor(WinApi::RGB2int(255,255,255))

	var_Items = exg2antt1.Items()
	 com_Items = var_Items

		com_Items.AddItem("Item A")

		com_Items.AddItem("Item B")

		com_Items.AddItem("Item C")

	exg2antt1.EndUpdate()

}
VFP  
with thisform.G2antt1
	.BeginUpdate
	.Columns.Add("Def")
	.HotBackColor = RGB(0,0,128)
	.HotForeColor = RGB(255,255,255)
	with .Items
		.AddItem("Item A")
		.AddItem("Item B")
		.AddItem("Item C")
	endwith
	.EndUpdate
endwith
dBASE Plus  
local oG2antt,var_Items

oG2antt = form.Activex1.nativeObject
oG2antt.BeginUpdate()
oG2antt.Columns.Add("Def")
oG2antt.HotBackColor = 0x800000
oG2antt.HotForeColor = 0xffffff
var_Items = oG2antt.Items
	var_Items.AddItem("Item A")
	var_Items.AddItem("Item B")
	var_Items.AddItem("Item C")
oG2antt.EndUpdate()
XBasic (Alpha Five)  
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.BeginUpdate()
oG2antt.Columns.Add("Def")
oG2antt.HotBackColor = 8388608
oG2antt.HotForeColor = 16777215
var_Items = oG2antt.Items
	var_Items.AddItem("Item A")
	var_Items.AddItem("Item B")
	var_Items.AddItem("Item C")
oG2antt.EndUpdate()
Delphi 8 (.NET only)  
with AxG2antt1 do
begin
	BeginUpdate();
	Columns.Add('Def');
	HotBackColor := Color.FromArgb(0,0,128);
	HotForeColor := Color.FromArgb(255,255,255);
	with Items do
	begin
		AddItem('Item A');
		AddItem('Item B');
		AddItem('Item C');
	end;
	EndUpdate();
end
Delphi (standard)  
with G2antt1 do
begin
	BeginUpdate();
	Columns.Add('Def');
	HotBackColor := RGB(0,0,128);
	HotForeColor := RGB(255,255,255);
	with Items do
	begin
		AddItem('Item A');
		AddItem('Item B');
		AddItem('Item C');
	end;
	EndUpdate();
end
Visual Objects  
local var_Items as IItems

oDCOCX_Exontrol1:BeginUpdate()
oDCOCX_Exontrol1:Columns:Add("Def")
oDCOCX_Exontrol1:HotBackColor := RGB(0,0,128)
oDCOCX_Exontrol1:HotForeColor := RGB(255,255,255)
var_Items := oDCOCX_Exontrol1:Items
	var_Items:AddItem("Item A")
	var_Items:AddItem("Item B")
	var_Items:AddItem("Item C")
oDCOCX_Exontrol1:EndUpdate()
PowerBuilder
OleObject oG2antt,var_Items

oG2antt = ole_1.Object
oG2antt.BeginUpdate()
oG2antt.Columns.Add("Def")
oG2antt.HotBackColor = RGB(0,0,128)
oG2antt.HotForeColor = RGB(255,255,255)
var_Items = oG2antt.Items
	var_Items.AddItem("Item A")
	var_Items.AddItem("Item B")
	var_Items.AddItem("Item C")
oG2antt.EndUpdate()