Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cells in grid with different colours
Message
 
 
À
27/10/2004 09:06:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00954820
Message ID:
00954828
Vues:
19
>I hve tried DynamicBackColor/DynamicForeColor but in this way it is possible only two colours I need at least 10 colours. The colour of the cell is controled by a bdf field

You can have as many colors as you want.
* grid Init
* nColor is a column in the grid recordsource with stored color for that row
WITH This.Column2
  .DynamicBackColor = "IIF( Empty(nColor), RGB(128,128,128), nColor)"
  * or
  .DynamicForeColor = "IIF( Empty(nColor), RGB(128,128,128), nColor)"
ENDWITH
You can set those properties in the Properties Sheet, as well.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform