Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Images in Grid
Message
De
11/09/2002 18:52:39
 
 
À
11/09/2002 14:45:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00699461
Message ID:
00699558
Vues:
17
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
Fil
Voir

Click here to load this message in the networking platform