Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Grid Refresh is done two times
Message
From
28/04/2004 11:11:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
BUG: Grid Refresh is done two times
Miscellaneous
Thread ID:
00898965
Message ID:
00898965
Views:
41
Build a Form with a Grid and a CommandButton.
On the grid add dynamicXXXX expressions.
On
CommandButton.Click
   thisform.grid.Refresh
Run:
when you click,
the Refresh cycle is done one time.
when the Click event is released,
VFP fire another refresh cycle after the form.Paint event !

THIS HAVE THREE EFFECTS:

1. BIG i cannot control the context where the Dynamics are evaluated !

2. MEDIUM if i put into the Paint event my code for implement personal graphics behaviour,
it is not the last GDI directives send to WINDOWS!

3. MEDIUM a VFP complex grid interface is slow down a lot!

The tragicomic thing.

If you put a :
CommandButton.Click
   thisform.grid.columnX.Refresh
then:
- when the columnX.Refresh line is executed, no dynamics are evaluated,
but when the Click event is released ( and VFP execute the redraw of the form ),
after the Paint event the columnX Dynamics are evaluated !
Next
Reply
Map
View

Click here to load this message in the networking platform