Visual Basic 6 Menu Properties: (Variable) Name, Caption, Mnemonic Letter/Access Key, Level, Shortcut/Accelerator Key, Index, Checked, Enabled, WindowList, Visible, PopupMenu.
VB6 Menu Components Design Table Sample
| Name |
Caption |
Level |
Shortcut |
| mnuFile |
&File |
0 |
None |
| itmNew |
&New |
1 |
None |
| itmOpen |
&Open |
1 |
None |
| itmSave |
&Save |
1 |
None |
| sepOne |
- |
1 |
None |
| itmSettings |
Se&ttings |
1 |
None |
| itmSettings1 |
Settings 1 |
2 |
None |
| itmSettings2 |
Settings 2 |
2 |
None |
| itmAbout |
&About |
1 |
None |
| sepTwo |
- |
1 |
None |
| itmExit |
E&xit |
1 |
None |
| mnuEdit |
&Edit |
0 |
None |
| itmUndo |
&Undo |
1 |
Ctrl+Z |
| sepThree |
- |
1 |
None |
| itmCut |
Cu&t |
1 |
Ctrl+X |
| itmCopy |
&Copy |
1 |
Ctrl+C |
| itmPaste |
&Paste |
1 |
Ctrl+V |
| sepFour |
- |
1 |
None |
| itmSelectAll |
Select &All |
1 |
Ctrl+A |
Notes:
-
For menu begin with the prefix mnu in the Name.
- For sub menu begin with the prefix itm in the Name.
- For separator line menu add hyphen (-) character in the Caption.
- For separator line menu begin with the prefix sep in the Name.
- For Mnemonic Letter/Access (Character) Key/Accelerator Key, put an ampersand before the character/letter you want to use. the ampersand indicates that the letter F in File will be underlined.
- Each application can have only one instance of an accelerator key combination. If you use Ctrl+N for New, you can't use Ctrl+N for Open too.
Bibliography
Microsoft® Visual Basic® 6.0 Professional Step by Step;Michael Halvorson, et al;Microsoft Press
Visual Basic 6 How to Program;Harvey M. Deitel, et al.
Visual Basic 6 Master Reference: The Definitive Visual Basic Reference;Clayton Walnum
Visual Basic 6: The Complete Reference (Complete Reference Series);Noel Jerke;Osborne
Programming Microsoft® Visual Basic® 6.0;Francesco Balena;Microsoft Press
Using Visual Basic 6;Bob R;Que Macmillan Computer Publishing
Visual Basic 6.0 Programming By Examples;Sergey Skudaev
Visual Basic 6.0 (Quick Study Computer);Inc. BarCharts
program design, software design, application design, vb6 object
Related Post