Shows or hides menu items from the log control context menu.
Object.ShowContextMenuItem ( enContextMenuItem, bShow )
The ShowContextMenuItem method syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ALog |
ALog control |
|
enContextMenuItem |
Val enumALogContextMenuItem |
An integer specifying the item in the context menu. |
|
bShow |
Val Bool |
A boolean expression specifying whether the menu items are shown or hidden from the log control context menu. |
enumALogContextMenuItem can be one or a combination of the following:
|
Name |
Value |
Description |
|
alogContextMenuItemSelectAll |
0x01 |
Select All |
|
alogContextMenuItemCopy |
0x02 |
Copy |
|
alogContextMenuItemPrint |
0x04 |
|
|
alogContextMenuItemRefresh |
0x08 |
Refresh |
|
alogContextMenuItemClear |
0x10 |
Clear |
|
alogContextMenuItemSave |
0x20 |
Save |
|
alogContextMenuItemSaveAs |
0x40 |
SaveAs |
|
alogContextMenuItemFind |
0x80 |
Find |
|
alogContextMenuItemViewSource |
0x100 |
ViewSource |
bShow can be one of the following:
|
Value |
Description |
|
True * |
The menu item is shown. |
|
False |
The menu item is hidden. |
More than one menu item can be selected by using the OR operation.
The following example will hide the ViewSource and Clear items for the ALog control:
alog1.ShowContextMenuItem(alogContextMenuItemViewSource OR alogContextMenuItemClear, FALSE )