Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
Menus on top-level forms not only provide form navigation, they can provide initial clues about the design of your application.
To add a menu to a top-level form
Create a top-level form menu. For more information about creating menus for top-level forms, see Designing Menus and Toolbars.
Set the form's ShowWindow property to 2 – As Top-Level Form.
In the Init event of the form, run the menu program and pass it two parameters:
DO menuname.mpr WITH oForm, lAutoRename
oForm is an object reference to the form. In the Init event of the form, pass THIS as the first parameter.
lAutoRename specifies whether or not a new unique name is generated for the menu. If you plan to run multiple instances of the form, pass .T. for lAutoRename.
For example, you can call a menu called
mySDImenuwith this code:DO mySDImenu.mpr WITH THIS, .T.
See Also
Creation of Single- and Multiple-Document Interfaces | Hiding the Main Visual FoxPro Window | Extending Forms with Form Sets | Creating Forms | Addition of Objects to Forms | Adding Visual FoxPro Containers