El_Pablo Posted February 11, 2010 Posted February 11, 2010 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
bcooney Posted February 11, 2010 Posted February 11, 2010 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
El_Pablo Posted February 11, 2010 Author Posted February 11, 2010 (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 February 11, 2010 by Guest
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now