Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coloring grids
Message
De
17/02/2006 17:11:44
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
16/02/2006 16:43:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01094787
Message ID:
01097212
Vues:
13
>Hi Dragan,
>
>I'm attempting to color the grid and I'm having a few problems. I want each cell in the grid to be one of 4 colors depending on current status which I will define. The setall method with the dynamic color wants to do an entire row. Can I define a color of a cell with the dynamic backcolor property or am I left field here ?

See the code that Tracy supplied here, that's the way to assign colors to each column. Setall does that to the entire row because it Sets All the columns; just have a different expression for each column and you'll have your colors.

Again, my recommendation is to pre-calculate the color numbers (rgb values) and put them into fields you won't show on the grid (one such field for each set of colors) and use the names of these fields (with alias) as the Dynamic*color expressions. That's much faster than having a function.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform