ITT Rule IDL Version 7.0 Manuel d'utilisateur Page 304

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 430
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 303
304 Chapter 13: Creating a User Interface Service
Executing a User Interface Service iTool Developers Guide
Executing a User Interface Service
Once you have defined and registered a user interface service and created any
supporting user interface code, you can call the service from any iTool operation
simply by calling the DoUIService method of the IDLitTool class.
In most cases, the DoUIService method is called from the DoExecuteUI method of an
IDLitOperation or an IDLitDataOperation. For example, the following routine is the
DoExecuteUI method of an operation that calls the
ScaleFactor user interface
service:
FUNCTION IDLitopScalefactor::DoExecuteUI
oTool = self->GetTool()
IF (oTool EQ OBJ_NEW()) THEN RETURN, 0
RETURN, oTool->DoUIService('ScaleFactor', self)
END
The GetTool method is part of the IDLitIMessaging class, which is a superclass of all
iTool operation classes; it returns an object reference to the current iTool. This
method calls the
ScaleFactor user interface service with the operation itself as the
currently selected object, which allows the UI service to modify the operation’s
properties. The second argument to the DoUIService method is an object reference
that can be used by the service to modify the object’s properties.
Vue de la page 303
1 2 ... 299 300 301 302 303 304 305 306 307 308 309 ... 429 430

Commentaires sur ces manuels

Pas de commentaire