A SERVICE OF

logo

Chapter 13: Creating a User Interface Service 303
iTool Developer’s Guide Registering a UI Service
Example
Suppose you have a UI service definition file named myUIService.pro, located in
a directory included in IDL’s !PATH system variable. Register this service with the
iTool system with the following command:
ITREGISTER, 'My UI Service', 'myUIService', /UI_SERVICE
The user interface service can now be invoked via the DoUIService method:
success = oTool->DoUIService('My UI Service', self)
where oTool is an object reference to the current iTool object.
Using the RegisterUIService Method
User interface services can also be registered by a call to the RegisterUIService
method of the IDLitUI object:
self->RegisterUIService, 'My UI Service', 'myUIService'
Note
In most cases, you do not have a reference to the IDLitUI object available, so this
method is not generally useful. We mention it here because the user interface
services registered for use by the standard iTools are registered in this way, rather
than via the ITREGISTER procedure.