Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setall method
Message
From
20/12/2002 06:34:14
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00734011
Message ID:
00734816
Views:
14
thank you Vlad
It is what I was going to try but haven't done yet :-)
Alessio
>Hi!
>
>No, not by SetAll.
>
>If you have only few images, use DynamicCurrentControl and a few Image controls inside of grid column with different pictures.
>
>If you require images displayed just based on the image path stored in data, do following:
>
>Define method on form like below:
>
>* RefreshPictForEachGridRecord method - called from DynamicFontBold expression in grid.Column1
>if empty(MyTableAlias.MyPictPath)
>  thisform...Grid.Column1.Image1.Picture = "Images/DefaultPict.bmp"
>else
>  thisform...Grid.Column1.Image1.Picture = "Images/" + allt(MyTableAlias.MyPictPath)
>endif
>return .F.
>
>Then call this method in expression in some Dynamic* property of column with Image control. For example, in above sample it will be DynamicFontBold = "thisform.RefreshPictForEachGridRecord()"
>
>Method will be called for each record in process of grid refreshing, so it should work as quickly as possible Record pointer inside of the method, when called from Dynamic* expression from grid, is at the appropriate record.
>
>HTH.
>
>>Can I use the setall method to dynamically change the picture property of an image class in a grid column ?
>>If not how can i do?
>>
>>Alessio
Previous
Reply
Map
View

Click here to load this message in the networking platform