Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting a cell in a grid to an image
Message
From
09/03/2004 16:42:17
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00884513
Message ID:
00884581
Views:
19
How can I set a particular cell in a grid to display a picture? Should the following
work? Column1 of Grid1 has a checkbox with display set to graphical style. The ActivateCell
puts the cursor on row 3, col 1, but the graphic in that cell does not change.


Why don't you just set the grphical style check box up in the property sheet at design time? It is a lot simpler.

1. In the drop down list at the top of the property sheet, select the column that you want to drop the check box into.

2. In the form controls toolbar, click on the check box

3. Click on the grid column that you want to drop it into.

4. In the drop down list at the top of the property sheet, select the text box in the column of the grid that you just added the check box to.

5. Click on the title bar of the form designer

6. Press the delete key

7. Under the data tab of the property sheet for the column that is holding the check box, set its sparse property to .F.

8. Set the following properties of the check box in the grid column:
style = 1-Graphical
picture = d:\tipsbook\ch06\cross.bmp
DownPicture = d:\tipsbook\ch06\check.bmp
Caption = (none) - This means you delete the caption of the checkbox.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform