Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using menu from modal form
Message
From
16/01/2001 16:38:16
 
 
To
16/01/2001 08:52:07
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00458308
Message ID:
00464423
Views:
53
>>> How I can select my own menu item when modal form is active ? <<
>
>Add a property called lMenuDone to your modal form. This code in the form's Paint method:
>
>
>IF NOT This.lMenuDone
>   PUSH MENU _MSYSMENU
>   This.lMenuDone = .T.
>   DO MyMenu.prg
>   DO MyMenu.prg
>ENDIF
>
>
>Then you can issue a POP MENU in the form's Unload.

Marcia,

why i must run

DO MyMenu.prg

twice?

One line seems to be sufficient.
Is it possible to use vfp standard _msysmenu (e.q.standard copy, edit,paste pads) ? I do'nt want to define new menu of each modal form.

It it possible to run this code in some other event than paint (Load event)?
I haven't never used paint.
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform