Objective Toolkit : Chapter 20 ActiveHost Form Scripting and Editing Framework : ActiveHost Classes
ActiveHost Classes
 
SECScriptHostDoc
The SECScriptHostView is a powerful CFormView-derived class that:
Implements the drag-and-drop for OLE controls,
Manages its accompanying toolbars, and
Implements the user interface for sizing, positioning, and the setting properties of contained ActiveX controls.
For example, SECScriptHostDoc implements the ability to toggle between edit and run mode, to create and delete script items, to handle ActiveScript error notifications, and to create, destroy, and serialize forms and their contents. You can pass an SECScriptHostDoc directly into your doc-template instantiation or you can derive your own document class from it and customize its behavior.
SECScriptHostView
The SECScriptHostView is a powerful form view that is derived from CFormView. It can:
Implement the drag-and-drop of OLE controls onto its surface, and
Implement the user interface for sizing, positioning, and setting the properties of contained ActiveX controls and manage the toolbars that accompany it.
The SECScriptHostView can be passed directly into your doc-template instantiation or you can derive your own view class from it and customize its behavior.
SECAFloatDocTemplate
This class helps you create new forms that support dynamic form creation. Use this class in conjunction with SECScriptHostDoc, SECScriptHostView, and SECADlgFrame to support scriptable frame creation. When the script executes a NewForm() or OpenForm() function, the SECAAppObj responds by instructing the SECAFloatDocTemplate to create a new form. The forms created by the SECAFloatDocTemplate object are usually SECADlgFrame-derived classes.
SECADlgFrame
This frame implements a simple SDI top-level frame that ActiveScript scripts can use during dynamic form creation. The SECAFloatDocTemplate object instantiates a frame of this type whenever the script creates a new form via the OpenForm(), NewForm(), and FormByName() commands.