xHot

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the xHot of <image> to <pixels>
Associationsimage
Summary

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

Introduced1.0
OSmac, windows, linux
Platformsdesktop
Example
set the xHot of image ID 1023 to (the width of image ID 1023)
Values
NameTypeDescription
Value

The xHot of an image is an integer between 1 and the width of the image. By default, the xHot property of newly created images is set to 1.

RelatedKeyword: item, image, integer
Property: cursor, yHot, pixels, hotSpot
Object: image
Glossary: property
Description

Use the xHot property to specify the horizontal 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 xHot property is the horizontal distance in pixels from the left edge of the image to the hot spot point.

The xHot of an image is equal to item 1 of the image's hotSpot property.

Tagsui