112:
How can I display a chart/organigram view inside

Dim oExMenu as P
Dim var_ChartView as P
Dim var_Control as P
Dim var_Menu as P
Dim var_Node as local
Dim var_Nodes as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items
	var_Menu.Add("File")
	var_Control = var_Menu.Add("OrgChart",3).SubControl
		var_Control.ControlID = "Exontrol.ChartView"
		var_Control.Width = 128
		var_Control.Height = 164
		var_Control.Create()
		var_ChartView = var_Control.Object
			var_ChartView.IndentSiblingY = 30
			var_ChartView.ShowLinksDir = .t.
			var_ChartView.PenWidthLink = 2
			var_ChartView.LinkColor = 0
			var_ChartView.AntiAliasing = .t.
			var_Nodes = var_ChartView.Nodes
				' var_Nodes.Add("L1_A",,"LA").ShowLinkDir = .f.
				var_Node = var_Nodes.Add("L1_A",,"LA")
				oExMenu.TemplateDef = "dim var_Node"
				oExMenu.TemplateDef = var_Node
				oExMenu.Template = "var_Node.ShowLinkDir = False"

				var_Nodes.Add("L1_B",,"LB")
				var_Nodes.Add("L2_A","LA","LA2")
				var_Nodes.Add("L2_B","LB","LB2")
	var_Menu.Add("Close")
oExMenu.Refresh()

111:
How do I uncheck the item

' Occurs when an item is selected by clicking or by pressing RETURN key.
function Select as v (ID as N)
	' Item(ID).Check = False
	oExMenu = topparent:CONTROL_ACTIVEX1.activex
end function

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items
	var_item = var_Menu.Add("Horizontal View",,210)
		var_item.Check = .t.
		var_item.CheckEffect = .f.
oExMenu.Refresh()

110:
How do I get the identifier of the item being clicked / selected

' Occurs when an item is selected by clicking or by pressing RETURN key.
function Select as v (ID as N)
	oExMenu = topparent:CONTROL_ACTIVEX1.activex
	? "Using ID parameter:" 
	? ID 
	? "Using the EventParam property: " 
	? oExMenu.EventParam(0) 
	? "Using the ExecuteTemplate property: " 
	? oExMenu.ExecuteTemplate("EventParam(0)") 
	oExMenu.Template = "EventParam(0)"
	? "Using TemplateResult property:" 
	? oExMenu.TemplateResult 
	? "Using TemplateResultN property:" 
	? oExMenu.TemplateResultN 
	? "Using TemplateResultS property:" 
	? oExMenu.TemplateResultS 
end function

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "A[id=10](B[id=20],C[id=30](D[id=40],E[id=50]),F[id=60])"

109:
How can I assign an icon to an item using an external ICO file

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Template = "HTMLPicture(`ico1`) = `C:\Program Files\Exontrol\ExMenu\Sample\VC\Sample\res\sample.ico`" // oExMenu.HTMLPicture("ico1") = "C:\Program Files\Exontrol\ExMenu\Sample\VC\Sample\res\sample.ico"
oExMenu.Items.Add("<img>ico1:16</img> Caption")
oExMenu.Refresh()

108:
How can I assign an icon to an item using an external ICO file

Dim oExMenu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ReplaceIcon(oExMenu.ExecuteTemplate("loadpicture(`C:\Program Files\Exontrol\ExMenu\Sample\VC\Sample\res\sample.ico`)"))
' oExMenu.Items.Add("Caption",0).Image = 0
var_item = oExMenu.Items.Add("Caption",0)
oExMenu.TemplateDef = "dim var_item"
oExMenu.TemplateDef = var_item
oExMenu.Template = "var_item.Image = 0"

oExMenu.Refresh()

107:
How can I assign a tooltip for an item

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_item = var_Menu.Add("ToolTip     CTRL + <b>F</b>")
		var_item.Tooltip = "This is a bit of text that should be displayed when the cursor hovers the item"
		var_item.TooltipTitle = "Title"
oExMenu.Refresh()

106:
How can I specify some keys on the right of the item

Dim oExMenu as P
Dim var_Menu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_Menu.Add("File     CTRL + <b>F</b>")
	var_Menu.Add("Left should be a long text")
oExMenu.Refresh()

105:
How do I specify the item's alignment

Dim oExMenu as P
Dim var_Menu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_Menu.Add("Left<r>Right")
	var_Menu.Add("Left should be a long text")
oExMenu.Refresh()

104:
How do I specify the item's alignment

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as local
Dim var_item1 as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	' var_Menu.Add("Center").Alignment = 1
	var_item = var_Menu.Add("Center")
	oExMenu.TemplateDef = "dim var_item"
	oExMenu.TemplateDef = var_item
	oExMenu.Template = "var_item.Alignment = 1"

	' var_Menu.Add("Right").Alignment = 2
	var_item1 = var_Menu.Add("Right")
	oExMenu.TemplateDef = "dim var_item1"
	oExMenu.TemplateDef = var_item1
	oExMenu.Template = "var_item1.Alignment = 2"

	var_Menu.Add("Left should be a long text")
oExMenu.Refresh()

103:
How can I remove the border of the item's text box or an edit control

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as P
Dim var_item1 as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_item = var_Menu.Add("Edit 1")
		var_item.AllowEdit = .t.
		var_item.EditCaption = "test"
		var_item.EditWidth = 128
		var_item.EditBorder = 0
	' var_Menu.Add("Edit 2").AllowEdit = .t.
	var_item1 = var_Menu.Add("Edit 2")
	oExMenu.TemplateDef = "dim var_item1"
	oExMenu.TemplateDef = var_item1
	oExMenu.Template = "var_item1.AllowEdit = True"

oExMenu.Refresh()

102:
How can I specify a single border for the item's text box or an edit control

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as P
Dim var_item1 as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_item = var_Menu.Add("Edit 1")
		var_item.AllowEdit = .t.
		var_item.EditCaption = "test"
		var_item.EditWidth = 128
		var_item.EditBorder = 1
	' var_Menu.Add("Edit 2").AllowEdit = .t.
	var_item1 = var_Menu.Add("Edit 2")
	oExMenu.TemplateDef = "dim var_item1"
	oExMenu.TemplateDef = var_item1
	oExMenu.Template = "var_item1.AllowEdit = True"

oExMenu.Refresh()

101:
How can I add a checkbox

Dim oExMenu as P
Dim var_item as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_item = oExMenu.Items.Add("Checked")
	var_item.Check = .t.
	var_item.CheckEffect = .f.
oExMenu.Refresh()

100:
How can I specify the shape of the cursor while it hovers an item

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	' var_Menu.Add("Item 1").Cursor = "exHelp"
	var_item = var_Menu.Add("Item 1")
	oExMenu.TemplateDef = "dim var_item"
	oExMenu.TemplateDef = var_item
	oExMenu.Template = "var_item.Cursor = `exHelp`"

	var_Menu.Add("Item 2")
oExMenu.Refresh()

99:
How can I specify the width for text box or an edit control

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as P
Dim var_item1 as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_item = var_Menu.Add("Edit 1")
		var_item.AllowEdit = .t.
		var_item.EditCaption = "test"
		var_item.EditWidth = 128
	' var_Menu.Add("Edit 2").AllowEdit = .t.
	var_item1 = var_Menu.Add("Edit 2")
	oExMenu.TemplateDef = "dim var_item1"
	oExMenu.TemplateDef = var_item1
	oExMenu.Template = "var_item1.AllowEdit = True"

oExMenu.Refresh()

98:
How can I show or hide an item

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as P
Dim var_item1 as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_item = oExMenu.Items.Add("Popup",2)
	var_Menu = var_item.SubMenu
		var_Menu.Add("Visible")
		' var_Menu.Add("Hidden").Visible = .f.
		var_item1 = var_Menu.Add("Hidden")
		oExMenu.TemplateDef = "dim var_item1"
		oExMenu.TemplateDef = var_item1
		oExMenu.Template = "var_item1.Visible = False"

oExMenu.Refresh()

97:
Is there any function to display the popup menu up not down

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as P
Dim var_item1 as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.Add("Item")
var_item = oExMenu.Items.Add("Popup",2)
	var_item.ShowDown = .f.
	var_Menu = var_item.SubMenu
		var_Menu.Add("Item <fgcolor=FF0000>1</fgcolor>")
		' var_Menu.Add("Item 2").Caption = "Item <fgcolor=FF0000>2</fgcolor>"
		var_item1 = var_Menu.Add("Item 2")
		oExMenu.TemplateDef = "dim var_item1"
		oExMenu.TemplateDef = var_item1
		oExMenu.Template = "var_item1.Caption = `Item <fgcolor=FF0000>2</fgcolor>`"

oExMenu.Items.Add("Item")
oExMenu.Appearance = 0
oExMenu.Border = 2
oExMenu.Refresh()

96:
How can I specify the item's foreground color

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_Menu.Add("Item <fgcolor=FF0000>1</fgcolor>")
	' var_Menu.Add("Item 2").Caption = "Item <fgcolor=FF0000>2</fgcolor>"
	var_item = var_Menu.Add("Item 2")
	oExMenu.TemplateDef = "dim var_item"
	oExMenu.TemplateDef = var_item
	oExMenu.Template = "var_item.Caption = `Item <fgcolor=FF0000>2</fgcolor>`"

oExMenu.Refresh()

95:
How can I specify the item's foreground color

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	' var_Menu.Add("Item 1").ForeColor = 255
	var_item = var_Menu.Add("Item 1")
	oExMenu.TemplateDef = "dim var_item"
	oExMenu.TemplateDef = var_item
	oExMenu.Template = "var_item.ForeColor = 255"

	var_Menu.Add("Item 2")
oExMenu.Refresh()

94:
How can I specify the item's background color

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	' var_Menu.Add("Item 1").BackColor = 255
	var_item = var_Menu.Add("Item 1")
	oExMenu.TemplateDef = "dim var_item"
	oExMenu.TemplateDef = var_item
	oExMenu.Template = "var_item.BackColor = 255"

	var_Menu.Add("Item 2")
oExMenu.Refresh()

93:
How can I add an item with a text box or an edit control

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as P
Dim var_item1 as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_item = var_Menu.Add("Edit 1")
		var_item.AllowEdit = .t.
		var_item.EditCaption = "test"
	' var_Menu.Add("Edit 2").AllowEdit = .t.
	var_item1 = var_Menu.Add("Edit 2")
	oExMenu.TemplateDef = "dim var_item1"
	oExMenu.TemplateDef = var_item1
	oExMenu.Template = "var_item1.AllowEdit = True"

oExMenu.Refresh()

92:
How can I add an item with a text box or an edit control

Dim oExMenu as P
Dim var_Menu as P
Dim var_item as local
Dim var_item1 as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	' var_Menu.Add("Edit 1").AllowEdit = .t.
	var_item = var_Menu.Add("Edit 1")
	oExMenu.TemplateDef = "dim var_item"
	oExMenu.TemplateDef = var_item
	oExMenu.Template = "var_item.AllowEdit = True"

	' var_Menu.Add("Edit 2").AllowEdit = .t.
	var_item1 = var_Menu.Add("Edit 2")
	oExMenu.TemplateDef = "dim var_item1"
	oExMenu.TemplateDef = var_item1
	oExMenu.Template = "var_item1.AllowEdit = True"

oExMenu.Refresh()

91:
How can I add a bullet

Dim oExMenu as P
Dim var_item as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_item = oExMenu.Items.Add("Bullet")
	var_item.Check = .t.
	var_item.Bullet = .t.
oExMenu.Refresh()

90:
How can I add a checkbox

Dim oExMenu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
' oExMenu.Items.Add("Checked").Check = .t.
var_item = oExMenu.Items.Add("Checked")
oExMenu.TemplateDef = "dim var_item"
oExMenu.TemplateDef = var_item
oExMenu.Template = "var_item.Check = True"

oExMenu.Refresh()

89:
How can I enable or disable an item

Dim oExMenu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
' oExMenu.Items.Add("Disabled").Enabled = .f.
var_item = oExMenu.Items.Add("Disabled")
oExMenu.TemplateDef = "dim var_item"
oExMenu.TemplateDef = var_item
oExMenu.Template = "var_item.Enabled = False"

oExMenu.Refresh()

88:
How can I display an icon

Dim oExMenu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
' oExMenu.Items.Add("A").Image = 1
var_item = oExMenu.Items.Add("A")
oExMenu.TemplateDef = "dim var_item"
oExMenu.TemplateDef = var_item
oExMenu.Template = "var_item.Image = 1"

oExMenu.Refresh()

87:
How can I specify the item's identifier

Dim oExMenu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
' oExMenu.Items.Add("A").ID = 1000
var_item = oExMenu.Items.Add("A")
oExMenu.TemplateDef = "dim var_item"
oExMenu.TemplateDef = var_item
oExMenu.Template = "var_item.ID = 1000"

oExMenu.Refresh()

86:
How can I specify the item's identifier

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.Add("A",0,1000)
oExMenu.Refresh()

85:
How can I assign an extra data to an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).UserData = "your data"
oExMenu.Refresh()

84:
How can I underline an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Caption = "Item <u>1</u>"
oExMenu.Refresh()

83:
How can I underline an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Underline = .t.
oExMenu.Refresh()

82:
How can I display as strikeout an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Caption = "Item <s>1</s>"
oExMenu.Refresh()

81:
How can I display as strikeout an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Strikeout = .t.
oExMenu.Refresh()

80:
How can I display as italic an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Caption = "Item <i>1</i>"
oExMenu.Refresh()

79:
How can I display as italic an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Italic = .t.
oExMenu.Refresh()

78:
How do I bold an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Caption = "Item <b>1</b>"
oExMenu.Refresh()

77:
How do I bold an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Bold = .t.
oExMenu.Refresh()

76:
How do I change the item's caption

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Caption = "new <b>caption</b>"
oExMenu.Refresh()

75:
How can I speciy the picture on the drop down menu

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).SubMenu.Picture = oExMenu.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")

74:
How can I speciy the number of visible items

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).SubMenu.VisibleItemsCount = 1

73:
How can I speciy the shape of the cursor when it hovers the menu

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Cursor = "exHelp"

72:
How can I add items

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

71:
How I can remove an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.Remove(10)
oExMenu.Refresh()

70:
How I can get the number or the count of the items in the menu

Dim oExMenu as P
Dim var_Menu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
var_Menu = oExMenu.Items
	var_Menu.Add(var_Menu.Count)
oExMenu.Refresh()

69:
How I can clear a menu

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.Clear()
oExMenu.Items.ToString = "Item 1"

68:
How do I specify to close an ActiveX item when user clicks it

Dim oExMenu as P
Dim var_Calendar as P
Dim var_Control as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Control = oExMenu.Items.Add("Calendar",3).SubControl
	var_Control.ControlID = "MSCal.Calendar"
	var_Control.Width = 256
	var_Control.Height = 196
	var_Control.Create()
	var_Calendar = var_Control.Object
		var_Calendar.ShowDateSelectors = .f.
		var_Calendar.BackColor = 15200239
	var_Control.CloseOn = 514
oExMenu.Refresh()

67:
How can I access the properties and methods for an ActiveX item

Dim oExMenu as P
Dim var_Calendar as P
Dim var_Control as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Control = oExMenu.Items.Add("Calendar",3).SubControl
	var_Control.ControlID = "MSCal.Calendar"
	var_Control.Width = 256
	var_Control.Height = 196
	var_Control.Create()
	var_Calendar = var_Control.Object
		var_Calendar.ShowDateSelectors = .f.
		var_Calendar.BackColor = 15200239
oExMenu.Refresh()

66:
I can't see the ActiveX item

Dim oExMenu as P
Dim var_Control as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Control = oExMenu.Items.Add("Calendar",3).SubControl
	var_Control.ControlID = "MSCal.Calendar"
	var_Control.Create()
oExMenu.Refresh()

65:
How can I specify the runtime license key for an ActiveX item

Dim oExMenu as P
Dim var_Control as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Control = oExMenu.Items.Add("Calendar",3).SubControl
	var_Control.ControlID = "MSCal.Calendar"
	var_Control.LicenseKey = ""
	var_Control.Create()
oExMenu.Refresh()

64:
How can I specify the width and the height for an ActiveX item

Dim oExMenu as P
Dim var_Control as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Control = oExMenu.Items.Add("Calendar",3).SubControl
	var_Control.ControlID = "MSCal.Calendar"
	var_Control.Width = 256
	var_Control.Height = 256
	var_Control.Create()
oExMenu.Refresh()

63:
How can I select a date

Dim oExMenu as P
Dim var_Control as P
Dim var_DTPicker as P
Dim var_Menu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_Control = var_Menu.Add("Select a date",3).SubControl
		var_Control.ControlID = "MSComCtl2.DTPicker"
		var_Control.Width = 128
		var_Control.Height = 22
		var_Control.Create()
		var_DTPicker = var_Control.Object
			var_DTPicker.Format = 3
			var_DTPicker.CustomFormat = "dd-MM-yyy"
			var_DTPicker.Refresh()
oExMenu.Refresh()

62:
How can I add an ActiveX item

Dim oExMenu as P
Dim var_Control as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Control = oExMenu.Items.Add("Calendar",3).SubControl
	var_Control.ControlID = "MSCal.Calendar"
	var_Control.Create()
oExMenu.Refresh()

61:
How can I add a separator item

Dim oExMenu as P
Dim var_Menu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_Menu.Add("Item 1")
	var_Menu.Add("",1)
	var_Menu.Add("Item 2")
oExMenu.Refresh()

60:
How can I add a popup or a submenu

Dim oExMenu as P
Dim var_Menu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
var_Menu = oExMenu.Items.Add("Popup",2).SubMenu
	var_Menu.Add("Item 1")
	var_Menu.Add("Item 2")
oExMenu.Refresh()

59:
How can I add a new item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.Add("Item 1")
oExMenu.Refresh()

58:
How I can assign a picture or an icon to an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
oExMenu.Template = "HTMLPicture(`pic1`) = `c:\exontrol\images\zipdisk.gif`" // oExMenu.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
oExMenu.Template = "ItemHeight(2) = 34" // oExMenu.ItemHeight(2) = 34
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Caption = "<img>pic1</img> <b>1</b>"
oExMenu.Items.item(60).Caption = "T <img>1</img> <img>2</img> and so on "
oExMenu.Refresh()

57:
How I can assign a picture to an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Template = "HTMLPicture(`pic1`) = `c:\exontrol\images\zipdisk.gif`" // oExMenu.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
oExMenu.Template = "HTMLPicture(`pic2`) = `c:\exontrol\images\auction.gif`" // oExMenu.HTMLPicture("pic2") = "c:\exontrol\images\auction.gif"
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.Items.item(10).Caption = "<img>pic1</img> <b>1</b>"
oExMenu.Items.item(60).Caption = "<img>pic2</img> <b>2</b>"
oExMenu.Refresh()

56:
How do I call your x-script language

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Template = "Items.ToString = `Item 1,Item 2`"

55:
How do I change the shape of the cursor whether it hovers the control

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Cursor = "exHelp"
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

54:
How do I specify whether the item gets selected whether the user presses or releases the mouse

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.SelectOn = 0
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

53:
How do I change the picture or icon for the chevrons

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
oExMenu.Template = "ScrollImage(True) = 1" // oExMenu.ScrollImage(.t.) = 1
oExMenu.Template = "ScrollImage(False) = 2" // oExMenu.ScrollImage(.f.) = 2
oExMenu.AllowChevron = 1
oExMenu.Items.ToString = "Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40])"

52:
How do I specify the height for items

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Template = "ItemHeight(2) = 34" // oExMenu.ItemHeight(2) = 34
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

51:
How do I change the picture or icon for the chevrons

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
oExMenu.ChevronImage = 1
oExMenu.AllowChevron = -1
oExMenu.Items.ToString = "Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40])"

50:
How do I disable chevrons

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.AllowChevron = 0
oExMenu.Items.ToString = "Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40])"

49:
How do I allow chevrons

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.AllowChevron = 1
oExMenu.Items.ToString = "Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40])"

48:
How do I allow chevrons

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.AllowChevron = -1
oExMenu.Items.ToString = "Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40]),Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40])"

47:
How do I show directly the drop down menu, without scrolling

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ScrollOnDrop = .f.
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

46:
How can I change the visual appearance for for a top level item, when the Appearance property is Flat

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oExMenu.Template = "Background(2) = 16777216" // oExMenu.Background(2) = 16777216
oExMenu.Appearance = 1
oExMenu.Border = 1
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

45:
How can I change the visual appearance for an item, when the Appearance property is Button

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oExMenu.Template = "Background(1) = 16777216" // oExMenu.Background(1) = 16777216
oExMenu.Appearance = 2
oExMenu.Border = 1
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

44:
Can I change the visual appearance for separator items

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oExMenu.Template = "Background(0) = 16777216" // oExMenu.Background(0) = 16777216
oExMenu.Items.ToString = "Popup[id=10](Item 1[id=20],[sep][id=30],Item 2[id=40])"

43:
Can I change the forecolor for the tooltip

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ToolTipDelay = 1
oExMenu.ToolTipWidth = 364
oExMenu.Template = "Background(66) = 255" // oExMenu.Background(66) = 255
oExMenu.Items.ToString = "ToolTip [id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50])"
oExMenu.Items.item(10).Tooltip = "Click the <b>ToolTip</b> and so the drop down menu will be shown"
oExMenu.Refresh()

42:
Can I change the background color for the tooltip

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ToolTipDelay = 1
oExMenu.ToolTipWidth = 364
oExMenu.Template = "Background(65) = 255" // oExMenu.Background(65) = 255
oExMenu.Items.ToString = "ToolTip [id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50])"
oExMenu.Items.item(10).Tooltip = "Click the <b>ToolTip</b> and so the drop down menu will be shown"
oExMenu.Refresh()

41:
Can I change the default border of the tooltip, using your EBN files

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ToolTipDelay = 1
oExMenu.ToolTipWidth = 364
oExMenu.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oExMenu.Template = "Background(64) = 16777216" // oExMenu.Background(64) = 16777216
oExMenu.Items.ToString = "ToolTip [id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50])"
oExMenu.Items.item(10).Tooltip = "Click the <b>ToolTip</b> and so the drop down menu will be shown"
oExMenu.Refresh()

40:
Can I change the font for the tooltip

Dim oExMenu as P
Dim var_StdFont as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ToolTipDelay = 1
var_StdFont = oExMenu.ToolTipFont
	var_StdFont.Name = "Tahoma"
	var_StdFont.Size = 14
oExMenu.ToolTipWidth = 400
oExMenu.Items.ToString = "ToolTip [id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50])"
oExMenu.Items.item(10).Tooltip = "Click the <b>ToolTip</b> and so the drop down menu will be shown"
oExMenu.Refresh()

39:
I've seen that the width of the tooltip is variable. Can I make it larger

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ToolTipWidth = 328
oExMenu.Items.ToString = "ToolTip [id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50])"
oExMenu.Items.item(10).Tooltip = "Click the <b>ToolTip</b> and so the drop down menu will open"
oExMenu.Refresh()

38:
How do I let the tooltip being displayed longer

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ToolTipPopDelay = 10000
oExMenu.Items.ToString = "ToolTip [id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50])"
oExMenu.Items.item(10).Tooltip = "Click the <b>ToolTip</b> and so the drop down menu will opene"
oExMenu.Refresh()

37:
How do I disable showing the tooltip for all control

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ToolTipDelay = 0
oExMenu.Items.ToString = "No-ToolTip [id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50])"
oExMenu.Items.item(10).Tooltip = "Click the <b>ToolTip</b> and so the drop down menu will opene"
oExMenu.Refresh()

36:
How do I show the tooltip quicker

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ToolTipDelay = 1
oExMenu.Items.ToString = "ToolTip [id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50])"
oExMenu.Items.item(10).Tooltip = "Click the <b>ToolTip</b> and so the drop down menu will opene"
oExMenu.Refresh()

35:
How do I open the menu as user clicks the menu

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.OpenOnClick = 1
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

34:
How do I open the menu as cursor hovers the menu bar

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.OpenOnClick = 0
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

33:
Can I make the menu partialy visible

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Visibility = 90
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

32:
How do I remove or clear the accelerator keys

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Debug = .t.
oExMenu.Items.ToString = "Item &1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.AddAcelerator(10,49,.f.,.t.,.f.)

31:
How do I add or assign an accelerator key to an item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Debug = .t.
oExMenu.Items.ToString = "Item &1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
oExMenu.AddAcelerator(10,49,.f.,.t.,.f.)

30:
How can I load the items from a file
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex

29:
How can I save the items to a file
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex

28:
How do I put a picture on the center of the control

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Picture = oExMenu.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
oExMenu.PictureDisplay = 17

27:
How do I resize/stretch a picture on the control's background
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Picture = oExMenu.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
oExMenu.PictureDisplay = 49

26:
How do I put a picture on the control's center right bottom side
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Picture = oExMenu.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
oExMenu.PictureDisplay = 34

25:
How do I put a picture on the control's center left bottom side
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Picture = oExMenu.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
oExMenu.PictureDisplay = 32

24:
How do I put a picture on the control's center top side
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Picture = oExMenu.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
oExMenu.PictureDisplay = 1

23:
How do I put a picture on the control's right top corner
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Picture = oExMenu.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
oExMenu.PictureDisplay = 2

22:
How do I put a picture on the control's left top corner
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Picture = oExMenu.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
oExMenu.PictureDisplay = 0

21:
How do I put a picture on the control's background
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Picture = oExMenu.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")

20:
Is there any function to display the item's identifiers

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Debug = .t.
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

19:
How do I find an item giving its name

Dim oExMenu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
' oExMenu.item("Item 1").Bold = .t.
var_item = oExMenu.item("Item 1")
oExMenu.TemplateDef = "dim var_item"
oExMenu.TemplateDef = var_item
oExMenu.Template = "var_item.Bold = True"

oExMenu.Refresh()

18:
How do I find an item giving its identifier

Dim oExMenu as P
Dim var_item as local

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"
' oExMenu.item(10).Bold = .t.
var_item = oExMenu.item(10)
oExMenu.TemplateDef = "dim var_item"
oExMenu.TemplateDef = var_item
oExMenu.Template = "var_item.Bold = True"

oExMenu.Refresh()

17:
How do I enable or disable the control

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Enabled = .f.
oExMenu.Items.Add("Item 1")
oExMenu.Refresh()

16:
How do I refresh the control
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Items.Add("Item 1")
oExMenu.Refresh()

15:
How do I change the color to highligth the selected item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.HighLightBorderColor = 255
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

14:
How do I change the drop down, popup menu foreground color

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.PopupForeColor = 255
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

13:
How do I change the drop down, popup menu background color

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.PopupBackColor = 255
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

12:
How do I change the control's shadow color

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ShadowColor = 255
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

11:
How do I place the control on vertical

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.OpenMode = 1
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

10:
How do I change the control's appearance
Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Appearance = 2
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

9:
How do I change the control's appearance

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Appearance = 0
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

8:
How do I change the visual appearance effect for the selected item, using EBN

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oExMenu.SelBackColor = 16777216
oExMenu.SelForeColor = 0
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

7:
How do I change the colors for the selected item

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.SelBackColor = 0
oExMenu.SelForeColor = 16777215
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

6:
How do I change the control's foreground color

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.ForeColor = 255
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

5:
How do I change the control's background color

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.BackColor = 13158600

4:
How can I change the control's font

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Font.Name = "Tahoma"
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

3:
How do I change the drop down menu's border

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.Border = 1
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

2:
How do I change the control's border, using your EBN files

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oExMenu.MenuBarBorder = 16777216 '1000000 + 
oExMenu.Border = 16777216 '1000000 + 
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"

1:
How do I change the control's border

Dim oExMenu as P

oExMenu = topparent:CONTROL_ACTIVEX1.activex
oExMenu.MenuBarBorder = 1
oExMenu.Items.ToString = "Item 1[id=10](SubItem 1[id=20](SubItem 1.1[id=30],SubItem 1.2[id=40]),SubItem 2[id=50]),Item 2[id=60](SubItem 1[id=70],SubItem 2[id=80])"