"multilevel" menus

How to make "multilevel" menus
(like in Delphi IDE, when you click File/Reopen menu)?
bor061297Asked:
Who is Participating?
 
rwilson032697Connect With a Mentor Commented:
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
 
rwilson032697Commented:
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
 
bryan7Commented:
when you are creating the menu, Right click on it with the mouse
and click on "Create Sub-menu"

bryan

0
 
duke_nCommented:
or something like that:
Tmenuitem.add(MI:tmenuitem);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.