Solved

How to create delphi menu style

Posted on 2004-03-24
10
733 Views
Last Modified: 2010-08-05
How do you create a menu (main menu) like the one delphi 7 has ?
0
Comment
Question by:Bosanac
  • 3
  • 3
  • 2
  • +2
10 Comments
 
LVL 12

Expert Comment

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

Expert Comment

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

2.) Right CLick on it and choose menu designer


Shane
0
 
LVL 22

Expert Comment

by:mnasman
ID: 10672066
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
 

Expert Comment

by:d1kGroup
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!
0
 

Author Comment

by:Bosanac
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?


0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 11

Expert Comment

by:shaneholmes
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

Shane
0
 

Author Comment

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

Expert Comment

by:d1kGroup
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
0
 

Author Comment

by:Bosanac
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?
0
 

Accepted Solution

by:
d1kGroup earned 25 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!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now