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

Restore windows all in VFP6 affecting child window

Status
Not open for further replies.

travelspeed

Programmer
Dec 17, 2004
4
GB
Hi Everyone.

Hope someone out there can answer my question.

I have the following code (shortened for easy viewing) in VFP6:

Code:
define window a
activate window a
define window b
activate window b
define window c in window b
activate window c
save windows all to c:\savewin
clear windows
restore windows all from c:\savewin

At this point the child window c is no longer shown in window b but has become a parent window displayed near the top of the main screen.

I have checked using wchild() and wparent() and found that all windows are now parents.

Why and how can I return the windows to their original state of a & b being a parent and c a child in window b?

Hopefully yours
Mike

 
Mike,
This is really FoxPro code, NOT VFP code. From the Hacker's Guide:
One of the mutant branches of the Xbase evolution toward windows management that died a fitting death along the way. Retained in Visual FoxPro for "backward compatibility."
You really need to change this procedure to use forms and save off the appropriate properties.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top