In contrast to the menu component itself, you need to explicitly name menu items as you add them to the form. You can do this in one of two ways:
Sample captions and their derived names
Component caption |
Derived name |
Explanation |
&File |
File1 |
Removes ampersand |
&File (2nd occurrence) |
File2 |
Numerically orders duplicate items |
1234 |
N12341 |
Adds a preceding letter and numerical order |
1234 (2nd occurrence) |
N12342 |
Adds a number to disambiguate the derived name |
$@@@# |
N1 |
Removes all non-standard characters, adding preceding letter and numerical order |
|
N2 |
Numerical ordering of second occurrence of caption with no standard characters |
As with the menu component, Delphi adds any menu item names to the form's type declaration, and those names then appear in the Component list.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|