Locking main form

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi group, have a form (form1) and on my form I have a command button. The
command button opens up another form (form2). When form 2 is shown I would
like Form1 to be lockled. The only way the user can interact with form1
again is to close form 2. How would I go about this?
 
Just make form 2 a POP-UP and MODAL form. It will keep the focus until
closed and no other objects will be available.
 
DO NOT use the popup setting if you don't need it.

Blindly using the popup setting will cause the MOST GREIF you can imagine.
by setting one form to popup, then all of sudden you find that other forms
also need this setting, and your application rapidly deteriorates into a dog
chasing its tail as you make a complete mess of things.

So, yes...set the form to model...but don't use popup.

Popup forms are forms that STAY on top of everything else (like a wizard
form, or a information form, or the clippie from office). Thus a popup form
is designed to stay on top of everything, BUT NOT REQUIRED TO HAVE THE
FOCUS!!. So, popup forms are even legitimate when you launch a model form,
and the popup will stay on top.

It is important to note that when you launch a model form, you must close
that model form to return to the previous form (this exactly what you
need....and in fact, you could as a precaution make the main form model
also. Any time you have a sequence of forms that open one after another..and
you need the user to close them..and return back the same way...you use the
model setting). A popup is not the solution here..as they ALWAYS stay on
top...regardless of other forms settings....

You start throwing in a few popup forms..and next thing you know...you now
have to set "all" forms to popup, as additional forms opened don't now open
on top.

Miss use of the popup setting is a sure fire way to make a complete mess of
your appcation. I can't tell you how strongly this will cause you nothing
but grief if you blindly use this setting.

By they way, while we are at this..you might as well learn the difference
between a dialog form, and a model form (again, they are grand canyon of
difference, and have complete different behaviors). You can read about a
model form, and a "dialog" form here:

http://www.members.shaw.ca/AlbertKallal/Dialog/Index.html

Considering the HORRIBLE ramifications of miss-using a popup form..I likely
should add notes to the above link to explain the pits fall of using popup
forms when you don't need them.
 
Back
Top