The Preferences Menu
Posted: Mon Mar 08, 2010 9:23 pm
I am in need of a good tutorial on Menus. From previous discussions I have learned that if you put "Help" as the last item of your last menu (separated from the other with a dash item) and then script it in the on menuPick event in the button for the last menu button, it will work. Working means it will show up as the first item in the Application Menu and respond to your choice of it. That is what I am experiencing.
Similarly, I thought the Preferences menu was supposed to be the last item in you second menu. Again separated from the others with a dashed item. It's script would then be placed in the menuPick event for the button of the second menu. I get no response from the menu item when I take that choice even though I have a script for it. In the step-debug mode, no part of that script seems to get executed. I have tried using the name "Preferences" and "Preferences..." and still get no action with either. With either choice it seems to always appear as "Preferences..." in the menubar at the top of the screen (Mac). If I try to change the name of that item to "Preferences***", the MenuBuilder gives me a warning message that it is supposed to be "Preferences".
I tried placing "Preferences" after "Help" in the last menu and it shows up as "Preferences" in the Application menu right under Help. It also responds to the script which I place in the menuPick event for the last menu button. I would be happy with that except that now the Application menu shows "Help" followed by "Preferences" (both working) and then "Preferences...". The latter does nothing when chosen.
If there are no good tutorials available it might be helpful to get a reference to a, not too complex, application that utilizes menus well and perhaps even demonstrate how menues are handled bot for Mac and Windows. I would need code for this.
Thanks for any suggestions,
Larry
Similarly, I thought the Preferences menu was supposed to be the last item in you second menu. Again separated from the others with a dashed item. It's script would then be placed in the menuPick event for the button of the second menu. I get no response from the menu item when I take that choice even though I have a script for it. In the step-debug mode, no part of that script seems to get executed. I have tried using the name "Preferences" and "Preferences..." and still get no action with either. With either choice it seems to always appear as "Preferences..." in the menubar at the top of the screen (Mac). If I try to change the name of that item to "Preferences***", the MenuBuilder gives me a warning message that it is supposed to be "Preferences".
I tried placing "Preferences" after "Help" in the last menu and it shows up as "Preferences" in the Application menu right under Help. It also responds to the script which I place in the menuPick event for the last menu button. I would be happy with that except that now the Application menu shows "Help" followed by "Preferences" (both working) and then "Preferences...". The latter does nothing when chosen.
If there are no good tutorials available it might be helpful to get a reference to a, not too complex, application that utilizes menus well and perhaps even demonstrate how menues are handled bot for Mac and Windows. I would need code for this.
Thanks for any suggestions,
Larry