Jezzepi said:
I have a pop-up window that will call another pop-up. I want to have the
child pop-up remain on top of the parent when the parent has the focus.
Does anyone know how to do this using the API or some other method?
Note: both forms must be pop-up.
Are you sure they both need to be?
A popup form is a form that stays on top of the existing forms, but DOES NOT
HAVE THE FOCUS!!!
So, use of the popup setting is ONLY needed if you need to display the popup
form, but CONTINUE TO EDIT AND USE existing forms. For some types if
information display or wizard forms, or even training mode help, you would
use a popup. For general data entry forms, you do NOT need a popup form.
So, why does the first form need to be popup? Why not use a model form? (do
NOT use a acDialog form!!..they are different!!).
If you make a form model, and it calls another form (also model), then that
2nd form will have to either launch more forms...or be closed to return tot
he previous form. The popup setting is NOT required here.
I have often seen a stray popup setting in a applications. Then, because it
stays on top..the developer starts a wild goose chase as they begin to set
form after form as a popup. I don't think your original main form that
launches the popup needs to be popup.....
Can't all of the regular forms be model...and then the popup form setting
can be correctly used to stay on top when you need other forms to have the
focus...but the popup form remain on top?
Correct use of acDiaog forms, model forms, and popup forms should give you
what you need here...but you have to use the right form at the right time,
or the whole thing becomes a mess......