hotSpot

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the hotSpot of <image> to <point>
Associationsimage
Summary

Specifies the location of the hot spot when an image is being used as a cursor.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
set the hotSpot of image "Arrow" to "20,0"
Values
NameTypeDescription
Value

The hotSpot of an image is a point: an integer between 1 and the width of the image, a comma, and an integer between 1 and the height of the image. By default, the hotSpot property of newly created images is set to "1,1".

RelatedKeyword: item, image, integer, point
Property: left, cursor, yHot, pixels, xHot
Function: mouseColor
Glossary: property
Object: image
Description

Use the hotSpot property to specify the position of the hot spot of an image you want to use as a cursor.

A mouse cursor, regardless of its shape, always has a single active point or hot spot. For example, the arrow cursor's hot spot is at its tip, and to select an object, you must click it with the arrow tip.

The first item of the hotSpot property is the horizontal distance in pixels from the left edge of the image to the hot spot point, and is equal to the image's xHot property. The second item of the hotSpot property is the vertical distance in pixels from the top of the image to the hot spot point, and is equal to the image's yHot property.

Tagsui