Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gotfocus for Images in Grids?
Message
From
21/02/2005 17:41:46
 
 
To
21/02/2005 17:29:34
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
00989042
Message ID:
00989049
Views:
17
>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), "")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform