Information générale
Titre:
Active window problem
Versions des environnements
Visual FoxPro:
FoxPro Windows
Hi all,
I have an old app that runsd under VFP 7 but is really 2.6 style code.
I have attempted to find this problem for 3 days to no avail.
Basically I have a bunch of windows defined at the programs start.
This is a touchscreen app so basically when the user touches a part of the screen the appropriate window is displayed. Anytime I display a particular window I do a SHOW (cWindowName) TOP.
I can repeat the problem on demand but because the program uses an inkey at it's "heart", the debugger is about useless. I have tried using MESSAGEBOX but it makes the program behave differently so that's not an option either.
My problem: I have 2 windows (left main and right main), that were SHOW'ed as mentioned above. These windows each cover 1/2 of the whole computer screen. So you have the left half of yyour screen covered by MainWindowLeft and the right half of your screen covered by MainWindowRight.
Now you have 2 more smaller windows, one on the left and one on the right that were again SHOW'd as mentioned above. So now you have 4 windows that you can see and the 2 smaller windows are sitting on their respective sides on top of the MainWindow's.
I don't know if you can define windows as modal using the 2.6 style window definition, but I thought I should mention that none of these are modal.
I believe windows is getting confused as to which window is on top. I am on the left side and touch the smaller window that is on top. I know it is on top. It's titlebar is the only window highlighted. It also happens to be the last window that was SHOW'd TOP. A command in the code at the point this window is touched also indicates this is the WONTOP.
BUT, when I touch that window (or click on it with the mouse/same difference), the window underneath it becomes the TOP window. I have tried everything. Any ideas?
Thanks,
John
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement