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 !