Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid: How do you display data-bound bitmap images in gri
Message
De
25/03/1998 14:18:51
 
 
À
25/03/1998 14:11:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00087099
Message ID:
00087105
Vues:
36
>>VFP 5.0a: The grid on my form is bound to a table that has several logical (boolean) fields. Instead of displaying the usual ".T." or ".F." or checkbox in the grid, I would like to display a bitmap image indicating the state of the logical field (i.e., the grid cell would show a green star bitmap if the field were .T. and a red stop-sign bitmap if the field were .F.). I added an image control to the appropriate columns, set it as the currentControl, and set Sparse to false. When the form is run, the grid does indeed show bitmap images in each row. However, the bitmap is the SAME in every row. The bitmap does not change to indicate the true state of the bound logical field.
>>
>>How can I set the grid up so that the appropriate bitmap image will be shown based on the field logical value?
>
>You should prepare two different bitmaps add them to two different image controls, add these controls to grid.column and use Column.DynamicCurrentControl to toggle these images based on logical field value.


Yup....I tested it...it works....Ed is brilliant as usual.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform