Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Creating a menu under a menu.

Posted on 1998-09-24
6
Medium Priority
?
217 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 200 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

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!

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

927 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