Part 1: Specifying the Objects that Shortcut Menu Plug-Ins Affect

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

You must specify which front panel or block diagram objects to apply a shortcut menu plug-in. Complete the following steps to specify the objects that the shortcut menu plug-in affects.

Note Note  Generate the files you need to create a shortcut menu plug-in by running the following utility VI: labview\resource\plugins\PopupMenus\Create Shortcut Menu Plug-In From
  1. Open the type definition (x.ctl, where x is the name of the plug-in) that the utility VI generates.
  2. Edit the Affected Items control, which contains the objects or refnum types that the shortcut menu plug-in affects. Initially, the Affected Items control contains an array of the GObject refnum type, which means the plug-in appears in the shortcut menu of any GObject refnum. You can edit the Affected Items control in the following ways:
    • Add an object by adding an array of a refnum type.
    • Remove an object by deleting an array.
    • Choose a different object by right-clicking an array and selecting Select VI Server Class and selecting a refnum type under the Generic hierarchy.
    Note Note  To identify the refnum types of an object, you can use the Lookup All Shortcut Menu Tags and Types plug-in that LabVIEW provides.
  3. Select File»Apply Changes to apply changes and propagate the changes to the plug-in VIs that use the type definition.
  4. Select File»Save to save changes to the type definition.
Understanding Shortcut Menu Plug-Ins Part 2: Building the Shortcut Menu Using Plug-Ins

Related Information

Identifying Refnum Types and Menu Item Tags of Objects

Creating Custom Controls, Indicators, and Type Definitions

Creating Type Definitions and Strict Type Definitions

VI Server Class Hierarchy


Not Helpful