Initialization Properties:
Zed provides the boolean property AutoSize to allow
the container to specify that it supports the ability of the
component to automatically resize itself as the expression
changes. If this property is set to true, the component
will resize itself and notify the container with appropriate
events. Typically this property is used by the
container to flow text or other objects around the component.
Zed provides the boolean property GrabFocus to allow
the container to arrange for a particular instance of the editor
to have the focus when the container document is first loaded.
This property is useful if there are several instances of the editor
on a single page, and the intent is that one particular instance should get
the attention of the user first.
Zed provides the string property FontSize to allow
the container to modify the default font size for a particular
instance of the editor.
Setting the value of this property changes the value
of the fontsize attribute in the presentation
of the MathML content contained in the document
associated with this instance of Zed.
<object id="zedit" width="50%" height="50%"
classid="CLSID:8D917303-E449-465A-B882-90EFB15B8492">
<param name="AutoSize" value="false"/>
<param name="GrabFocus" value="true"/>
<param name="FontSize" value="24pt"/>
</object>
The above code, taken from the file
Example/scripting.html,
illustrates how to insert the Zed component into an HTML
page, and how to set the initial values of the AutoSize,
GrabFocus, and FontSize properties
that will be used when the component is first created. In this example,
the value of AutoSize starts out as false, and the
value of GrabFocus is set to true, and the initial
FontSize is set to 24pt.
The value of AutoSize is later set to true by a call to
the function SetAutoSize() that can be found in the file
Example/scripting.js:
function SetAutoSize()
{
// This form resizes Zed to fit the expression
document.zedit.AutoSize = true;
}