Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Paul Brown
  
 York
 
 Paul Brown
 To: Saeed Paksima
  Where is Saeed Paksima?
 Kish Island
 Iran
 Saeed Paksima
 Tags
Subject: RE: GRID Flashing Problem
Thread ID: 16008 Message ID: 16022 # Views: 1 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Monday, October 07, 2002 11:04:48 AM         
   


> > hello Saeed, maybe you can try the following code in timer event, which quoted from other visitors:
> >
> >
> > with thisform
> >    .LockScreen = .T.
> >    .yourgrid.refresh
> >    .Lockscreen = .F.
> > 

> >
> > hope this help
> >
> > waifoong
>
>
> That wouldn't solve the problem. I'd tried it before .
>
>


Try the LockWindowUpdate function instead

I'll assume you are using VFP7 in order to get the hWnd of the form. You would put this in a function.....

FUNCTION LockWindow

LPARAMETERS tnhWnd

DECLARE INTEGER LockWindowUpdate IN USER32 INTEGER nHandle

IF VARTYPE(tnhWnd) = "N"
	LockWindowUpdate(tnhWnd)
ELSE
	LockWindowUpdate(0)
ENDIF

RETURN



..and then call it with...

LockWindow(Thisform.hWnd)
Thisform.Grid.Refresh()
LockWindow()




ENTIRE THREAD

GRID Flashing Problem Posted by Saeed Paksima @ 10/6/2002 6:24:58 PM
RE: GRID Flashing Problem Posted by liew wai foong @ 10/6/2002 7:53:13 PM
RE: GRID Flashing Problem Posted by Saeed Paksima @ 10/7/2002 6:46:34 AM
RE: GRID Flashing Problem Posted by Paul Brown @ 10/7/2002 11:04:48 AM
RE: GRID Flashing Problem Posted by Saeed Paksima @ 10/7/2002 11:42:39 AM
RE: GRID Flashing Problem Posted by Pete Sass @ 10/7/2002 11:06:49 PM