I am having a problem with a form redisplaying all of the objects when
it is done processing.
These particular forms do some process intensive queries.
When the user clicks the process button I set the mouse pointer to an
hourglass. The form will then repaint (not done by me) and will sit
there blank while the query thermometer bar gives progress.
When the query is done the form will not redisplay the objects and sits
there empty unless you hover the mouse over a button and then it
magically reappears. If you move the mouse around the form the objects
will appear.
If I do a thisform.refresh in the code before returning from the click
event of the process button it doesn't do any good.

Anyone else experiencing this??? Have you found a way to prevent it???

Jim

RE: Form redisplay issue - VFP9 by Leemi

Leemi
Tue Apr 04 14:20:24 CDT 2006

Hi Jim:

Was this screen created using the older @...SAY commands? Are you running
the code on Windows XP? If so, try setting Themes off and see if that
fixes it. See SYS(2700).

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>I am having a problem with a form redisplaying all of the objects when
>it is done processing.
>These particular forms do some process intensive queries.
>When the user clicks the process button I set the mouse pointer to an
>hourglass. The form will then repaint (not done by me) and will sit
>there blank while the query thermometer bar gives progress.
>When the query is done the form will not redisplay the objects and sits
>there empty unless you hover the mouse over a button and then it
>magically reappears. If you move the mouse around the form the objects
>will appear.
>If I do a thisform.refresh in the code before returning from the click
>event of the process button it doesn't do any good.

>Anyone else experiencing this??? Have you found a way to prevent it???

>Jim


RE: Form redisplay issue - VFP9 by TarekHaddad

TarekHaddad
Tue Apr 04 14:51:03 CDT 2006

Hi,

I think you must turn on Lockscreen before the process of the queries then
turn it on after the process.

Thisform.LockScreen = .T.
.....
Query
Thisform.LockScreen = .F.
Regards

"Jim Czeb" wrote:

> I am having a problem with a form redisplaying all of the objects when
> it is done processing.
> These particular forms do some process intensive queries.
> When the user clicks the process button I set the mouse pointer to an
> hourglass. The form will then repaint (not done by me) and will sit
> there blank while the query thermometer bar gives progress.
> When the query is done the form will not redisplay the objects and sits
> there empty unless you hover the mouse over a button and then it
> magically reappears. If you move the mouse around the form the objects
> will appear.
> If I do a thisform.refresh in the code before returning from the click
> event of the process button it doesn't do any good.
>
> Anyone else experiencing this??? Have you found a way to prevent it???
>
> Jim
>
>

Re: Form redisplay issue - VFP9 by Jim

Jim
Wed Apr 05 10:01:45 CDT 2006

Thanks for your response. No @say commands. Stopped using those in
1998.
Native VFP9 form developed in VFP9.
As I thought about my issue and after trying both your suggestion and
the one from Tarek below (neither helped) I realized I may not be able
to solve my problem.

My form is doing an execscript that is running the code that both does
the queries and creates the reports. If the user selects preview for
the reports the paint of the preview over the top of my form wipes out
the display of the form objects and just leaves the empty form window
with the background color when the preview is closed and the next query
for the next report proceeds.
Since the form still does not have control I cannot initiate a refresh
or re-render of the form until all of the reports are done.
Unless you guys have some neat other things I can try I suspect I am
out of luck and my only option is probably to hide the form until the
reports are done.

Jim


RE: Form redisplay issue - VFP9 by Leemi

Leemi
Wed Apr 05 13:54:52 CDT 2006

Hi Jim:

Yes, hiding the form might be a solution. Have you tried refreshing the
form before and after you run the queries and reports?

Here are some ideas that might be worth trying:
Add a
Bitmap=OFF
To the Config.fpw file

In the Paint event of the form, try repainting the form using a Windows API
function:

DECLARE INTEGER UpdateWindow IN WIN32API INTEGER
UpdateWindow( THISFORM.HWnd )
CLEAR DLLS 'UpdateWindow'
Then call the Paint event with a Thisform.refresh.

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>Thanks for your response. No @say commands. Stopped using those in
>1998.
>Native VFP9 form developed in VFP9.
>As I thought about my issue and after trying both your suggestion and
>the one from Tarek below (neither helped) I realized I may not be able
>to solve my problem.

>My form is doing an execscript that is running the code that both does
>the queries and creates the reports. If the user selects preview for
>the reports the paint of the preview over the top of my form wipes out
>the display of the form objects and just leaves the empty form window
>with the background color when the preview is closed and the next query
>for the next report proceeds.
>Since the form still does not have control I cannot initiate a refresh
>or re-render of the form until all of the reports are done.
>Unless you guys have some neat other things I can try I suspect I am
>out of luck and my only option is probably to hide the form until the
>reports are done.

>Jim


Re: Form redisplay issue - VFP9 by Jim

Jim
Thu Apr 06 06:29:23 CDT 2006

Thanks for the input. My problem is that due to the processing needs
there are several reports being run with a preview and then more
queries/calculations. This is all done in an execscript, thus, the
form has no control while it is all happening. When a preview window
is rendered by the report form and closed the form cannot refresh
because it hasn't recieved forcus/control.

I did go with the suggestion of hiding the form and then thisform.show
when it is done and that works fine. The thisform.show forces a new
rendering of the form and all of the objects are painted correctly.
The only downside is that the user cannot refer to the report
selections they made while the report data is being gathered.

Thanks for the help.