C++Builder 5 Developers Guide
The Tools API also provides a way to gain access to the various IDE Editors. For our Wizard example, we won't be demonstrating any of the interfaces that are available, but let's take a look at the various types of editor interfaces provided by the Tools API, as shown in Table 23.8.
Table 23.8. Tools API Editor Interfaces
Editor Interface | Description |
---|---|
IOTAEditor | This is the base class for all editors. |
INTAFormEditor | Used to gain direct access to the form designer. |
IOTAFormEditor | Used to gain access to the form editor at design time. |
IOTASourceEditor | Used to access a source file within the IDE. |
IOTATypeLibEditor | Used to access a type library file. |
IOTAProjectResource | Used to access and change a projects resource file. |
In addition to this list, one other Tools API interface that is typically used to support editing is IOTAComponent . IOTAComponent is used to examine and modify component properties, select the component in the form editor, delete the component, and do almost anything the user can do in the form editor.
INTAComponent is a native interface for a component. You can cast an IOTAComponent interface to INTAComponent instance using QueryInterface() or Supports() method. This will enable you to access the component instance directly.
|
Top |