Sets the shape of the mouse pointer for an entire application.
SETMOUSEPTR
Icon (*DFT | *APPSTARTING | *ARROW | *CROSS | *IBEAM | *NODROP | *SIZE |*SIZENESW |
*SIZENS | *SIZENWSE | *SIZEWE | *UPARROW | *HOURGLASS | Character Expression)
Err (Indicator Variable | *EXTENDED)
Parts
- Icon
-
Required. Must contain a special value or a character expression. In character expression, you can enter the icon file name, or assign a picture property to a control e.g. (Image1.Picture). The following is a list of available special values.
- *Dft - The mouse pointer of the window in which the mouse is on.
- *Arrow - Arrow
- *Cross - Cross Hair
- *IBeam - I-Beam
- *Size - Four-pointed arrow pointing North, South, East, West
- *SizeNESW - Double-arrow pointing NorthEast and SouthWest
- *SizeNS - Double-arrow pointing NorthEast and SouthWest
- *SizeNWSE - Double-arrow pointing NorthWest and SouthEast
- *SizeWE - Double-arrow pointing West and East
- *UpArrow - Up arrow
- *Hourglass - Hour glass
- *NoDrop - No-drop
- *AppStarting - application starting
- Err
-
Optional. Determines what the runtime will do if an error occurs while executing this command. The following rules apply:
-
Err (Indicator Variable) - The specified Indicator is set if an error occurred.
-
Err (*EXTENDED) - A program status flag is set whose status can be checked using the %ERROR built-in function.
-
If the Err keyword is not given and an error occurs, a runtime exception will be thrown.
-
Remarks
The MousePointer property on the form controls the shape of the mouse pointer when the mouse is over that form. However, if moved to another form, you would get the mouse pointer that is specified for that form. The SETMOUSEPTR op code will specify one mouse pointer to be used for all forms within the application.