MouseIcon Property (AForm)

Returns or sets the mouse icon used when the mouse pointer is positioned over an object.

Syntax

Object.MouseIcon [ = Picture ]

The MouseIcon property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

Picture

APicture

A string expression specifying a file containing a graphic. The default is no picture.

Comments

The MouseIcon property provides a custom icon that is used when the MousePointer property is set to aformMousePointerCustom.

Although ATEasy does not create or support color cursor (.cur) files (such as those that ship with Windows NT), you can use the MouseIcon property to load either cursor or icon files. Color cursor files such as those shipped with Windows NT 3.51, are displayed in black and white. To display a color cursor, use a color icon file (.ico). The MouseIcon property provides your program with easy access to custom cursors of any size, with any desired hot spot location. ATEasy does not load animated cursor (.ani) files, even though 32-bit versions of Windows support these cursors.

Example

The following statement changes the AForm's MouseIcon to a given image file:

frm1.MouseIcon = LoadPicture("c:\Icons\Busy.ico")

Applies to

AForm

See Also

MousePointer