AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Pointer changes over icons are controlled by the 'p' validation command.

'p' (change pointer)
Syntax:
p<pointer name>,<x hotspot>,<y hotspot>

The x and y hotspots are optional. What happens is that when the pointer is
over the icon it will changed to the named sprite. The 'hotspot' is the area
that is the actual 'point' of the pointer. The sprite should be in the Wimp
sprite area.

Supplied pointers are:

ptr_write     (4,4)
should be used over writeable icons
ptr_menu     (6,5)
should be used over icons that lead to menus when clicked with SELECT
ptr_direct     (13,7)
should be used for resizing objects
ptr_hand     (12,8)
should be used for dragging objects
ptr_cross     (13,7)
should be used for accurate pointing

Pointer sprites should be designed in mode 8, maximum size 32x32 pixels. You
should be wary of using logical colour 2 in pointer sprites, as it doesn't
work in high-res mono modes. The pointer can have a palette if you want it
to.

Note that, while windows containing icons with the 'p' validation command in
them are open, you should not disable null events as the pointer changing
won't work if you do.

On RISC OS 3 the 'p' command is performed by the operating system, so
WimpExtension ignores it when running under WindowManager 3.00 or later.

There is also a SWI provided so that your program can change the pointer
directly: WimpExt_SetPointer.

[sh-index] Back to list of manuals