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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement