Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to disable methods once there is another but modal form active?

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!

On a form I do have pictures with it's name bound to a table.
Once I want a large image of that picture
I am instanciating a form showing the picture in large-format. That window is modal.
The original window should keep 'dead' until the modal window has been closed. How do I detect that situation and lock methods (e.g. skiprecord) on the original form?

KR
-Bart
 
If the form you open is modal, you shouldn't have to do anything to keep the user out of the original form. That's what modal means.

Tamar
 
Tamar,

Fully understand. In my situation the original form has 'disabled'caption. Meanwhile when I have mouse on that form the form's mousewheelmethod catch that mousewheelmovement....

KR
-Bart
 
Although you can scroll the disabled form, you can't actually click on anything. It does appear that the Scrolled method fires, though, so you'll want to be sure not to have code that would cause trouble there.

Tamar
 
Tamar,
Yes indeed I have to prevent the methods to be executed caused by mousewheel. So What I'm wondering is: Is there a way to 'catch' the situation where there's a modal-form active.
Maybe an API since also the menu-items are disabled at that time.
KR
-Bart
 
Maybe set a flag in the calling form when you call the modal form and check it in the relevant routines.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top