MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

PopupMenu.NSButtonMBS as NSButtonMBS
method, Cocoa Controls, MBS CocoaControls Plugin (NSButton), class PopupMenu,
Plugin version: 9.7, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

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:

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

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:

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




Links
MBS FileMaker Plugins