Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture in grid control
Message
From
26/09/2002 06:47:34
 
 
To
26/09/2002 03:52:17
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00704581
Message ID:
00704596
Views:
16
Hi!

1. Unfortunately, there is neither transparent option for grid, nor background image for it available. You can simulate background image or make your own grid with background image (2 solutions). First solution requires a lot of effort, and such grid would work slowly. You will also require to have an approach to correctly track the row in grid that is currently the topmost - to know how to draw images correctly. Then create container for each grid column with a control in it. Put in container your image and control. In run-time, in the procedure called for each grid row by evaluating any Dynamic* expression of some column, shift image properly to the current row that VFP draws, as well as refresh the content of the control for displaying value. Uuuuugly. Second approach - use some grid ActiveX controls (there are few around that allow background in it, I saw somewhere at least one).
There is also a third approach, but it is complex and might be troublesome when you do not know HTML and JavaScript. You can put on form WEB Browser control and have your grid displayed as HTML page. However, all interaction with grid for data entering and many other things you then should program in Java Script or in VFP code working with DOM objects and their events.

2. I'm not sure what you're asking about in second question. Did you meant "How to display different image for each grid row dependent on some criteria or dependent on the filepath stored in the table for that row?"

>hi all,
>i've a few question
>1. any idea for placing a backround picture in grid control
>2. how to place a diffrent picture in grid
>
>thank's
>-iwan-
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
Next
Reply
Map
View

Click here to load this message in the networking platform