Admin Production ni-theme
Current Publication

HideBuiltInCtrlMenuItem

LabWindows/CVI

HideBuiltInCtrlMenuItem

int HideBuiltInCtrlMenuItem (int panelHandle, int controlID, int builtInMenuItemID);

Purpose

Hides a built-in menu item from the menu owned by the specified control.

Supported Controls

You can use HideBuiltInCtrlMenuItem with the following controls:

Parameters

Input
Name Type Description
panelHandle int Specifier for a particular panel that is currently in memory. You can obtain this handle from functions such as LoadPanel and NewPanel.
controlID int 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 functions such as NewCtrl and DuplicateCtrl.
builtInMenuItemID int The built-in menu item to hide. builtInMenuItemID must be one of the following constants:

Constant Name Constant Value Control Type
VAL_GOTO –2 Table
VAL_FIND –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
VAL_PLOT_COLOR –9 Graph, strip chart
VAL_PLOT_STYLE –10 Graph, strip chart
VAL_PLOT_POINT_STYLE –11 Graph, strip chart
VAL_PLOT_LINE_STYLE –12 Graph, strip chart
VAL_PLOT_BGCOLOR –13 Graph
VAL_PLOT_ORIGIN –14 Graph
VAL_PLOT_FONT –15 Graph
VAL_PLOT_FILL_COLOR –16 Graph
VAL_PLOT_VISIBLE –17 Graph, strip chart
VAL_PLOT_RENAME –18 Graph, strip chart
VAL_PLOT_LINE_THICKNESS –19 Graph, strip chart
VAL_FIND_NEXT –20 Table, tree
VAL_FIND_PREV –21 Table, tree

Return Value

Name Type Description
status int Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later

Examples

Refer to the following examples that use the HideBuiltInCtrlMenuItem function:

  • userint\colview.cws

    Open example
  • userint\events.cws

    Open example
  • userint\gridview.cws

    Open example
  • userint\TreeBusDigitalGraph.cws

    Open example
  • userint\treeList.cws

    Open example
  • userint\treemenu.cws

    Open example