Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Images in grid
Message
De
23/06/2006 05:25:18
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01130802
Message ID:
01131055
Vues:
63
>>Hi All. I have a grid on a form related to a table. I have added an image control to column 1. I have removed the textbox that was in column 1. Each record in the table contains a bmp file name. How do I make the bmp image for each record appear in grid.column1 for each row of the table? I tried the pictureval and picture properties but can't seem to make it work?
>
>Here is a nice trick originated from Fabio Lunardon (I use it my files selector form, which uses IconBuddy class to retrieve associated icons).
>
>** Form's Init
>thisform.grdFiles.colImage.dynamicfontshadow = ;
>	"thisform.grdFiles.colImage.Refresh()"
>
>** Grid colImage.refresh
>NODEFAULT
>this.FileIcon.Picture = curFiles.cIcon_File
What a beautiful and elegant solution :) Thanks Naomi and Fabio (but Italy still not going to win :)
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform