Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display picture in a grid
Message
De
01/03/2005 00:59:41
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Display picture in a grid
Divers
Thread ID:
00991451
Message ID:
00991451
Vues:
56
Dear All,

I'm sorry... I forget how to display the picture in a grid...

I have added image container in a grid, and a table holding the name of pictures to be displayed by the image container... how can I point to the records?!

The picture show up only the first record's image for all records... not dynamically changed for different records?!

I think it is wrong...
*** Method: DisplayPicture 
DO CASE
	CASE filelist.att="D"
		cPic = "fd-folder.bmp"
	CASE filelist.att="A"
		cPic = "fd-archive.bmp"
	CASE filelist.att="N"
		cPic = "fd-normal.bmp"
	CASE filelist.att="S"
		cPic = "fd-system.bmp"
	OTHERWISE
		cPic = "fd-other.bmp"
ENDCASE
RETURN cPic
*** Setting in the grid1.column1.image1.picture 
= Thisform.displayPicture()
But I can't set it in form designer!


Thanks in advance!
Best regards,

Aaron Chu

********************************************************

Working with Visual FoxPro is a lot of FUN!

********************************************************
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform