MousePointer Property (AForm)

Returns or sets the shape of mouse pointer displayed when the mouse is over the object.

Syntax

Object.MousePointer [ = enMousePointer ]

The MousePointer property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

enMousePointer

enumAFormMousePointer

An integer that determines the type of mouse pointer displayed when the mouse is over a particular part of an object at run time.

Where

enumAFormMousePointer:

 

Name

Value

Description

aformMousePointerDefault

0 *

Default (shape determined by the object)

aformMousePointerArrow

1

Arrow

aformMousePointerCross

2

Cross (crosshair pointer)

aformMousePointerIBeam

3

I-Beam

aformMousePointerIcon

4

Icon (small square within a square)

aformMousePointerSize

5

Size (four-pointed arrow pointing north, south, east, and west)

aformMousePointerSizeNESW

6

SizeNESW (double arrow pointing northeast and southwest)

aformMousePointerSizeNS

7

SizeNS (double arrow pointing north and south)

aformMousePointerSizeNWSE

8

SizeNWSE (double arrow pointing northwest and southeast)

aformMousePointerSizeEW

9

SizeEW (double arrow pointing east and west)

aformMousePointerUpArrow

10

Up arrow

aformMousePointerHourGlass

11

Hourglass (wait)

aformMousePointerNoDrop

12

No drop

aformMousePointerArrowHourGlass

13

Arrow and hourglass

aformMousePointerArrowQuestion

14

Arrow and question mark

aformMousePointerSizeAll

15

Size all

aformMousePointerCustom

16

Custom icon specified by the MouseIcon property

Comments

Use this property to indicate changes in functionality as the mouse pointer passes over controls on a form or dialog box. The Hourglass setting is useful for indicating that the user should wait for a process or operation to finish.

Note: If the application calls DoEvents, the MousePointer property may temporarily change when over an ActiveX component.

Example

The following statement changes the AForm MousePointer to an hourglass:

frm1.MousePointer=aformMousePointerHourGlass

Applies to

AForm

See Also

MouseIcon