ITT Rule IDL Version 7.0 User Manual Page 304

  • Download
  • Add to my manuals
  • Print
  • Page
    / 430
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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.
Page view 303
1 2 ... 299 300 301 302 303 304 305 306 307 308 309 ... 429 430

Comments to this Manuals

No comments