IF !EMPTY(this.cMenuPad) AND TYPE("goApp.oMenu")="O" AND !ISNULL(goApp.oMenu) =EVAL("goApp.oMenu."+this.cMenuPad+".Show()") ENDIFThe reverse occurs in the destroy
... =EVAL("goApp.oMenu."+this.cMenuPad+".Hide()") ...You could put the following into the Activate of your form:
IF !EMPTY(this.oBizObj.cMenuPad) AND TYPE("goApp.oMenu")="O" AND !ISNULL(goApp.oMenu) =EVAL("goApp.oMenu."+this.oBizObj.cMenuPad+".Show()") ENDIFand this into the Deactivate of your form:
IF !EMPTY(this.oBizObj.cMenuPad) AND TYPE("goApp.oMenu")="O" AND !ISNULL(goApp.oMenu) =EVAL("goApp.oMenu."+this.oBizObj.cMenuPad+".Hide()") ENDIFThis should give you the behavior you are requesting.