February 11, 201015 yr 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
February 11, 201015 yr 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
February 11, 201015 yr Author 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 February 11, 201015 yr by Guest
Create an account or sign in to comment