Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CheckBox in grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00118729
Message ID:
00118796
Vues:
17
>>I have a checkbox control in a grid and would like to be able do the this:
>>
>>Move me mouse down the column with the checkbox control and change the value of the checkbox from (for example) .F. to .T. as I move my mouse down the column.
>>
>>Several ideas came to mind on how to do something like this, but nothing I have tried works. Does someone know how to accomplish this?
>>
>>
>>TIA
>>
>>John.
>
>In the checkbox MouseMouve method you could try something like:
>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>
>if nButton = 2               && the mouse cursor was moved over the
>   This.Value = !This.Value  && object with the right mouse button
>endif
>
>See VFP Help on MouseMove for more info. You will need to enhance this code, because the value of the checkbox continues to flip back-and-forth rapidly while you move the mouse over the object.

Hi Mark,

Thanks for responding to me so quickly.

That's exactly where I was when I decided to ask my question. I've used the mousemove and timer while building button classes, so I am somewhat familiar with this event, but I can't get it to work correctly in this situation. As you said, the checkbox control flickers as it switches between values while mousemove code fires. Also I can't get more than one row of the grid to even do this.

Thanks.


John
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform