Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a picture into a grid
Message
De
28/06/2004 10:02:32
 
 
À
28/06/2004 08:53:46
Brian O'Donovan
Crescent Computers
Cork, Irlande
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00917915
Message ID:
00917943
Vues:
8

Hi There

I am building a form for a purchase orders system. I was thinking of adding a picture a grid to show whether the order was completed or not. I tried just pasteing the image into the grid and using
IF ALLTRIM(SORDhead.STATUS) = "Open"
thisform.grid1.column8.image1.picture = "open.bmp"
else
thisform.grid1.column8.image1.picture = "cancel.bmp"
endif

in the afterrowchange method but this has not worked Any ideas

Thanks


steps:
- Add to the column8 two image controls with these status names:
STATUS value for open   : "Open"
STATUS value for Cancel : "Cancel"
- set thisform.grid1.column8.Open.picture = "Open.bmp"
- set thisform.grid1.column8.Cancel.picture = "Cancel.bmp"
- set column8.Bound = .F.
- set column8.Sparse = .F.
- on the Property Sheet set for Column8:
DynamicCurrentControl = ALLTRIM(SORDhead.STATUS)
- run

Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform