Adding Menus and Major Setbacks
Posted: Wed Jan 20, 2010 8:08 pm
I have a stack, actually a substack to my 'splash' stack, for which I wanted to add menus. I deleted all but one card and then added a series of drop down menu buttons that I made into a group with background behavior so that they would appear on future cards. I gave them some functionality and did some testing with them that seemed to work. The menus/buttons just sat there near the top of the cards and did their thing.
At the same time I did some testing of making a stand alone application and noticed that the only menu it had was called 'Portfolio Manager' and it had a Quit and other standard functionality. There was nothing in the About because I didn't know how to get it there. None of my menus showed in the Menubar either even though they worked from their positions on the card.
Then I started looking at the menu tutorials in the Resource center. They were not too helpful but I did come across the 'set the menubar' and put the following into the stack script:
This is where things start getting a little 'fuzzy'. As I recall it would not allow me to use 'set the menuBar of this stack to group "Menus". At any rate when I got it to run somehow I ended up with a menubar that started with Revolution and then had my other menu items. To make a long story short by the time I got the Revolution menu looking normal (I was in the IDE), my stack had suffered severe damage. Although I can see all the objects of my application while looking at the Application Browser, a good many of them have disappeared from the card. I can no longer see the navigation buttons that were at the bottom of the card or the buttons that were to be my menus near the top. They don't show up by making the card larger either. I cant seem to figure out how to use the Size and Position option of the Inspector to make them show and I fear that my Geometry settings are all damaged.
Can this be salvaged? If I have to go back to an older version are there good ways to salvage my code. I'm feeling quite discouraged.
Thanks in advance for any advice you can give.
Larry
At the same time I did some testing of making a stand alone application and noticed that the only menu it had was called 'Portfolio Manager' and it had a Quit and other standard functionality. There was nothing in the About because I didn't know how to get it there. None of my menus showed in the Menubar either even though they worked from their positions on the card.
Then I started looking at the menu tutorials in the Resource center. They were not too helpful but I did come across the 'set the menubar' and put the following into the stack script:
Code: Select all
on OpenStack
set the menuBar of this stack to "Menus"
end OpenStack
Can this be salvaged? If I have to go back to an older version are there good ways to salvage my code. I'm feeling quite discouraged.
Thanks in advance for any advice you can give.
Larry