>>> 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