Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gotfocus for Images in Grids?
Message
De
21/02/2005 17:41:46
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
21/02/2005 17:29:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
00989042
Message ID:
00989049
Vues:
16
>Hello!
>
>I have a grid that has an image control in one column. Based on a field value, this image which is a checkmark will either display or not display. This works ok but I also have code in the gotfocus and lost focus of textboxes in the other columns. Since the image control has no gotfocus or lostfocus I was wondering how I can run code when this column is clicked on. I tried putting the image control into a container in the grid column but for some reason the container gotfocus doesn't seem to fire when the image is clicked on with the mouse.
>
>Any ideas would be greatly appreciated!
>
>Thanks!

Don't know if you're stuck on a particular image. If not, I think the simplest solution is to just have the textbox use a font with a checkmark character. For example, Wingdings has a nice checkmark. 0xFC (or the letter u with an umlat). The controlsource could be something like
IIF(MyTable.MyBool, chr(0xFC), "")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform