Solved

"multilevel" menus

Posted on 1998-10-29
4
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
delphi parse string to params 3 181
Firemonkey DbLookupComboBox equivalent ? 2 79
Microsoft Access 97 and Delphi XE2 9 85
Firemonkey Listview item popup menu ? 1 78
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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

710 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