Provides methods that let you manipulate menus, such as:
Activating a menu.
Selecting a menu.
Changing a menu's background and foreground colors.
Adds an item to the menu.
object.AddItem(
ItemName As String)
The name of the item you want to add.
Boolean. Returns TRUE if successful; otherwise, FALSE.
See example in Example.
Defines and selects a menu window.
object.Define(
Row As Integer,
Column As Integer
[,MaxHeight As Integer])
The starting row for the menu.
The starting column for the menu.
Optional. The number of menu items in the menu.
Boolean. Returns TRUE if successful; otherwise, FALSE.
See example in Example.
Returns the specified menu item.
object.GetItem(
ItemNumber As Integer)
The number of the item to get from the menu.
MenuItem.
See example in Example.
Activates the defined menu window.
object.Select(
[ItemNumber As Integer])
[,TimeOut As Integer]])
Optional. The menu item number to highlight upon activation.
Optional. The time, in milliseconds, before the item number is returned.
Integer.
See example in Example.
Sets the background color of the text window.
object.SetBackColor(
Color1 As Integer,
Color2 As Integer)
The background color for selectable items.
The background color for highlighted items.
Boolean. Returns TRUE if successful; otherwise, FALSE.
See example in Example.
Sets the foreground color of the text window.
object.SetForeColor(
Color1 As Integer,
Color2 As Integer)
The foreground color for selectable items.
The foreground color for highlighted items.
Boolean. Returns TRUE if successful; otherwise, FALSE.
See example in Example.