I had a similar problem and moving the POP MENU _msysmenu to the form's unload event seemed to work. Don't know why though.
Tracy
>I include the following code in some of my modal forms in order to get certain menu functionality:
>* Form Init
>PUSH MENU _MSYSMENU
>
>* Form GotFocus
>DO cpp.mpr
>
>* Form Destroy
>POP MENU _MSYSMENU
>
>This works fine in some of the forms but in some, even though the POP MENU _MSYSMENU command fires ( or at least it is executed ) the main menu is not restored. The basic properties of the forms are the same. What would cause this?
>
>Thanks,
>Bill
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"