Xojo Developer Conference
Join us from 25th to 27th April 2018 in Denver.

Platforms to show: All Mac Windows Linux Cross-Platform

NSPopUpButtonMBS class

Super class: NSButtonMBS

class, Cocoa Controls, MBS CocoaControls Plugin (NSButton), class NSPopUpButtonMBS,
Plugin version: 10.0, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: An NSPopUpButton object controls a pop-up menu or a pull-down menu from which a user can select an item.
Example:
// get cocoa view for the popupmenu
dim p as NSPopUpButtonMBS = PopupMenu1.NSPopUpButtonMBS

// find a menu entry
dim it as NSMenuItemMBS = p.itemAtIndex(0)

// get a picture
dim pic as Picture = LogoMBS(500)
dim img as new NSImageMBS(pic)
img.setSize 16,16

// and assign icon
it.image = img
Notes:
The NSPopUpButton class defines objects that implement the pop-up and pull-down menus of the graphical user interface.

An NSPopUpButton object uses an NSPopUpButtonCell object to implement its user interface.

Note that while a menu is tracking, adding, removing, or changing items on the menu is not reflected.
Subclass of the NSButtonMBS class.

Arrow Position Constants

Constant Value Description
NSPopUpArrowAtBottom 2 Arrow is drawn at the edge of the button, pointing toward the preferredEdge.
NSPopUpArrowAtCenter 1 Arrow is centered vertically, pointing toward the preferredEdge.
NSPopUpNoArrow 0 Does not display any arrow in the receiver.

Super class NSButtonMBS

Super class NSControlMBS

Super class NSViewMBS

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples which use this class:


The items on this page are in the following plugins: MBS Cocoa Plugin, MBS CocoaBase Plugin, MBS CocoaControls Plugin.


NSPopUpButtonCellMBS   -   NSPredicateMBS




Links
MBS Xojo PDF Plugins