Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG in WriteExpression
Message
De
01/04/2004 09:19:36
 
 
À
01/04/2004 04:03:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00890361
Message ID:
00891467
Vues:
25
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform