[futurebasic] Re: [FB] suggestions solicited ( event handling )

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2009 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Thu, 15 Oct 2009 10:18:57 -0700
On Oct 15, 2009, at 9:23 AM, Edwards, Waverly wrote:

>
> Seeking suggestions of how to handle the following scenario:
>
> Note: this is not the actual code but it's a close approximation
>
> I have a kEventControlTrack handler attached to a custom HIView,  
> (not the window or application.
> I am tracking the mouse in the HIView.  The mouse is being dragged  
> outside the view.
> When this occurs, the mouseLoc information is no longer valid, even  
> though I'm inside the tracking loop.
>
> I want to keep the tracking on the HIView but suspect that I'm not  
> getting the correct mouse location
> because my handler is on the HIView.  Any thoughts on how to keep  
> the correct mouse location while inside the loop.
> If I use GetMouse, I will consume lots of CPU time when the mouse is  
> not moving some I'm a bit stumped.
>
> The goal is to track the mouse location once I'm inside the loop  
> without consuming lots of CPU time.
>
>
> Thanks,
>


Wave, I haven't digested your request but there are some demos in FB5  
Examples folder worth review since they deal with kEventControlTrack.  
Maybe not an answer but might have some clues.

FB5 Examples>Miscellaneous>Mouse Hit in HIView

FB5 Examples>Text>Util_MouseTracking demos


Brian S