API Window management

G

Guest

Can API windows be made "modular"

In Access 2003 ...

I am using the API code at http://www.mvps.org/access/api/api0061.htm
curtesy of Terry Kreft and Stephen Lebans to allow the changing of Form and
Report Font settings.

It works great - Clicking on one of two fields on my modifyer form opens the
Windows API "Font" and the code does the rest assuming that the user selects
OK or Cancel on the API window.

My problem is that this API window may exist behind my Switchboard form
(which defaults to full screen, and I want to keep it that way) if the user
were to click elsewhere (ie on the switchboard form).
If one or more instances of the API window are left open then the
application cannot be closed correctly.

Is it possible to address these windows akin to an Access Form -
o If open dont allow another to open
o If open and an Access event occurs - then close the API window
o On open of these windows always make them modular so that they must be
actioned correctly before an access event occurs.

Here's hoping you guys can help me ...
Cheers,
Dave.
 
D

Dirk Goldgar

In
Dave180 said:
Can API windows be made "modular"

I think you mean "modal".
In Access 2003 ...

I am using the API code at http://www.mvps.org/access/api/api0061.htm
curtesy of Terry Kreft and Stephen Lebans to allow the changing of
Form and Report Font settings.

It works great - Clicking on one of two fields on my modifyer form
opens the Windows API "Font" and the code does the rest assuming that
the user selects OK or Cancel on the API window.

My problem is that this API window may exist behind my Switchboard
form (which defaults to full screen, and I want to keep it that way)
if the user were to click elsewhere (ie on the switchboard form).
If one or more instances of the API window are left open then the
application cannot be closed correctly.

Is it possible to address these windows akin to an Access Form -
o If open dont allow another to open
o If open and an Access event occurs - then close the API window
o On open of these windows always make them modular so that they
must be actioned correctly before an access event occurs.

The API font and color are normally application-modal, I believe,
meaning that they would not normally go behind your switchboard form, or
allow other activities on your switchboard form to take place, unless
your switchboard form has its PopUp property set to Yes. Is that the
case?

If your switchboard is PopUp, will your application work properly if you
change it so that it isn't PopUp?

If your switchboard is not PopUp, and you're finding that the font and
color dialogs aren't displayed as modal, then I don't know what's going
on.
 

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