Enables an application to dynamically control what is displayed in an IPF window.
Syntax
┌───────────────┬───────────────┬───────────────┬───────────────┐ │Tag │Element │Attributes │End │ ├───────────────┼───────────────┼───────────────┼───────────────┤ │:acviewport. │Have IPF call a│dll=' ' │ │ │ │function in a │objectname=' ' │ │ │ │dynamic-link │objectinfo=' ' │ │ │ │module. │objectid=' ' │ │ ├───────────────┼───────────────┼───────────────┼───────────────┤ │ │Define the │vpx= │ │ │ │window in which│vpy= │ │ │ │the function │vpcx= │ │ │ │runs. │vpcy= │ │ └───────────────┴───────────────┴───────────────┴───────────────┘
Attributes
dll=' '
These attributes can be expressed as absolute values, relative values, or dynamic values:
Absolute value:
c
left | center | right
Description
:acviewport. is used in either a help file or an online document file to specify that a window will be under the control of a routine that was written and compiled as part of a dynamic-link module. When an IPF window is selected for display at run time, and :acviewport. is encountered, IPF passes control to the entry point (objectname=) in the dynamic-link module. At this point, the routine in the module takes control. For more information, see Customizing IPF with Communication Objects.
The definition for :acviewport. must follow a primary heading; for example:
:h2 res=2000 x=left y=top width=100% height=100% scroll=none titlebar=both clear group=1.Information Windows :acviewport dll='My_DLL' objectname='My_Routine' objectid='1' vpx=right vpy=top vpcx=50% vpcy=100%
In the example, a window is displayed within the primary window indicated by the heading tag (:h2.) and its attributes. The contents of the window are controlled by the communication object, My_Routine, in the dynamic-link module, My_DLL.
When the user selects the primary window and :acviewport. tag is encountered, IPF calls the communication object in the dynamic-link module and sizes the child window.