Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG in WriteExpression
Message
From
01/04/2004 09:19:36
 
 
To
01/04/2004 04:03:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00890361
Message ID:
00891467
Views:
24
Another grid big problem:

an event does not exist that happens when the cell changed.

VFPT can add a RowColChanged() event ?
This would improve the grid a lot.

This event fire like this events sequence:
BeforerowColChange()
Valid()
LostFocus()
* cell change here
Grid.RowColChanged(activeRow,activecol)
* now continue standard VFP sequence
When()
Gotfocus()
* dynamics expressions evaluated
AfretRowColChange()
A example used from many VFP developers:
* SetAll("dynamicBackColor","IIF(m.this.nRecNo%2=0,EVENCOLOR,ODDCOLOR)")

procedure RowColChanged
this.nRecNo = RECNO(m.this.recordsource)
endproc

* with this i'm ok withou any other action

* with VFP8 i must
PROCEDURE AfterRowColChange
this.nRecNo = RECNO(m.this.recordsource)
Grid::Refresh && this is a very slow down action 
* because dynamics expressions is reEvaluated and graphics is refreshed another time
ENDPROC
Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform