Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Queries the list of IDs for the menu items.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Menu | 5.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
menu | The reference to the menu. Please create one with Menu.CreateMenu. | $menu |
Returns list of IDs or error.
Loop over all menuitems in a menu and change font size:
While (
[
// get items in menu
items = MBS( "Menu.Items"; $menu );
index = 1;
count = MBS( "Menu.NumberOfItems"; $menu )
] ;
// loop till last item
index ≤ count ;
[
// get the current item
item = GetValue(items; index);
// change font size
r = MBS( "MenuItem.SetFontSize"; item; 16 );
// and continue with next item
index = index + 1
] ; 0 )
Created 1st December 2014, last changed 12nd March 2021
Feedback: Report problem or ask question.