Is there any way to move the menu bar data from project to project?
Transfer Menu Bar?
Collapse
X
-
Make the script an external text (lua) file and use Application.LoadScript....or am I misunderstanding you?
Comment
-
-
This depends on how you create the menus. I was fixated at creating the menus at runtime, but, either way
Comment
-
-
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.Attached FilesLast edited by Roboblue; 09-30-2005, 02:02 PM.
Comment
-
-
AXXESS,
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).
Would that work for you?
Desmond.
Comment
-
-
Runtime Menu Example
Originally posted by Robobluerhosk
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?Attached Files
Comment
-
-
Since copying and pasting a node works, create a temporary root node, make everything in the menu subordinate to that, and then copy and paste the root node.
Tip: if you want to preserve the clipboard data for use in another project, paste it into a text file. Then you can just copy that text into the menu editor.
Once you've copied the menu, move the original menu items out of the root menu (back to their original positions) and then delete the root node.--[[ Indigo Rose Software Developer ]]
Comment
-
Comment