Custom cursors

J. Landman Gay jacque at hyperactivesw.com
Fri Feb 18 20:34:20 EST 2011


On 2/18/11 5:11 PM, Colin Holgate wrote:
>
> On Feb 18, 2011, at 5:59 PM, Peter Brigham MD wrote:
>
>> I seem to remember having to do some tricks with the png image
>> before trying to use it as a cursor....
>
> That didn't seem to be the case when I was trying it. The image is
> also used at its scaled size, so you can import as control a png,
> scale it down until you like the look of it, then use its ID number
> in the cursor script.

You did used to have to perform some magic tricks on cursor images 
before they would work. They were pretty hard to create. They had to 
have a color palette of exactly 3 colors only, and the colors had to be 
in a specific order. After importing the image, you had to paint on it 
briefly (you could click with the pencil and then undo) in order to 
convert it to something the engine understood; RLE probably.

A couple of versions ago, that was fixed and we can use any normal image 
now. That's nice because the cursor restrictions had been around since 
the beginning of MetaCard.

>
> One thing to note, the click point of the cursor is in the top left,
> so if you are expecting someone to click on a small area, the png
> cursor should look like its click point is in the upper lift.

You can set that. See "hotspot" in the dictionary.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list