Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
English
Setall method
Mensaje
De
23/12/2002 06:29:10
 
General information
Foro:
Visual FoxPro
Category:
Título:
Miscellaneous
ID de la conversación:
00734011
ID del mensaje:
00735342
Views:
7
The point is that I don't know where to put those lines of code.
The only way it works is call my setimg method by setall.
Anyway i avoid the double refreshing putting a nodefault line in the grid refresh method
Thank You
Alessio

>Hi!
>
>""SetAll" sets expression for "dynamicfontbold" in EACH column of grid. You do not need this. You need this setting only for column that contains image. In your case, instead of "SetAll", you should do following:
>this.column1.dynamicfontbold = "thisform.setimg()"
>
>(Assuming column1 is a column with image control).
>
>HTH.
>
>>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
Previous
Responder
Mapa
Ver

Click here to load this message in the networking platform