Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Images in Grids
Message
From
30/06/2005 18:18:50
 
 
To
30/06/2005 12:19:20
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01027727
Message ID:
01027931
Views:
15
But the result is that all images reflect the current row's value. The current row has the correct images, but all other rows have the exact same images - not those reflecting that project's actions. If I set Sparse to .T., no image displays at all - even in the current row.

You need to add an image control for each image you want to display and then set the column's DynamicCurrentControl based on the status similar to this:
WITH THIS.MyImageColumn
  .AddObject( "imgNotStarted", "Image" )
  .imgNotStarted.Picture = "NotStarted.gif"
  .imgNotStarted.BackStyle = 0
  .AddObject( "imgInProcess", "Image" )
  .imgInProcess.Picture = "InProcess.gif"
  .imgInProcess.BackStyle = 0
  .AddObject( "imgWaiting4Resource", "Image" )
  .imgWaiting4Resource.Picture = "Waiting4Resource.gif"
  .imgWaiting4Resource.BackStyle = 0
  .AddObject( "imgDone", "Image" )
  .imgDone.Picture = "Done.gif"
  .imgDone.BackStyle = 0
  .AddObject( "imgUnknown", "Image" )
  .imgUnknown.Picture = "Unknown.gif"
  .imgUnknown.BackStyle = 0
  .DynamicCurrentControl = [IIF( SEEK( GridRecordSource.Status_fk, 'StatusLookupTable', 'StarusTag' ), 'img' + ALLTRIM( StausLookupTable.StatusDescription ), 'imgUnknown' )]
ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform