« Xojo 64-bit notes | Home | Raspberry Pi support … »

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...
02 05 15 - 04:24
No comments

  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.