
220 Chapter 8: Creating a Manipulator
Creating a New Manipulator iTool Developer’s Guide
includes the IDLitManpulator::RegisterCursor method. Call this method to register a
custom cursor when the manipulator is initialized.
The RegisterCursor method accepts a 16-element string array of 16 characters each
that defines the body, mask area, and hot spot of the cursor. See
“IDLitManipulator::RegisterCursor” (IDL Reference Guide) for details. This lets you
quickly configure a cursor without having to create and reference a separate bitmap
file. The manipulator cursor is active when it is over a supported visualization type.
Note
You must set the DEFAULT keyword for a custom manipulator cursor when you
use the RegisterCursor method to override the default system manipulator cursor.
Example DoRegisterCursor Method
The following example shows a custom cursor registration method,
DoRegisterCursor, which implements the IDLitManipulator class RegisterCursor
method to create a custom cursor. See “Example: Color Table Manipulator” on
page 226 for a complete example.
; Create and assign the default cursor for the manipulator.
PRO ExampleManip::DoRegisterCursor
; Define the default cursor for this manipulator.
strArray = [ $
' ', $
' ', $
' ', $
' ', $
' ', $
' .#. .#. ', $
' .#..........#. ', $
'.##############.', $
'###....$.....###', $
'.##############.', $
' .#..........#. ', $
' .#. .#. ', $
' ', $
' ', $
' ', $
' ']
; Register the new cursor with the tool.
self->RegisterCursor, strArray, 'LUT', /DEFAULT
END