Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 819
  • Last Modified:

How to create delphi menu style

How do you create a menu (main menu) like the one delphi 7 has ?
0
Bosanac
Asked:
Bosanac
  • 3
  • 3
  • 2
  • +2
1 Solution
 
andrewjbCommented:
Drop a menu component onto the form.....!
0
 
shaneholmesCommented:
1.) Drop a TMainMenu component from the Standard Tab on the Component Pallette

2.) Right CLick on it and choose menu designer


Shane
0
 
Mohammed NasmanSoftware DeveloperCommented:
Hi

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
http://www.shagrouni.com/english/software/xpmenu.html
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
d1kGroupCommented:
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!
0
 
BosanacAuthor Commented:
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?


0
 
shaneholmesCommented:
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

Shane
0
 
BosanacAuthor Commented:
I get it ...there's how to on that page also...
I will try this tomorrow..
0
 
d1kGroupCommented:
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
0
 
BosanacAuthor Commented:
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?
0
 
d1kGroupCommented:
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!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now