Back to Contents        Previous        Next








9. Pointer

PROCwimp_pointer(pointer%,spritearea%,pointer$)
Changes mouse pointer between the default (number 1) and
the user defined pointer (number 2).
If pointer% = 0 default pointer is used.
If pointer% = 1 user defined pointer is used.
If spritearea% = 0 Wimp sprite pool is used, otherwise spritearea% is a handle to a sprite area.
pointer$ = sprite name of pointer.


PROCwimp_setpointerposition(x%,y%)
Moves the pointer to a given position on the screen - in OS units.
x%,y% = screen coordinates to move the pointer to.


FNwimp_getpointerposition(side%)
Returns the screen coordinates of the pointer, in OS units.
If side%=0 then the x coordinate is returned.
If side%=1 then the y coordinate is returned.


PROCwimp_bindpointer(window%)
Binds the mouse pointer within the given window in the same manner as a standard error message. It should be used when the window the mouse is to be bound in is opened.
The pointer is also placed inside the bound area if it was outside it.
Useful if your application uses its own error or message windows which you want to force the user to respond to.
As the pointer cannot reach any of the window control icons, your window should have a title bar at most.


PROCwimp_releasepointer
Releases the mouse pointer to roam over the whole screen after using PROCwimp_bindpointer. It should be used when the window the mouse is bound in is closed.




Top of page        Back to Contents        Previous        Next