Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting graphics in a grid
Message
De
11/01/2000 13:29:43
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/01/2000 13:16:04
David Cass
U.S.Navy Fisc Norfolk
Norfolk, Virginie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00316336
Message ID:
00316351
Vues:
19
>I have a grid with two fields that I'd like to have graphics in.
>
>The first, is a category icon. The name of the category graphic file is stored in one of the database fields. I've tried putting =ALLTRIM(mydb.iconfile) in the image's picture property, but get a blank image.
>
>The second is a field which indicates whether or not a photograph is available for an employee. (Guess I could use a check box, but I wanted to be fancy.) I have an icon file of a camera that I'd like to put in the field if there's a picture, blank field if there's no picture. I put =IIF(EMPTY(mydb.photograph),"","CAMERA.ICO") in the image's picture property.
>
>Can someone help me?
>
>Thanks,
>Dave


Dave,
First design those fields on form. Save as class. Than edit grid and drop that class on column you want (probably a new column). Set CurrentControl to it and sparse = .t.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform