Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can Grids Show Images & Data well ??
Message
From
13/12/2000 05:51:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/12/2000 19:50:37
Nicholas Brick
Procam Systems Ltd
Cork, Ireland
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00452643
Message ID:
00452781
Views:
21
>There is clearly a knack (which I do not possess) to getting VFP Grids to show images as well as data.
> - I've tried using a simple Image Control but that never refreshes.
> - I've tried using a Command Button which can be refreshed (It doesn't have a Stretch property - but can work around that by creating images of known size). The main problem then is that the image shows the same for loads of records, it doesn't show different images for different records.
>
>I thought I read something on this in Foxpro Advisor but haven't been able to locate that.
>
>Anyone know of a good article or a simple little trick ?

A simple little trick :)
Use any dynamic* property of column. Say dynamicbackcolor.
*myColumn.Dynamicbackcolor = thisform.GetColor(this)

* Getcolor custom method
lparameters toColumn
toColumn.Image1.Picture = 'blah blah'
return toColumn.BackColor
This forces a refresh for visible part images. You should keep visible rows as little as possible because it gets time to load images.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform