A SERVICE OF

logo

Chapter 15: Creating a Custom iTool Widget Interface 359
iTool Developer’s Guide Creating an iTool Launch Routine
ITREGISTER, 'Example2_UI', 'example2_wdtool', /USER_INTERFACE
IPLOT, USER_INTERFACE='Example2_UI'
These lines will create an iPlot tool using our custom user interface.
This approach may be worthwhile when an existing launch routine handles data
specified on the command line in a way that suits your needs. For example, while our
example tool accepts no parameters at the IDL command prompt, specifying our
custom interface as the interface for the iPlot tool allows us to specify data:
IPLOT, EXP(INDGEN(10)), USER_INTERFACE='Example2_UI'