Article ID: 132680
Article Last Modified on 2/15/2000
RELEASE BAR _Mwi_Hide OF _MwindowIf you are hiding the form under program control, use the Hide and Show methods of the form instead of the HIDE WINDOW and SHOW WINDOW commands. Using these methods maintains the modality of the form.
PUBLIC oMyform
oMyform=CREATEOBJECT('frmForm')
oMyform.CAPTION="Click the Hide command button"
oMyform.SHOW()
=MESSAGEBOX("Click OK to Show the Form")
* Uncomment the code below and comment the SHOW WINDOW line to
* show the form as modal
*oMyform.show()
SHOW WINDOW (WOUTPUT())
?"Form is not modal"
DEFINE CLASS frmForm AS FORM
WINDOWTYPE=1 && Define a modal form
ADD OBJECT cmd1 AS cmdHide
ENDDEFINE
DEFINE CLASS cmdHide AS COMMANDBUTTON
CAPTION="Hide"
PROCEDURE CLICK
* To resolve the issue:
* Uncomment the code below and comment the HIDE WINDOW line
* ThisForm.Hide
HIDE WINDOW (WONTOP())
ENDDEFINE
Additional query words: VFoxWin
Keywords: KB132680