164
How can I select an item using on its full part, not only on its icon or caption

' Occurs when the user presses and then releases the left mouse button over the control.
function Click as v ()
	oListBar = topparent:CONTROL_ACTIVEX1.activex
	? oListBar.ItemFromPoint(-1,-1) 
end function

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local
Dim var_Item1 as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.HighlightItemType = 19 'exFull + exUnion
var_Group = oListBar.Groups.Add("Group 1")
	' var_Group.AddItem("Item <b>1</b>").CaptionFormat = 1
	var_Item = var_Group.AddItem("Item <b>1</b>")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.CaptionFormat = 1"

	' var_Group.AddItem("Item <b>2</b>").CaptionFormat = 1
	var_Item1 = var_Group.AddItem("Item <b>2</b>")
	oListBar.TemplateDef = "dim var_Item1"
	oListBar.TemplateDef = var_Item1
	oListBar.Template = "var_Item1.CaptionFormat = 1"


163
Does your control support subscript or superscript, in HTML captions

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local
Dim var_Item1 as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group")
	' var_Group.AddItem("Item <b><off 4><font ;6>1").CaptionFormat = 1
	var_Item = var_Group.AddItem("Item <b><off 4><font ;6>1")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.CaptionFormat = 1"

	' var_Group.AddItem("Item <b><off 4><font ;6>2").CaptionFormat = 1
	var_Item1 = var_Group.AddItem("Item <b><off 4><font ;6>2")
	oListBar.TemplateDef = "dim var_Item1"
	oListBar.TemplateDef = var_Item1
	oListBar.Template = "var_Item1.CaptionFormat = 1"


162
How do I get notified once the user selects or activates a group

' Occurs when a group is selected.
function SelectGroup as v (OldGroup  as  OLE::Exontrol.ListBar.1::IGroup,NewGroup  as  OLE::Exontrol.ListBar.1::IGroup)
	oListBar = topparent:CONTROL_ACTIVEX1.activex
	? "Current " 
	? NewGroup 
	? "Previously " 
	? OldGroup 
end function

Dim oListBar as P
Dim var_Group as P
Dim var_Group1 as P
Dim var_Group2 as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
var_Group1 = oListBar.Groups.Add("Group 2")
	var_Group1.AddItem("Item 1")
	var_Group1.AddItem("Item 2")
var_Group2 = oListBar.Groups.Add("Group 3")
	var_Group2.AddItem("Item 1")
	var_Group2.AddItem("Item 2")

161
Can I specify a different colors for groups using your EBN files

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oListBar.BackColorGroup = 16777216
oListBar.Groups.Add("Group 1")
' oListBar.Groups.Add("Group 2").BackColor = 16820923
var_Group = oListBar.Groups.Add("Group 2")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.BackColor = 16820923"

oListBar.SelectGroup = 1

160
Can I change the color of the control's border (EBN files)

Dim oListBar as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oListBar.Appearance = 27966412 '1aabbc8 + exDrop

159
How do I specify the width of the item

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.HighlightItemType = 0
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.ItemWidth = 32
	var_Group.AddItem(0)
	var_Group.AddItem(1)
	var_Group.AddItem(2)
	var_Group.AddItem(3)
	var_Group.AddItem(4)
	var_Group.AddItem(5)
	var_Group.AddItem(6)
	var_Group.AddItem(7)
	var_Group.AddItem(8)
	var_Group.AddItem(9)
oListBar.Groups.Add("Group 2")

158
How do I change the visual appearance of the item from the cursor, using EBN files

Dim oListBar as P
Dim var_Appearance as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Appearance = oListBar.VisualAppearance
	var_Appearance.Add(1,"c:\exontrol\images\normal.ebn")
	var_Appearance.Add(22,"c:\exontrol\images\pushed.ebn")
	var_Appearance.Add(2,"CP:22 0 8 0 -8")
oListBar.Template = "Background(4) = 16777216" // oListBar.Background(4) = 16777216
oListBar.Template = "Background(5) = 33554432" // oListBar.Background(5) = 33554432
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
	var_Group.SelectItem = 1
oListBar.Groups.Add("Group 2")

157
How do I change the visual appearance of the selected item, using EBN files

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oListBar.Template = "Background(4) = 16777216" // oListBar.Background(4) = 16777216
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
	var_Group.SelectItem = 1
oListBar.Groups.Add("Group 2")

156
How do I select an item

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.SelectItemType = 2
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
	var_Group.SelectItem = 1
oListBar.Groups.Add("Group 2")

155
How do I specify how a selected item shows

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.SelectItemType = 2
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
oListBar.Groups.Add("Group 2")

154
How do I select or activate a group

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

153
Is there any option to display groups from left to right

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Orientation = 1
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

152
How do I change the foreground color of the selected group

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.MarkSelectGroup = .t.
oListBar.SelBackColorGroup = oListBar.BackColorGroup
oListBar.SelForeColorGroup = 255
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

151
How do I highlight the selected group

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oListBar.MarkSelectGroup = .t.
oListBar.SelBackColorGroup = 16777216
oListBar.SelForeColorGroup = 0
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

150
How do I change the visual appearance of the selected group, using your EBN files

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oListBar.MarkSelectGroup = .t.
oListBar.SelBackColorGroup = 16777216
oListBar.SelForeColorGroup = 0
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

149
How do I specify the background color for selected group

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.MarkSelectGroup = .t.
oListBar.SelBackColorGroup = 255
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

148
How can I indent an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local
Dim var_Item1 as P
Dim var_Item2 as P
Dim var_Item3 as P
Dim var_Item4 as P
Dim var_Item5 as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	' var_Group.AddItem("Item 1").Alignment = 0
	var_Item = var_Group.AddItem("Item 1")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.Alignment = 0"

	var_Item1 = var_Group.AddItem("Sub Item <b>1</b>")
		var_Item1.CaptionFormat = 1
		var_Item1.Alignment = 0
		var_Item1.Indent = 12
	var_Item2 = var_Group.AddItem("Sub Item <b>2</b>")
		var_Item2.CaptionFormat = 1
		var_Item2.Alignment = 0
		var_Item2.Indent = 12
	var_Item3 = var_Group.AddItem("Sub Item <b>3</b>")
		var_Item3.CaptionFormat = 1
		var_Item3.Alignment = 0
		var_Item3.Indent = 12
	var_Item4 = var_Group.AddItem("Sub Sub Item <b>3</b>")
		var_Item4.CaptionFormat = 1
		var_Item4.Alignment = 0
		var_Item4.Indent = 24
	var_Item5 = var_Group.AddItem("Item 2")
		var_Item5.Alignment = 0

147
How can I use HTML format to display my item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("<font Tahoma;11>T</font>his is an HTML <b>item</b> assigned to a <fgcolor=FF0000>group</fgcolor>").CaptionFormat = 1
	var_Item = var_Group.AddItem("<font Tahoma;11>T</font>his is an HTML <b>item</b> assigned to a <fgcolor=FF0000>group</fgcolor>")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.CaptionFormat = 1"

	var_Group.AddItem("Item 3")

146
How can I assign a tooltip to an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("ToolTip").ToolTip = "This is bit of text that should appear when the cursor hovers the <b>item</b>."
	var_Item = var_Group.AddItem("ToolTip")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.ToolTip = `This is bit of text that should appear when the cursor hovers the <b>item</b>.`"

	var_Group.AddItem("Item 3")

145
How can I show or hide an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("Item 2").Visible = .f.
	var_Item = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.Visible = False"

	var_Group.AddItem("Item 3")

144
How can I change the item's background color

Dim oListBar as P
Dim var_Group as P
Dim var_Item as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	var_Item = var_Group.AddItem("Item 2")
		var_Item.BackColor = 255
		var_Item.BackColor2 = 16777215
	var_Group.AddItem("Item 3")

143
How can I change the item's background color

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("<bgcolor=FF0000>Item</bgcolor> 2").CaptionFormat = 1
	var_Item = var_Group.AddItem("<bgcolor=FF0000>Item</bgcolor> 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.CaptionFormat = 1"

	var_Group.AddItem("Item 3")

142
How can I change the item's foreground color

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("Item 2").ForeColor = 255
	var_Item = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.ForeColor = 255"

	var_Group.AddItem("Item 3")

141
How can I change the visual appearance of the item using your EBN files

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("Item 2").BackColor = 16777216
	var_Item = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.BackColor = 16777216"

	var_Group.AddItem("Item 3")

140
How can I change the item's background color

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("Item 2").BackColor = 255
	var_Item = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.BackColor = 255"

	var_Group.AddItem("Item 3")

139
How can I get the group of the item

Dim oListBar as P
Dim var_Group as P
Dim var_Group1 as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("Item 2").Group.Bold = .t.
	var_Group1 = var_Group.AddItem("Item 2").Group
	oListBar.TemplateDef = "dim var_Group1"
	oListBar.TemplateDef = var_Group1
	oListBar.Template = "var_Group1.Bold = True"

	var_Group.AddItem("Item 3")

138
How can I get the index of the item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as P
Dim var_Item1 as P
Dim var_Item2 as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Item = var_Group.AddItem("Item 1")
		var_Item.Caption = var_Item.Index
	var_Item1 = var_Group.AddItem("Item 2")
		var_Item1.Caption = var_Item1.Index
	var_Item2 = var_Group.AddItem("Item 3")
		var_Item2.Caption = var_Item2.Index

137
How can I draw underlined an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("<u>Item</u> 2").CaptionFormat = 1
	var_Item = var_Group.AddItem("<u>Item</u> 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.CaptionFormat = 1"

	var_Group.AddItem("Item 3")

136
How can I draw underlined an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("Item 2").Underline = .t.
	var_Item = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.Underline = True"

	var_Group.AddItem("Item 3")

135
How can I draw as strikeout an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("<s>Item</s> 2").CaptionFormat = 1
	var_Item = var_Group.AddItem("<s>Item</s> 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.CaptionFormat = 1"

	var_Group.AddItem("Item 3")

134
How can I draw as strikeout an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("Item 2").StrikeOut = .t.
	var_Item = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.StrikeOut = True"

	var_Group.AddItem("Item 3")

133
How can I draw as italic an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("<i>Item</i> 2").CaptionFormat = 1
	var_Item = var_Group.AddItem("<i>Item</i> 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.CaptionFormat = 1"

	var_Group.AddItem("Item 3")

132
How can I draw as italic an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("Item 2").Italic = .t.
	var_Item = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.Italic = True"

	var_Group.AddItem("Item 3")

131
How can I add a anchor or a hyperlink

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local
Dim var_Item1 as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.HighlightItemType = 0
var_Group = oListBar.Groups.Add("Group 1")
	' var_Group.AddItem("Link <a1><b>1</b></a>").CaptionFormat = 1
	var_Item = var_Group.AddItem("Link <a1><b>1</b></a>")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.CaptionFormat = 1"

	' var_Group.AddItem("Link <a2><b>2</b></a>").CaptionFormat = 1
	var_Item1 = var_Group.AddItem("Link <a2><b>2</b></a>")
	oListBar.TemplateDef = "dim var_Item1"
	oListBar.TemplateDef = var_Item1
	oListBar.Template = "var_Item1.CaptionFormat = 1"


130
How do I bold an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("<b>Item</a> 2").CaptionFormat = 1
	var_Item = var_Group.AddItem("<b>Item</a> 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.CaptionFormat = 1"

	var_Group.AddItem("Item 3")

129
How do I bold an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("Item 2").Bold = .t.
	var_Item = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.Bold = True"

	var_Group.AddItem("Item 3")

128
How can I align an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local
Dim var_Item1 as local
Dim var_Item2 as local
Dim var_Item3 as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.ItemHeight = 28
	' var_Group.AddItem("Left",1).Alignment = 0
	var_Item = var_Group.AddItem("Left",1)
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.Alignment = 0"

	' var_Group.AddItem("Center",2).Alignment = 1
	var_Item1 = var_Group.AddItem("Center",2)
	oListBar.TemplateDef = "dim var_Item1"
	oListBar.TemplateDef = var_Item1
	oListBar.Template = "var_Item1.Alignment = 1"

	' var_Group.AddItem("Right",3).Alignment = 2
	var_Item2 = var_Group.AddItem("Right",3)
	oListBar.TemplateDef = "dim var_Item2"
	oListBar.TemplateDef = var_Item2
	oListBar.Template = "var_Item2.Alignment = 2"

	' var_Group.AddItem("Middle",1).Alignment = 4
	var_Item3 = var_Group.AddItem("Middle",1)
	oListBar.TemplateDef = "dim var_Item3"
	oListBar.TemplateDef = var_Item3
	oListBar.Template = "var_Item3.Alignment = 4"


127
How can I assign some extra data to an item
Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	' var_Group.AddItem("Item 1").UserData = "your data"
	var_Item = var_Group.AddItem("Item 1")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.UserData = `your data`"

	var_Group.AddItem("Item 2")
	var_Group.AddItem("Item 3")

126
How can I assign or display an icon for an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local
Dim var_Item1 as local
Dim var_Item2 as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
var_Group = oListBar.Groups.Add("Group 1")
	' var_Group.AddItem("Item <img>1</img> text <img>2</img>").CaptionFormat = 1
	var_Item = var_Group.AddItem("Item <img>1</img> text <img>2</img>")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.CaptionFormat = 1"

	' var_Group.AddItem("Item 2").Image = 2
	var_Item1 = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item1"
	oListBar.TemplateDef = var_Item1
	oListBar.Template = "var_Item1.Image = 2"

	' var_Group.AddItem("Item 3").Image = 3
	var_Item2 = var_Group.AddItem("Item 3")
	oListBar.TemplateDef = "dim var_Item2"
	oListBar.TemplateDef = var_Item2
	oListBar.Template = "var_Item2.Image = 3"


125
How can I assign or display an icon for an item

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local
Dim var_Item1 as local
Dim var_Item2 as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
var_Group = oListBar.Groups.Add("Group 1")
	' var_Group.AddItem("Item 1").Image = 1
	var_Item = var_Group.AddItem("Item 1")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.Image = 1"

	' var_Group.AddItem("Item 2").Image = 2
	var_Item1 = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item1"
	oListBar.TemplateDef = var_Item1
	oListBar.Template = "var_Item1.Image = 2"

	' var_Group.AddItem("Item 3").Image = 3
	var_Item2 = var_Group.AddItem("Item 3")
	oListBar.TemplateDef = "dim var_Item2"
	oListBar.TemplateDef = var_Item2
	oListBar.Template = "var_Item2.Image = 3"


124
How can I assign or display an icon for an item

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1",1)
	var_Group.AddItem("Item 2",2)
	var_Group.AddItem("Item 3",3)

123
How can I change the item's position

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
	' var_Group.AddItem("Item 3").Position = 0
	var_Item = var_Group.AddItem("Item 3")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.Position = 0"


122
How can I change the item's caption

Dim oListBar as P
Dim var_Group as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.AddItem("Item 1")
	' var_Group.AddItem("Item 2").Caption = "new caption"
	var_Item = var_Group.AddItem("Item 2")
	oListBar.TemplateDef = "dim var_Item"
	oListBar.TemplateDef = var_Item
	oListBar.Template = "var_Item.Caption = `new caption`"

	var_Group.AddItem("Item 3")

121
How do I add new items

Dim oListBar as P
Dim var_Item as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
' oListBar.Groups.Add("Group 1").AddItem("Item 1").Bold = .t.
var_Item = oListBar.Groups.Add("Group 1").AddItem("Item 1")
oListBar.TemplateDef = "dim var_Item"
oListBar.TemplateDef = var_Item
oListBar.Template = "var_Item.Bold = True"


120
How do I assign a group to a set in the shortcut bar

Dim oListBar as P
Dim var_Group as local
Dim var_Group1 as local
Dim var_Group2 as local
Dim var_Group3 as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
oListBar.ShowShortcutBar = .t.
' oListBar.Groups.Add("Group 1").Shortcut = "Set <img>1</img>"
var_Group = oListBar.Groups.Add("Group 1")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.Shortcut = `Set <img>1</img>`"

' oListBar.Groups.Add("Group 2").Shortcut = "Set <img>1</img>"
var_Group1 = oListBar.Groups.Add("Group 2")
oListBar.TemplateDef = "dim var_Group1"
oListBar.TemplateDef = var_Group1
oListBar.Template = "var_Group1.Shortcut = `Set <img>1</img>`"

' oListBar.Groups.Add("Group 3").Shortcut = "Set <img>2</img>"
var_Group2 = oListBar.Groups.Add("Group 3")
oListBar.TemplateDef = "dim var_Group2"
oListBar.TemplateDef = var_Group2
oListBar.Template = "var_Group2.Shortcut = `Set <img>2</img>`"

' oListBar.Groups.Add("Group 4").Shortcut = "Set <img>2</img>"
var_Group3 = oListBar.Groups.Add("Group 4")
oListBar.TemplateDef = "dim var_Group3"
oListBar.TemplateDef = var_Group3
oListBar.Template = "var_Group3.Shortcut = `Set <img>2</img>`"


119
How can I assign a tooltip to a group

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.ToolTipDelay = 1
' oListBar.Groups.Add("ToolTip").ToolTip = "This is a bit of text that's shown when the cursor hovers the <b>group</b>."
var_Group = oListBar.Groups.Add("ToolTip")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.ToolTip = `This is a bit of text that's shown when the cursor hovers the <b>group</b>.`"


118
How can I display HTML text in the group's caption

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.GroupHeight = 44
oListBar.Template = "HTMLPicture(`pic1`) = `c:\exontrol\images\zipdisk.gif`" // oListBar.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
oListBar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
' oListBar.Groups.Add("<img>pic1</img> <s>HTML</s> <img>1</img> <b>format</b>").CaptionFormat = 1
var_Group = oListBar.Groups.Add("<img>pic1</img> <s>HTML</s> <img>1</img> <b>format</b>")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.CaptionFormat = 1"


117
How can I change the group's background color ( gradient )

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.BackColor = 255
	var_Group.BackColor2 = 16777215
oListBar.Groups.Add("Group 3")

116
How can I specify the height of the items

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
	var_Group.ItemHeight = 13
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

115
How do I put a picture on the group's background
Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
	var_Group.Picture = oListBar.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
	var_Group.PictureDisplay = 2
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

114
How do I put a picture on the group's background
Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
	var_Group.Picture = oListBar.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

113
How can I change the foreground color for items

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
	var_Group.ForeColorList = 255
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

112
How can I change the background color for the items

Dim oListBar as P
Dim var_Group as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
var_Group = oListBar.Groups.Add("Group 2")
	var_Group.AddItem("Item 1")
	var_Group.AddItem("Item 2")
	var_Group.BackColorList = 255
oListBar.Groups.Add("Group 3")
oListBar.SelectGroup = 1

111
How can I change the group's foreground color

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
' oListBar.Groups.Add("<fgcolor=FF0000>Group</fgcolor> 2").CaptionFormat = 1
var_Group = oListBar.Groups.Add("<fgcolor=FF0000>Group</fgcolor> 2")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.CaptionFormat = 1"

oListBar.Groups.Add("Group 3")

110
How can I change the group's foreground color

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
' oListBar.Groups.Add("Group 2").ForeColor = 255
var_Group = oListBar.Groups.Add("Group 2")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.ForeColor = 255"

oListBar.Groups.Add("Group 3")

109
How can I change the group's background color

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
' oListBar.Groups.Add("<bgcolor=FF0000>Group</bgcolor> 2").CaptionFormat = 1
var_Group = oListBar.Groups.Add("<bgcolor=FF0000>Group</bgcolor> 2")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.CaptionFormat = 1"

oListBar.Groups.Add("Group 3")

108
How can I change the visual appearance of the group, using EBN files

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oListBar.GroupAppearance = 1
oListBar.Groups.Add("Group 1")
' oListBar.Groups.Add("Group 2").BackColor = 16777216
var_Group = oListBar.Groups.Add("Group 2")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.BackColor = 16777216"

oListBar.Groups.Add("Group 3")

107
How can I change the group's background color

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
' oListBar.Groups.Add("Group 2").BackColor = 255
var_Group = oListBar.Groups.Add("Group 2")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.BackColor = 255"

oListBar.Groups.Add("Group 3")

106
How do I get the index of the group

Dim oListBar as P
Dim var_Group as P
Dim var_Group1 as P
Dim var_Group2 as P

oListBar = topparent:CONTROL_ACTIVEX1.activex
var_Group = oListBar.Groups.Add("Group 1")
	var_Group.Caption = var_Group.Index
var_Group1 = oListBar.Groups.Add("Group 2")
	var_Group1.Caption = var_Group1.Index
var_Group2 = oListBar.Groups.Add("Group 3")
	var_Group2.Caption = var_Group2.Index

105
How can I underline the group's name

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
' oListBar.Groups.Add("<u>Group</u> 1").CaptionFormat = 1
var_Group = oListBar.Groups.Add("<u>Group</u> 1")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.CaptionFormat = 1"


104
How can I underline the group's name

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
' oListBar.Groups.Add("Group 2").Underline = .t.
var_Group = oListBar.Groups.Add("Group 2")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.Underline = True"

oListBar.Groups.Add("Group 3")

103
How can I show the group's name as strikeout

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
' oListBar.Groups.Add("<s>Group</s> 1").CaptionFormat = 1
var_Group = oListBar.Groups.Add("<s>Group</s> 1")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.CaptionFormat = 1"


102
How can I show the group's name as strikeout

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
oListBar.Groups.Add("Group 1")
' oListBar.Groups.Add("Group 2").StrikeOut = .t.
var_Group = oListBar.Groups.Add("Group 2")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.StrikeOut = True"

oListBar.Groups.Add("Group 3")

101
How can I draw as italic the group's name

Dim oListBar as P
Dim var_Group as local

oListBar = topparent:CONTROL_ACTIVEX1.activex
' oListBar.Groups.Add("<i>Group</i> 1").CaptionFormat = 1
var_Group = oListBar.Groups.Add("<i>Group</i> 1")
oListBar.TemplateDef = "dim var_Group"
oListBar.TemplateDef = var_Group
oListBar.Template = "var_Group.CaptionFormat = 1"