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

x
?
Solved

"multilevel" menus

Posted on 1998-10-29
4
Medium Priority
?
162 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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
Integration Management Part 2
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…
Suggested Courses

972 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