Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Container and mouse events
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00829417
Message ID:
00829435
Vues:
24
>I have a container class in vfp7. The container contains a variety of controls such as shapes, labels... etc. The container has a mouseenter and mouseleave event routine for displaying/removing a popup editbox. Unfortunately the mouseenter fires when you enter the container then mouseleave fires when you pass over any control in the container. While I can understand that this may be the intended behavior, is there any way to make it so that mouseenter and mouseleave fire when entering and leaving the container only?

From Cetin's comment

in the mouseleave :
IF oContainer.ActiveControl.parent = oContainer.name
  ... your code
ENDIF
this would get rid of the need to add the properties and still be working I think.

Yanick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform