How to create delphi menu style

Posted on 2004-03-24
Medium Priority
Last Modified: 2010-08-05
How do you create a menu (main menu) like the one delphi 7 has ?
Question by:Bosanac
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +2
LVL 12

Expert Comment

ID: 10669880
Drop a menu component onto the form.....!
LVL 11

Expert Comment

ID: 10670338
1.) Drop a TMainMenu component from the Standard Tab on the Component Pallette

2.) Right CLick on it and choose menu designer

LVL 22

Expert Comment

by:Mohammed Nasman
ID: 10672066

I think he's asking about the Delphi 7 Menu style, which the same like office xp style
use XP menu component, free with sourcecode
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 10676159
you must use a ActionBand!
you can find a full example in <DelphiHome>\Demos\ActionBans\
you can find there 3 example of how you can use ActionBand
if you don't understand that examples send me a mail and i send back a full comment example!

Author Comment

ID: 10687166
mnasman - there are 2 files in the zip file:
xpmenu.dcr and *.pas .Sorry for my stupidity but how do you use them????
How do you install this component?

LVL 11

Expert Comment

ID: 10687195
choose file open, open up the *.pas file.

The choose component, install component - browse to  the package you want it to go to, or create a new package

Click ok

then compile


Author Comment

ID: 10687269
I get it ...there's how to on that page also...
I will try this tomorrow..

Expert Comment

ID: 10687354
you don't need other components... delphi 7 has compoenets for this menu style! (like office, delphi..).
you can find examples of this in demos folder of delphi 7, subfolder ActionBands.
or try this example: http://scs.ubbcluj.ro/~dp28791/ActionBands.zip

Author Comment

ID: 10696522
d1 - I am lost on this one.
I drop actionmainmenu on form and action manager where i add actions
bu at runtime I do not see a thing?

Accepted Solution

d1kGroup earned 100 total points
ID: 10698190
bosnac - i know it's a litle more complicated but try to folow this steps:

1. drop a ActionMainMenu on your form
2. drop a ActionManager
3. on ActionMainMenu set ActionManager property to ActionManager
4. on ActionManager add an ActionBar in ActionBars property (ActionBarItem)
5. on ActionBarItem set ActionBar property to ActionMainMenu
5. on ActionBarItem add Items in Items property....(ActionBarItem)
6. you can add Items in this new ActionBarItems... and so on to create submenus...
7. for items (ActionBarItem) that you want to do something(an action) you must set a ActionProperty to some action already added in ActionManager

to add an action in ActionManager just dblclik on ActionManager and then click newAction.
if you want more action to be in the same category just set Category property...

i hope you'll understand
p.s. do all og this in design time!

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question