ITT Rule IDL Version 7.0 Uživatelský manuál Strana 303

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 430
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 302
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 IDLs !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.
Zobrazit stránku 302
1 2 ... 298 299 300 301 302 303 304 305 306 307 308 ... 429 430

Komentáře k této Příručce

Žádné komentáře