« FileMaker Conference … | Home | .fmp[x]Berlin 2015 st… »

Colors for Menus in FileMaker

We got new command for menus in FileMaker to color the menu entries on OS X. This allows you to add color to menu entries.

Of course you can combine this with a custom font, underline, bold or italic text styles.

# create menu
Set Variable [$menu; Value:MBS("Menu.CreateMenu")]
#
# create menu items...
Set Variable [$item; Value:MBS("MenuItem.CreateMenuItem"; "Hello World")]
Set Variable [$r; Value:MBS("Menu.AddItem"; $menu; $item)]

#
Set Variable [$item; Value:MBS("MenuItem.CreateMenuItem"; "Red Color")]
Set Variable [$r; Value:MBS("MenuItem.ApplyColor"; $item; "#FF0000")]
Set Variable [$r; Value:MBS("Menu.AddItem"; $menu; $item)]

#
Set Variable [$item; Value:MBS("MenuItem.CreateMenuItem"; "Green Color")]
Set Variable [$r; Value:MBS("MenuItem.ApplyColor"; $item; "#00FF00")]
Set Variable [$r; Value:MBS("Menu.AddItem"; $menu; $item)]

#
Set Variable [$item; Value:MBS("MenuItem.CreateMenuItem"; "Blue Color")]
Set Variable [$r; Value:MBS("MenuItem.ApplyColor"; $item; "#0000FF")]
Set Variable [$r; Value:MBS("Menu.AddItem"; $menu; $item)]

Coming soon in the next plugin version... Claris FileMaker Plugin
02 05 15 - 04:24