Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display picture in a grid
Message
From
01/03/2005 00:59:41
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Display picture in a grid
Miscellaneous
Thread ID:
00991451
Message ID:
00991451
Views:
57
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!

********************************************************
Next
Reply
Map
View

Click here to load this message in the networking platform