APLX Help
: System Classes
: Methods
: Loadpointer
|
|
![]() |
The 'Loadpointer' method |
Argument: Nested vector - see description Valid for: System The Loadpointer method can be used to define a new pointer or cursor. The pointer is given a number in the range 100 - 119 which can then be used when
setting the ⍝ Load pointer from file and give it the number 100 '⎕' ⎕wi 'Loadpointer' 100 'C:\Windows\Cursors\banana.ani' ⍝ Set 'mycontrol' to use this as its pointer mycontrol.pointer←100 The pointer only needs to be loaded once and it can then be shared by multiple controls. Loading a pointer from fileSyntax:
This form allows a pointer to be loaded from a file. Windows: The data in the file must be in either .CUR or .ANI format. Macintosh and Linux: Loading a cursor from file is not currently supported Creating a pointer from dataSyntax:
This form allows a monochrome pointer to be specified directly. Example: cursor←15 15⍴16↑1 cursor←cursor∨⌽cursor '⎕' ⎕WI 'Loadpointer' 100 8 8 (~cursor) cursor Using a pre-loaded pointerSyntax:
This form can be used if you have obtained a handle to a cursor through some other means, for example a |
|
APLX Help
: System Classes
: Methods
: Loadpointer
|
Copyright © 1996-2010 MicroAPL Ltd