[futurebasic] Re: [FB] Help with cursor state when using Scrolling/Editable HITextView

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2006 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Sun, 21 May 2006 20:42:41 -0700
On May 21, 2006, at 6:39 PM, Brian Stevens wrote:

> I've searched my FB source code (approved and otherwise) for an  
> example of this, so hopefully someone else can point me in the  
> right direction.

OK, I didn't search enough (just a little RTFM in the Apple manual  
and some searching). I found some of Bernie's code to setup a  
tracking region and then the cursor handler checks for  
kEventMouseEntered & _kEventMouseExited. Looks like:

case _kEventMouseEntered
ignore = fn SetThemeCursor( _kThemeIBeamCursor )
case _kEventMouseExited
ignore = fn SetThemeCursor( _kThemeArrowCursor )

My next challenge is how to expand or shrink the size of the cursor  
tracking region when the user resizes the window.  I'm not sure if I  
need to create a new region each time the window changes size or if  
the existing region can be resized. Any clues appreciated to help  
jump start this old brain of mine.

TIA----Brian