HideBuiltInCtrlMenuItem
int HideBuiltInCtrlMenuItem (int panelHandle, int controlID, int builtInMenuItemID);
Purpose
Hides a built-in menu item from the menu owned by the specified control.
Only table and tree controls own menus.
Parameters
| Input |
| Name |
Type |
Description |
| panelHandle |
integer |
Specifier for a particular panel that is currently in memory. You obtain this
handle from LoadPanel, NewPanel, or DuplicatePanel. |
| controlID |
integer |
The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by NewCtrl or DuplicateCtrl. |
| builtInMenuItemID |
integer |
builtInMenuItemID must be one of the following constants:
| Constant Name |
Constant Value |
Control Type |
| VAL_GOTO |
–2 |
Table |
| VAL_SEARCH |
–3 |
Table, Tree |
| VAL_SORT |
–4 |
Table, Tree |
| VAL_EXPAND_SUBTREE |
–5 |
Tree |
| VAL_COLLAPSE_SUBTREE |
–6 |
Tree |
| VAL_EXPAND_ALL |
–7 |
Tree |
| VAL_COLLAPSE_ALL |
–8 |
Tree |
|
Return Value
| Name |
Type |
Description |
| status |
integer |
Return value indicating whether the function was successful. A negative number indicates that an error occurred.
| Code |
Error Message String |
| xx |
Success |
|