Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5397 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

Is it possible to install a menu set by name? The purpose of this is to refresh the menu set if the user change the language of the project interface.

Here is what my script would look like :)


scriptname  menu_refresh

Freeze window

$menuName =  Get (CustomMenuSetName)

Install Menu Set ["Standard Filemaker menus"]

Install Menu Set [$menuName]

Thanks for anyhelp

Posted

Your script seems to get the current menu set name, then install FM standard, then install the previous menu set.

Why not a branching script:

if (gLanguageID = 1)

Install Menu Set, Language1MenuSet

ElseIF

etc.

Else

etc.

End If

Posted (edited)

I'm just trying to find an efficient way to create the script. It's for maintenance "easyness". I don't want to go and modify the script each time I add a new layout with a specific menu set.

The project I'm working on has more than 50 layouts from which the user can use. Sure there are not 50 menu sets, but still.

BTW, I think I have found a workaround.

If I use the "[File Default]" menu set I guess this will use the layout default.


scriptname  menu_refresh

Freeze window

Install Menu Set ["Standard Filemaker menus"]

Install Menu Set ["File Default"]

This script seems do what I intended to. Refresh the current menu set.

Edited by Guest

This topic is 5397 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.