Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid/Image Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00041552
Message ID:
00041611
Vues:
35
>>I've added an image to a grid column, it displays fine. But code in the Click event doesn't fire, though the cursor is clearly on the image when mouse clicks it. Any ideas how to get it to fire? The image is set on top of a table (cursor) variable set to ''.
>>
>>A workaround is to put code in a grid event to fire when column = image column#, that works, but is there a way to get the image Click to fire directly?
>
>Bruce have you traced the code to see what IS firing? If anything? I tried, and it looks like the Click method will only fire after the cell has focus. In other words, you have to click twice. MouseDown behaved the same way. What you really need is an InteractiveChange event in either column or image....
>
>It looks like a grid event is the only way to go.
>
Yes, after I posted I noticed that 2 or 3 clicks would sometimes fire the image Click, though not consistently, and depending on where focus was previously. But comparing it to a CommandButton, which fires as it should under the same situation makes me think "bug" for the image object in grid. Maybe I'll try putting another invisible object in the column to handle the Click...

Using ActiveColumn in AfterRowColChange does get the job done, anyway...but you're right, it would be nice to have a few more events available like InterActiveChange, or even just a column Click might tie some loose ends up...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform