PDA

View Full Version : Article: Adding a Menu Bar System


Brett
08-29-2006, 02:24 PM
Having a menu bar in your application will provide a familiar and convenient way for your users to interact with your software. Here is how you do it:

1. Select Project > Menu Bar from the menu.
2. Check the "Show menu bar" option.
3. Customize the menu to have the options and commands that you want. Pay special attention to the Menu ID property of each command as you will need it in order to handle the menu commands.
4. Click OK to close the Menu Bar screen.
5. Select Page > Properties from the menu.
6. On the Script tab, select the "On Menu" event.
7. Enter the following text to handle specific menu commands (adjust the menu ID accordingly:

if e_ID == 101 then
Dialog.Message("Notice", "You selected menu item 101");
end

8. Click OK to accept the script and then select Publish > Preview from the menu and try out the menu command the you handled.

You can use this method to handle all of your menu commands. Just add additional if..then..end blocks for the other commands. Also note that you do not have to handle menu commands on each page, you can handle them for the entire application using the "On Menu" event of the project actions (select Project > Actions) from the menu. For more details about using menus bars, search for "Menu Bar" in the help file.

Intrigued
08-29-2006, 02:43 PM
Brett, do believe there will be the option to adjust the color of the Menubar sooner or later in the lifecycle of AMS? Several times I wanted to use the Menubar but the color clashed with the rest of my theme.

TIA

Intrigued
12-02-2006, 10:34 PM
(bump)

I know you guys/gals are busy, but do you see this feature being added anytime soon? (say the next Major release)

TIA

Dermot
12-03-2006, 03:17 AM
and don't forget icons.:yes

Intrigued
12-03-2006, 11:11 AM
... and WinXP/Vista theme. ... and the ability to place items easily not only from the left but from the right side of the menu (like an Exit button).

Thus, a drag-n-drop menu would rock!

Intrigued
12-04-2006, 08:31 PM
Brett, you gave an inch, we are just taking the mile.

:o