Non-Modal Popup Form

D

Dave Ruhl

From a full-screen form I'm trying to open a small, fixed
sized popup form. From the popup form I want to open a
full screen print preview of a report (selected on the
popup). My problem is that my popup stays in front of
the report preview. I want to keep the popup form open,
but behind the report preview. I've tried all the
settings I can think of (popup on/off, modal on/off, open
with acDialog). Can this be done ? Thanks.
 
A

Albert D. Kallal

Hum, I would open the small form as model, but NOT popup. This will ensure
this little form stays on top of the that big main maxed form.

Now, when you launch the report full screen, you should be ok. When the
report is closed, you will return to that little form. It will have to be
closed to get back to the main form, but this probably a good idea anyway.

So, make your full screen model also. None of them are to be acDialog.

Also, the following little trick is also a big help:

Remove the min/max commands from the little form. When you remove the
min/max commands, the little form CAN NOT inherit the max command from the
report. In fact, this also protects the setting of forms below the little
form!
 
G

Guest

Thanks for the response. However, if I don't open the
small form with acDialog it opens full screen, regardless
of it's border type (Dialog, Sizable, etc...). I do have
the min-max off, and I've tried it with control box
on/off, close button on/off, modal on/off, popup on/off.
Still no luck.
 
D

Dave Ruhl

I finally got it to work (somewhat) by making the small
form a Non-Modal Popup with no min-max, close, or control
box. When I open the report I minimize the popup in
code. The popup can then be maximized by double-clicking
the minimized title bar, or in code if the main form
tries to open it. Kind of cheesy but it works. Visual
Foxpro handles this so much easier... sigh...
 
A

Albert D. Kallal

I find the best solution is to NOT max any of your forms. That tends to
solve just about all problems. And, if you don't re-size your screens, then
making them max on large screens don't look very good anyway.

I certainly always max the reports, but as mentioned, if that modal form
that launched the form has the min/max buttons removed, then the setting of
the report does NOT get back to the ms-access windows.

So, I find the best soltion is to NOT fight the ms-access interface, but go
with the flow. As a result, I don't use maxed forms anymore.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top