Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run a menu within in top level form form
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00082471
Message ID:
00082651
Views:
33
>>>My application has a top level form with a SDI menu.
>>>How do I attach a new menu to a child form when the form runs?
>>>When I try do menu.mpr in the child forms init procedure the menu appears in the Foxpro screen window
>>>
>>>Many thanks for any help
>>>
>>>Paul Oxley
>>
>>Paul,
>>
>>You need to make sure that the menu you created is marked as running in a top-level form in the menu designer and then you need to pass a reference of the top-level form to the menu program. DO MyMenu WITH oTopLevelForm.
>>
>>Steve
>
>
>Many thanks for your quick reply.
>
>I have no problems with the SDI menu in the top level form. It is when I try to run a menu in a child of the top level form ie (1 - in top level form)
>
>I put a do menu.mpr command in the child forms init method, but it displays the menu in the foxpro main window. My SDI menu is unaffected.
>
>Many thanks for any help
>
>Paul Oxley

You might see if passing a reference to the form that you are trying to display this in would make it work. DO menu.mpr WITH THISFORM.

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform