Delphi 2010 Action Manager & Main Menu Bar?

Drag and drop a ActionManager, a ActionMainMenuBar and a ImageList on your form Doubleclick the ImageList, you get the Imagelist Editor. Use the Add-button to add your icons (make sure their sizes are the same as the Height and Width properties that are set in the ImageList-control) Set the Images-property of the ActionManager to your ImageList and set the ActionManager-property of your ActionMainMenuBar to your ActionManager Doubleclick the ActionManager, go to the tab 'Actions' and add new actions by the 'New'-button Click each Action in the ActionManager and set each action's properties, at least: ImageIndex (to choose an Icon), Caption and Category Note: A Category will serve as a main item in the menu (like File, Edit and View) and each Action will serve as menu item (like Save, Save as, Load). So set the Category property of all actions you want to belong to one main menu item to the same name.

For instance give the actions 'Save' and 'Load' the category 'File' and give the actions 'Undo' and 'Redo' the category 'Edit Doubleclick each Action in the ActionManager. You'll get the code editor. Type the code you want to perform when the user clicks this menu item.

If you don't type any code or comment, the menu item will automatically be disabled when the application is running Now drag the categories from the ActionManager to the ActionMainMenuBar That's it.

Drag and drop a ActionManager, a ActionMainMenuBar and a ImageList on your form. Doubleclick the ImageList, you get the Imagelist Editor. Use the Add-button to add your icons (make sure their sizes are the same as the Height and Width properties that are set in the ImageList-control).

Set the Images-property of the ActionManager to your ImageList and set the ActionManager-property of your ActionMainMenuBar to your ActionManager. Doubleclick the ActionManager, go to the tab 'Actions' and add new actions by the 'New'-button. Click each Action in the ActionManager and set each action's properties, at least: ImageIndex (to choose an Icon), Caption and Category.

Note: A Category will serve as a main item in the menu (like File, Edit and View) and each Action will serve as menu item (like Save, Save as, Load). So set the Category property of all actions you want to belong to one main menu item to the same name. For instance give the actions 'Save' and 'Load' the category 'File' and give the actions 'Undo' and 'Redo' the category 'Edit'.

Doubleclick each Action in the ActionManager. You'll get the code editor. Type the code you want to perform when the user clicks this menu item.

If you don't type any code or comment, the menu item will automatically be disabled when the application is running. Now drag the categories from the ActionManager to the ActionMainMenuBar. That's it.

RR-NL - Thank you. The key is "7. Now drag the categories..." – Cape Cod Gunny Nov 26 '09 at 10:56.

I think Actions, Action Lists And Action Managers by Brian Long is a great start to explore the realm of actions.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions