Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When does my mouse cursor leave an object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00080256
Message ID:
00080983
Vues:
45
>>>Is there a way to tell when the mouse cursor has left a control? For example, I want to know when my mouse cursor leaves a container control so I can set properties of that container i.e(raised,flat,sunken) etc. I have seen a technique using MROW() and MCOL() in a timer event, but I was wondering if there was another technique someone is using that I could try!
>>>
>>>Thanks.
>>>
>>>John.
>>
>>
>>Check out what's New last 5 days and you can download the following class
>>
>>OnMouseOut( )
>>This zip file contain a classlib with all you need to enabled a OnMouseOut event in your objects! It also contain a sample form, try it...
>>
>>See the 'ReadMe' method of the IsMouseOut Object for more info.
>>
>>Gérald Santerre
>>
>>
>>Russ
>
>
>BTW, for some class type (like container) if you issue
>'this.SpecialEffect=0' in the MouseMove event (or OnMouseOut)nothing appen!
>
>This.Refresh() does not help...
>
>To force a redraw of the control you need to add a 'this.left=this.left', the control think(?) it have moved and redraw itself.
>
>Bizzare!
>
>:0)

I've also found that when changing the specialeffect property of a container object, if container.visible = .T. is issued it will behave correctly as well.
Just another quirky thing that makes VFP so special!!!

Thanks again for the Class info!!

John
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform