|
-
Jan 17th, 2006, 12:04 PM
#1
Re: Is this form modal?
 Originally Posted by tward_biteme1
You can check to see if you main form is enabled or not. If there is a form displayed modal then the form that brought it up is disabled.
The form really isn't disabled, you just can't do anything with it, or any other window, until the modal form has been unloaded.
-
Jan 17th, 2006, 12:15 PM
#2
Re: Is this form modal?
We had a need to "know" if a modal form was popped up on the screen - because we were subclassing for the APPACTIVATE message...
And if we messed with FORM focus with a MODAL form on the screen, VB choked.
We ended up creating a global boolean to track whenever a MODAL form was put on the screen so we could test that boolean.
One odd place this was required was when we started printing with the PRINTER object and the user had a PDF-writer as the default printer. That PDF-writer would pop-up a file dialog box to ask for output filename. So we needed to set that global boolean at the start of a report as well.
-
Jan 17th, 2006, 12:30 PM
#3
Re: Is this form modal?
 Originally Posted by Hack
The form really isn't disabled, you just can't do anything with it, or any other window, until the modal form has been unloaded.
Well, actually the owner form is disabled. However the Enabled property in VB isn't set but you can check if the owner form has the WS_DISABLED style bit set.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|