I guess this is what I have to do. I'll have to search the menuitems for direct DO FORM commands and call seperate procedures for them... ugly, but probably the best soltuion.
Walter,
>>> BTW, the bug also occurs on a ON KEY LABEL xx DO FORM Myform
>
>Have you tried something like this?
>
>
>ON KEY LABEL xx CallMyForm()
>
>Function CallMyForm
> DO FORM Myform
> Return .T.
>EndFunc
>
>
>Or this:
>
>
>ON KEY LABEL xx Do CallMyForm
>
>Procedure CallMyForm
> DO FORM Myform
> Return .T.
>EndProc
>