
This allows you to pop up a menu disconnected from any window. If view is nil, the location is interpreted in the screen coordinate system. If item is nil, the menu is positioned such that the top left of the menu content frame is at the given location. Let’s get started Method 1: Initialize an array using an Initializer List An initializer list initializes elements of an array in the order of the list. The top left corner of the specified item (if specified, item must be present in the receiver) is positioned at the specified location in the specified view, interpreted in the view's own coordinate system. Returns true if menu tracking ended because an item was selected, and false if menu tracking was cancelled for any reason. View: The view to display the menu item over.

Another useful method to initialize a char array is to assign a string value in. Location: The location in the view coordinate system to display the menu item. To declare a char variable in C++, we use the char keyword. Item: The menu item to be positioned at the specified location in the view. you need to use NSMenuItemMBS subclasses with action event to get an event for which item was selected. R = m.popUpMenuPositioningItem( nil, nil, v)


Dim v as NSViewMBS = window1.PushButton1.
