Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Images in Grid
Message
From
11/09/2002 18:52:39
 
 
To
11/09/2002 14:45:24
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00699461
Message ID:
00699558
Views:
19
Hello,

you could go several ways.

If the check value should be editable in the grid i would go for a
checkbox with picture and disabled picture property set ..

If it should not be editable 2 Picture Controls in the Column and then setting
yourGrid.yourColumn.DynamicCurrentControl = "IIF(yourTable.yourField,'picture1','picture2')"

would be sufficent

for the checkbox solution there are some pitfalls to make the whole thing look pretty ..

i've tried several hours to get this working:
here's the checkbox-class i use:

make a new class based on container
put a normal checkbox in it and set the following propertys:

Container:
Width = 20
Height = 19
Borderwidth = 0

Checkbox:
Picture and Downpicture to yourPictures
Height = 31
Width = 27
Left = -4
Top = -6
Style = 1 (Graphical)

because when the checkbox is pressed the downpicture is not exactly at the position of the normal picture you have to paint for example a rectangle
in the downpicture shiftet by 1 pixel to the top and 1 to the left of the position of the rectangle in the normal picture.

Regards

Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform