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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restoring VFP from being minimized

Status
Not open for further replies.

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)
 
Hi!

Strange behavior that I do not know about. Do you have any timers active in that application? What is setting fof _VFP.AutoYield at the moment window is restored badly? Do you use any ActiveX controls in that application?

Finally, it would be very good if you post here a simple sample app that reproduce that problem with notification of version of VFP used to observe this behaviour.
Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
I have not experienced what you describe. However, if I understand you correctly, I use almost the exact environment for my applications (without the globals <g>). I shrink my _SCREEN down to a size I like for a leadin screen, put a graphic on it for a title and make all of my forms DESKTOP=.t., modal type forms and it works just great. You may wish to make all of your forms DESKTOP= .t. and see what happens. Don
dond@csrinc.com

 
Tom,

I actually can't get it to reproduce in any app that I have written from scratch. That's why I'm confused, hehe.

Thanks for the suggestions, both of you, I'll take a look when I get into work today.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top