Solved

Creating a menu under a menu.

Posted on 1998-09-24
6
181 Views
Last Modified: 2012-05-04
Is it possible to create a menu under a menu item.  Just like netscape Communicator has File - New (with an arrow) and underneath new, there are 5 menu items.

If this is possible to do in Delphi 3 and 4, please let me know how.
Thanks
0
Comment
Question by:psabourin
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:inter
ID: 1340791
Hi,
I think you want to create menues at runtime- Other wise just put a TMainMenu component on form and dbl click on it and write it on design time- So open your delphi help search for TMenuItem and see example 2
regards, igor
0
 
LVL 1

Expert Comment

by:borup
ID: 1340792
In the Menu Designer you just rightclick to create a Submenu.

Borup
0
 
LVL 1

Accepted Solution

by:
duke_n earned 50 total points
ID: 1340793
If you mean at designtime and you have delphi 3(I don't know anything else):
1.put a menu on form and enter the menu editor(dblclick).
2.select an item which you want to have a cascadind menu.
3.press [CTRL]+[->].
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:borup
ID: 1340794
Errh. Isn't that just a shortcut? You're telling him to do exactly as I told in my comment. The only difference is to use a shortcut instead of rightclicking and then selecting Submenu.
0
 
LVL 1

Expert Comment

by:duke_n
ID: 1340795
Whops..
sorry borup, I didn't notice that...
0
 
LVL 1

Expert Comment

by:duke_n
ID: 1340796
Here is somethin' for runtime
var
mi:Tmenuitem;
begin
mi:=Tmenuitem.create(mainmenu1);
Menuitem1.add(mi);
end;

Regards,
   Nukem
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

912 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

21 Experts available now in Live!

Get 1:1 Help Now