General information
Category:
Forms & Form designer
Mark,
You need to disable the other forms when you want the top level forms to mimic the modal behavior. Here's the code I use in the Init() and Unload() methods of my base class of modal forms. Note, the code assumes that all forms are part of my application object.
Init()
FOR EACH loForm IN THIS.Parent.Objects
IF loForm.BaseClass = 'Form' AND loForm.Name <> THIS.Name
loForm.Enabled = .F.
ENDIF
ENDFOR
Unload()
* Re-enable all of the forms that were deactivated in the init of this form.
FOR EACH loForm IN THIS.Parent.Objects
IF loForm.BaseClass = 'Form' AND loForm.Name <> THIS.Name
loForm.Enabled = .T.
ENDIF
ENDFOR
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only