ITT Rule IDL Version 7.0 User Manual Page 220

  • Download
  • Add to my manuals
  • Print
  • Page
    / 430
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 219
220 Chapter 8: Creating a Manipulator
Creating a New Manipulator iTool Developers 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
Page view 219
1 2 ... 215 216 217 218 219 220 221 222 223 224 225 ... 429 430

Comments to this Manuals

No comments