Solved

"multilevel" menus

Posted on 1998-10-29
4
146 Views
Last Modified: 2010-04-06
How to make "multilevel" menus
(like in Delphi IDE, when you click File/Reopen menu)?
0
Comment
Question by:bor061297
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 50 total points
ID: 1344996
When designing the menu in the TMainMenu compoentn editor press Ctrl-Right Arrow to create a sub menu descending from a menu item

Cheers,

Raymond.
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1344997
Or...

If you want to create it dynamically, set the parent of the new menu item to be the menu item you want it to be a sub menu of.

eg: MyMenuItem := TMenuItem.Create(Self); // Where self = the form
     MySubMenuItem.Insert(MyMenuItem, Index); // Where index is where in the menu you want it to appear

You also need to set the OnClick event etc for the new menu item...

Cheers,

Raymond.
0
 
LVL 3

Expert Comment

by:bryan7
ID: 1344998
when you are creating the menu, Right click on it with the mouse
and click on "Create Sub-menu"

bryan

0
 
LVL 1

Expert Comment

by:duke_n
ID: 1344999
or something like that:
Tmenuitem.add(MI:tmenuitem);
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

772 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