In Layout Setup-->General, what is the setting for Menu Set?
Having a single OnLayoutEnter script attached to all layouts isn't a bad idea. At most, it will take an hour to change them all. You could probably whip it out in 20 minutes.
Each layout has an associated menu set...I think I'll need to follow your advice.
"Be wary of strong drink. It can make you shoot at tax collectors... and miss." --- Robert A. Heinlein
The way I do it is probably not the most efficient, but when custom menu's where introduced my solution was already built, so I guess I used the easiest method I could think of at the time without having to change hundreds of layouts..
All layouts are set to use default.
Each time a new menu is required, I install it via script.
This works for me since each layout is only accessible via script's too.
Within each appropriate script, the "install menu" step is wrapped in an if statement, checking the logged in user. If I am logged in, my dev menu is installed as file default, otherwise the custom menu's are installed as an when required via script.
I haven't found any reason to change it and I only need to edit one script to change the menu for a number of layouts, but then.. I only have a 3 alternative menus.
Quite agree that scripted meuns is the best method - this was a quick repair job I was doing and deciphering the solution too far longer than the actual fixes.
"If you tell the truth, you don't have to remember anything. " --- Mark Twain