I have a "2 - Top level" form (form1) with a menu. I want to disable the main form (form1) when I call another form (form2) from the menu and enable the (form1) again after the user closed the second form (form2).
If your 2nd form is set Modal then it will prevent the user from leaving it to go back to the 1st form until use of the 2nd form is done.
Another thing you can consider using is ThisForm.Hide/ThisForm.Show
If, as you leave the 1st form, you Hide it and, upon return, you Show it, you encourage the user to not even try to utilize the 1st form.
If your forms both are top level forms, then you can't make them modal, even setting them modal does not make them act modal. You should then consider hiding other forms.
And you can inactivate menus with the SKIP clause. Create a variable glMenuInactive and set it .t. whenever you want the menu inactive, create the menus with SKIP FOR glMenuInactive
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.