DynaPDF Manual - Page 222

Previous Page 221   Index   Next Page 223

Function Reference
Page 222 of 777
The parameter ExpValue defines the export value of the check box for the on state. This value is
exported if the state of the check box is on and if the form is submitted to a web server. The export
value must not be an empty string. The export value for the off state is always "Off".
If the coordinate system is bottom-up the point PosX, PosY defines the lower left corner of the button.
If the coordinate system is top-down it defines the upper left corner.
Like all form fields the width and height is measured incl. the line width of the border. The size of
normal vector graphics is measured without the line width; this must be taken into account when
calculating the width or height of a form field. The line width of the border is derived from the
current graphics state (see SetLineWidth()), it should be either 0, 1, 2, or 3 units (no border, thin,
medium, or thick). The border style can be changed with the functions SetBorderStyle() or
Check boxes use always the standard font ZapfDingbats to draw the check box symbol. It is not
possible to change the font but it is possible to use a custom font size. The font size is used from the
active font; the kind of font that is active is ignored. There is no need to set ZapfDingbats as active
font to enable the usage of a custom font size. The font size is calculated to an optimal value if the
size of the active font is set to 1 unit or if no font is active.
The check box character can be changed with the property Get/SetCheckBoxChar(). If the check box
character is ccCircle, the border appears circular if the check box is a sub control of a radio button
field. If the check box is used stand alone, the border appears always rectangular.
Specific flags supported by check boxes only:
ffRadioIsUnion: If set, a group of radio buttons within a radio button field that use the
same export value for the on state will turn on and off in unison; that is if one is checked, they
are all checked. This flag requires Acrobat 6 or higher.
Interactive form fields can be structured into several groups by passing a handle of a group field to
the parameter Parent. See CreateGroupField() for further information.
Return values:
If the function succeeds the return value is the field handle, a value greater or equal zero. If the
function fails the return value is a negative error code.

Previous topic: CreateCheckBox

Next topic: CreateCIEColorSpace