Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert an icon in a grid
Message
From
22/05/2002 10:07:01
 
 
To
21/05/2002 19:08:13
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00659650
Message ID:
00659897
Views:
24
Hi!

Insert as many image controls into column as you have different icons (types of records). Then in DynamicCurrentControl proprety define expression or call to function/method that will return the string - name of the image control that should be displayed for record accordingly to data in it. The expression will be evaluated for each record, so make it as efficient as posisble to do not slow down the grid refresh.

If you have more than 10 icons, or number of icons displayed undetermined (unlimited), let me know - this requires more advanced approaches to speed up things or allow unlimited number of different icons (for example, display icon or image by its path stored in the table field).

Hope this helps.

>Hi all!
>
>How to insert different icons in a column of a grid, these icons depend on the type of fact content in a field of the grid
>
>Thanks in advance
>
>Elizabeth Garcia
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform