In the design environment.... for example, if the same menu will be used across multiple projects. It would be nice to be able to apply the menu data from "project 1" to the menu bar in the existing "project 2"....
I created a Menu Bar template that set the bar up for using a minimize and exit menus on the far right. Then, when I know I am going to start a project with a menu bar, I open the bar template project, save as the NEW project name I want. Then just +/- menus as I need to keep the formating correct with the # of menus and size of window. You have to do a Preview to see the format correctly.
If anyone wants it, here is the apz. it took about 30 minutes to set it up the first time.
Use an Application.GetMenu action (in your new project with the menu you want) to save your menu to a text file (Use a TextFile.WriteFromTable action).
Then, use an Application.SetMenu action (in your existing project you want to add the menu to) to set the menu to the structure you created in your new app (use a TextFile.ReadToTable action to get the data from the text file to a table).
Could you give an example of the script for a menu bar for creating at runtime?
Is there a way to export just the menubar script once the project has been created?
This is just another way to do it. Thanks to "Dermot" for a technical issue I had There's an example in the Help Guide, but I expanded on it a bit. I just like the idea of editing one script (or use it across projects, as requested in the first post). Doesn't require that the "Menu Bar" be activated under settings. The code could probably be cleaned up, but it works