Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One grid two colors
Message
De
29/04/2003 12:01:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/04/2003 11:55:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00782761
Message ID:
00782765
Vues:
17
>A question about grids and a column.
>Basically I want one column to display a green or red dot or ball. Based on the .t. .f. value of a field in a table.
>
>How would I go about creating the red or green dot/ball?
>
>How would I place that dot/ball in the first column depending on the value of .t./.f. of the field in the table?

You can change several properties, based on the contents of the column, with the properties that start with "Dynamic...". For instance, the background color can be dynamic with something like DynamicBackColor = iif(SomeCondition, rgb(...), rgb(...)).

You can have more than one control in a column - in this case, you can probably have two pictures as controls in the column, and use the DynamicCurrentControl. I didn't try this, though.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform