Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Controls go blank during processing
Message
 
 
To
24/06/2008 11:03:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01326002
Message ID:
01326375
Views:
12
Tom,

Instead of LOAD method did you try to add your hook to the Init method (just a thought)?

BTW, yesterday at night I played with all binding samples and one of them (the one with treeview) didn't work for me at all, though I tried to open different windows. Looks like this is the one we were interested in.

>Hi Charlie, long time no see.
>
>Sergey is a genius (no doubt) so I must be doing something wrong on my end but not sure what. I have a main form that kicks off the process to download several 500K row tables that get attached directly to Excel's pivotcache object. That all works great but the entire process to load, save, zip and FTP takes in excess of 35 minutes.
>
>Based on feedback I created a seperate modeless form that only contains a grid displaying how many rows in each table and a check mark is assigned to a column when a process completes. Unfortunately, if I switch to another application (such as IE) then come back to my VFP app, the form is all gray - not even an outline of the grid can be shown.
>
>I added the following code to the modeless forms LOAD event:
>
>#DEFINE WM_ACTIVATE 0x0006
>BINDEVENT( _VFP.hWnd, WM_ACTIVATE, This, "refreshstatus" )
>
>The UNLOAD event contains code to release the BINDEVENT as follows:
>#DEFINE WM_ACTIVATE 0x0006
>UNBINDEVENTS( _VFP.hWnd,WM_ACTIVATE )
>
>Here is what is contained in my custom REFRESHSTATUS() method:
>
>WAIT WINDOW NOWAIT "Hey, the refreshstatus method was just called at " + TRANSFORM( DATETIME() )
>ThisForm.Draw()
>
>I just removed some of the tables (so it runs in 3 minutes) for testing and the REFRESHSTATUS() method never fired but I did experience a blank status form (no visible grid). However, I can assure you it is there at the beginning.
>
>I also tried to add DOEVENTS before the process to download the data but once that kicks in I guess I am just waiting for it to finish. '
>
>Bottom line - I am still trying to work out a solution...
>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform