Version 0.04

MenuTooltipFX

Author T201016 & Source by Steve Laming

Index < BLD_MenuItemText - BLD_MenuManagerUtils >


Class : BLD_MenuManager    ShortName : BLD_MenuManager

Events:

CustomAction(MC As BLD_MenuCustom)

Action(MI As BLD_MenuItemText)

SelectedChanged(MCB As BLD_MenuCheckBox)

MenuOpening(M As Menu)


Properties:

MenuType(MenuType As String)
Get / Set MenuType one of the constants: MENUTYPE_MENU or MENUTYPE_CONTEXTMENU

Menu As Object

Tag(Tag As Object)
Get/Set a tag on the menumanager object

Visibled As Boolean

Enabled(State As Boolean)


Methods:

Initialize(Module As Object, Text As String, EventName As String)
Initializes the object Default menuType is MENUTYPE_MENU

AddItems(Items As List, Clear As Boolean)
Add text or Menuitems items to the menu, as an array, Pass a '-' to add a text seperator FM.AddItems(Array As String("Test","-","Test1"))

SimpleMenuList(Simple As String) As List
Create a simple menu List from a string array Use '-' for a separator. Pass the result to MM.AddItems

SimpleMenuArray(Simple As String) As BLD_MenuItemText()
Create a simple menu Array from a string array No Seperators. Pass the result to MM.AddItems Configure extras e.g. A(2).SetTag("Tag 2")

MenuSubMenu(Title As String, SubMenu As List) As MenuSubMenuType
Create a sub menu with title and content

MenuSeparator As Object
Create and return a SeperatorMenuItem Object

MenuText(Title As String) As BLD_MenuItemText
Create and return a TextMenuItem Object

MenuCustom(N As Node) As BLD_MenuCustom
Create and return a BLD_MenuCustom Object

MenuCheckBox(Text As String) As BLD_MenuCheckBox
Create and Return a CheckMenuItem and set a changelistener SelectedCChanged(MSB As BLD_MenuCheckBox)

MenuTitle(Text As String) As BLD_MenuCustom
Create and return a MenuTitle Object, make it not hide when clicked

NewFontAwesome(FA As Char, Color As Paint) As Node
Create and return a Label containing the defined FontAwesome Character

NewMaterialIcon(FA As Char, Color As Paint) As Node
Create and return a Label containing the defined MaterialIcon Character

NewImage(FilePath As String, FileName As String) As ImageView
Helper to create an image view from a filepath/filename to add to the menu item

SetStyleSheet(FilePath As String, FileName As String)

SetVisibled(Visibled As Boolean)
Set the visibled state for the menu item. Returns the menu item

SetCheckbox(Tag As String, State As Boolean)
Pragmatically set the Selected state of a checkbox contained in this menu. Can be in any sub menu level.

GetCheckbox(Tag As String) As Boolean

MenuItemBold(MenuBars As MenuBar, MenuTexts As String, Bold As Boolean)