Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disappearing Grid Data
Message
From
20/03/2001 22:47:02
 
 
To
20/03/2001 16:26:01
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00487021
Message ID:
00487109
Views:
14
>When i deactivate a window with grid, the data in the grid disappears. I use local views and am in the same data session. It doesnt matter what window i activate (even the command window) the data in the grid disappears as soon as the window is deactivated.
>some additional info. the data reappears when the window is activated again. also when any other controls in the same window are activated, the grid data dissappears. i need the data to stay on the screen when the grid is deactivated. it only seems to happen with this window. my main app window with grid data seem to operate ok.
>Anybody have any suggestions?

A SWAG - use the form's LockScreen to prevent the changes to the form from appearing when the Form Deactivates, and reenable it when the Form Activates:
* In the Activate Method
thisform.LockScreen = .f.

* In the Deactivate Method
thisform.LockScreen = .t.
This prevents the Form from being visibly updated when Deactivated, and reenables updating when Activated. Deactivate may be too late for your grid, but it's worth a shot...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform