SetMenuItemEnabled
- Last UpdatedNov 17, 2021
- 1 minute read
Use the SetMenuItemEnabled method to control if a specific command in the shortcut menu is enabled.
Syntax
[Result=] aaHistClientTrend.SetMenuItemEnabled(integer itemNumber, integer bEnabled);
Parameters
itemNumber
The index number of the command. Numbering starts at 0.
bEnabled
Specify a non-zero number to enable or zero to disable.
Return Value
Returns True if the menu item is enabled; otherwise, returns False.
Remarks
If you specify -1 as the itemNumber parameter, the method sets the status of all items in the menu.
Item numbers are as follows:
|
Number |
Corresponding menu item |
|---|---|
|
0 |
File |
|
2 |
Single Tag Mode |
|
3 |
Highlight Tag |
|
5 |
Next Tag |
|
6 |
Previous Tag |
|
7 |
Add Annotation |
|
8 |
Delete Tag |
|
10 |
Color |
|
12 |
View |
|
13 |
Show |
|
15 |
Scale Tag |
|
16 |
Scale All Tags |
|
18 |
Rubber Band Scaling |
|
19 |
Apply Rubber Band To All Tags |
|
21 |
Pan & Zoom |
|
23 |
Copy |
|
24 |
Save Data |
|
25 |
|
|
26 |
Properties |
|
28 |
Chart Type |
|
29 |
Tools |
|
30 |
Live Mode |
|
31 |
Stacked Traces |
|
32 |
Refresh |
|
33 |
Update To Current Time |