Platforms to show: All Mac Windows Linux Cross-Platform

class Popupmenu
class, Menu, class Popupmenu, Not console safe, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Gives access to the MenuMBS of the PopupMenu.
Example:
dim m as MenuMBS

m=popupmenu1.MenuMBS
m.italic(1)=true
m.bold(2)=true
m.underline(3)=true
m.Condense(4)=true
m.extend(5)=true
m.Outline(6)=true
m.shadow(7)=true
m.Enabled(8)=true
m.enabled(9)=false
Popupmenu.MenuMBS as MenuMBS
method, Menu, MBS REALbasic Util Plugin (Menu), class Popupmenu, Not console safe, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns a MenuMBS object to access the Menuitems.
Example:
dim m as MenuMBS

m=popupmenu1.MenuMBS
m.italic(1)=true
m.bold(2)=true
m.underline(3)=true
m.Condense(4)=true
m.extend(5)=true
m.Outline(6)=true
m.shadow(7)=true
m.Enabled(8)=true
m.enabled(9)=false
Notes:
It looks like there is a bug in RB5 which forces this function to always return nil.
Seems not to work in RB 2007 well.
See the "FontPopupMenu.rb" example for a different usage.

Some examples which use this method:

Next items

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




Links
MBS REAL studio Chart Plugins - Christians Software aus Nickenich