class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectNodeCanvasItemControl MenuBar
A horizontal menu bar that creates a menu for each PopupMenu child.

A horizontal menu bar that creates a menu for each PopupMenu child. New items are created by adding PopupMenus to this node. Item title is determined by Window.title, or node name if Window.title is empty. Item title can be overridden using set_menu_title().

bool flat<>():bool

Flat MenuBar don't display item decoration.

String language<>():String

Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.

bool prefer_global_menu<>():bool

If true, MenuBar will use system global menu when supported.

Note: If true and global menu is supported, this node is not displayed, has zero size, and all its child nodes except PopupMenus are inaccessible.

Note: This property overrides the value of the PopupMenu.prefer_native_menu property of the child nodes.

int start_index<>():int

Position order in the global menu to insert MenuBar items at. All menu items in the MenuBar are always inserted as a continuous range. Menus with lower start_index are inserted first. Menus with start_index equal to -1 are inserted last.

bool switch_on_hover<>():bool

If true, when the cursor hovers above menu item, it will close the current PopupMenu and open the other one.

TextDirection text_direction<>():TextDirection

Base text writing direction.

int get_menu_count<>():int

Returns number of menu items.

PopupMenu get_menu_popup<>( int menu=, menu:int=, ):PopupMenu

Returns PopupMenu associated with menu item.

String get_menu_title<>( int menu=, menu:int=, ):String

Returns menu item title.

String get_menu_tooltip<>( int menu=, menu:int=, ):String

Returns menu item tooltip.

bool is_menu_disabled<>( int menu=, menu:int=, ):bool

Returns true, if menu item is disabled.

bool is_menu_hidden<>( int menu=, menu:int=, ):bool

Returns true, if menu item is hidden.

bool is_native_menu<>():bool

Returns true, if system global menu is supported and used by this MenuBar.

void set_disable_shortcuts<>( bool disabled=, disabled:bool=, ):void

If true, shortcuts are disabled and cannot be used to trigger the button.

void set_menu_disabled<>( int menu=, menu:int=, bool disabled=, disabled:bool=, ):void

If true, menu item is disabled.

void set_menu_hidden<>( int menu=, menu:int=, bool hidden=, hidden:bool=, ):void

If true, menu item is hidden.

void set_menu_title<>( int menu=, menu:int=, String title=, title:String=, ):void

Sets menu item title.

void set_menu_tooltip<>( int menu=, menu:int=, String tooltip=, tooltip:String=, ):void

Sets menu item tooltip.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...