Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

PopupMenu.NSButtonMBS as NSButtonMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS CocoaControls Plugin 9.7 Yes No No No No
Function: Creates a NSButtonMBS object for the given control.
Example:
MsgBox PopupMenu1.NSButtonMBS.className
Notes: This way you can manipulate Cocoa controls directly.

Some examples which use this method:

Feedback, Comments & Corrections

PopupMenu.NSPopUpButtonMBS as NSPopUpButtonMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS CocoaControls Plugin 10.0 Yes No No No No
Function: Creates a NSPopUpButtonMBS object for the given control.
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: This way you can manipulate Cocoa controls directly.

Some examples which use this method:

Feedback, Comments & Corrections

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




Links
MBS Xojo PDF Plugins