BuildPopup (XNode Ability)

From LabVIEW Wiki
Jump to: navigation, search
BuildPopup (XNode Ability)
List of XNode Abilities
Public Name:BuildMenu
Deprecated, prefer:BuildMenu3

This ability is used to describe your popup menu. Point is the location of the user's popup click, and is relative to the top-left corner of your XNode's bounds. You may use this point to make your popup sensitive to the location that was clicked. Show Standard Items? tells LabVIEW whether it should include the standard popup items that are included on every node in LabVIEW.

PopUp Specification is an array of clusters describing the menu. Item: A string that will appear in the menu. StartSub: The current string will be the header for a pull right menu. EndSub: The current string will be the last item in a pull right menu. Checked: The current item will have a check mark next to it. Disabled: The current item will be diabled and greyed out. Separator: The current item will be a separator. Item string is not displayed.

The index from this array will be an input to SelectPopup.

Remember to localize the strings in your menu.

Default behavior: Only show standard items.

This ability does not provide UI and OS messages are not handled.

See also