Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
My coworker came up with a great idea, although I am still optimizing and debugging it:
1) Create a property on the form (ThisForm.lShaded, .F.)
2) Create a method on the form (ThisForm.GridColors):
*GridColors
ThisForm.lShaded = !ThisForm.lShaded
RETURN IIF(ThisForm.lShaded, RGB(253,244,193), RGB(255,255,255))
3) Set the Columns' DynamicBackColor to: ThisForm.GridColors()
Result: Column instantly alternates colors, regardless of table size.
I am still working on fixing a bug whereby clicking on a row makes the colors go out of sync. I also have to test applying it to other columns, which shouldn't be hard.
Jerry
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement