Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container and mouse events
Message
From
16/09/2003 11:30:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00829417
Message ID:
00829448
Views:
20
>>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

Yanick,
Close :) What I meant was to use amouseobj() or sys(1272,sys(1270)) to get the object mouse is over. ie:
loObj = sys(1270)
if type('loObj') = 'O' and !compobj(loObj,this)
  lcObj = sys(1272,loObj)
  lcThis = sys(1272,this)
  if lcThis = lcObj
* ...
  endif
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform