chpicker
Programmer
- Apr 10, 2001
- 1,316
This is a strange one, and I think I might have an idea, but I thought I'd share it here and see if anyone has experienced it.
In the inherited application I have the responsibility of maintaining, it uses the main VFP window and a custom menu system to open various forms. Because of the poor use of global variables everywhere (many of the forms use the same global variables *groans*), all of the forms are set to MODAL and the menu system is disabled until the form is closed.
Whenever I minimize the application to work with another window, then try to restore it (either with ALT+TAB or clicking the taskbar button for it), it goes through the Restore Window animation, but doesn't come back to the foreground. I then have to ALT+TAB to another window and back to get it to come to the foreground.
Is this problem caused by the fact that a modal form is active? If so, is there any way around this? If not, does anyone have any idea what else might be causing the problem?
(Eventually, I'd like to rewrite this app properly, but it would take months, and my boss is more interested in getting all of the features in it and the bugs worked out than doing a complete rewrite)
In the inherited application I have the responsibility of maintaining, it uses the main VFP window and a custom menu system to open various forms. Because of the poor use of global variables everywhere (many of the forms use the same global variables *groans*), all of the forms are set to MODAL and the menu system is disabled until the form is closed.
Whenever I minimize the application to work with another window, then try to restore it (either with ALT+TAB or clicking the taskbar button for it), it goes through the Restore Window animation, but doesn't come back to the foreground. I then have to ALT+TAB to another window and back to get it to come to the foreground.
Is this problem caused by the fact that a modal form is active? If so, is there any way around this? If not, does anyone have any idea what else might be causing the problem?
(Eventually, I'd like to rewrite this app properly, but it would take months, and my boss is more interested in getting all of the features in it and the bugs worked out than doing a complete rewrite)