MouseChunk with false cursor

Eric Chatonet eric.chatonet at sosmartsoftware.com
Thu Dec 22 07:31:51 EST 2005


Hi Mark,

Normal behaviour: the topmost object always gets the focus even if it  
is transparent...
Usually, we build cursors but, as you know it, there is a size  
limitation (16*16 pixels on Mac OS and 32*32 on other platforms)
If you want to use a png as a bigger cursor, just an idea, not tested  
and a bit dirty :-)
Use a pending message (has to be dug in):

on WhereAreWe
   global gPosArray
   -----
   lock screen
   hide img "MyCursor.png"
   if "field" is in the target then
     put the mouseChunk into gPosArray["chunk"]
     put the mouseText into gPosArray["text"]
     put the short name of the target into gPosArray["name"]
     etc. -- all you can need
   else delete global gPosArray
   show img "MyCursor.png"
   unlock screen
   AnalyseData -- another handler that will act according to the keys  
in gPosArray
   send "WhereAreWe" to me in 50 milliseconds
end WhereAreWe

Le 22 déc. 05 à 13:08, Mark Greenberg a écrit :

> How can I use a false cursor (an image that follows the mouse with  
> the cursor set to none) that also recognizes MouseChunk, MouseText,  
> etc.  It seems that the way I am doing it, the image blocks the  
> mouse from "seeing" the text in the field.

Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------ 
----------------------
http://www.sosmartsoftware.com/    eric.chatonet at sosmartsoftware.com/





More information about the use-livecode mailing list