I did what You told me and it works.
The fact now is that it runs slowly and it looks like the setall method run twice.
I wrote few line of code in the Grid init method (this.setall("dynamicfontbold","thisform.setimg()","column")
What i want to do is to avoid the double processing of the grid refresh()
i was thinking about a lockscreen but I don't know where to put it
Any suggestion ?
Alessio
PS HAve a Merry Xmas and a great New year
>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