Check Box - Adobe 12001196 - Acrobat - Mac Manual

Javascript
Hide thumbs Also See for 12001196 - Acrobat - Mac:
Table of Contents

Advertisement

Using Acrobat JavaScript in Forms
4
Creating form fields programmatically
Region/Name
Icon
Table Notes.
For "Select Icon" under "Button Face Attributes", the basic tool for associating a icon with
a button face is
in the PDF file. See the
into a button face.
buttonImportIcon
Actions Tab
The action of the button can be set with the field level
names "MouseUp", "MouseDown", "MouseEnter", "MouseExit", "OnFocus", "OnBlur". For
example,
f.setAction("MouseUp", "app.beep(0);")

Check Box

The Check Box Properties dialog has four tabs: General, Appearance, Options, and
Actions.
General Tab
The General tab shows the same set of properties as for buttons. For details, see the
General Tab
Appearance Tab
The Appearance tab shows the same set of properties as for buttons. For details, see the
Appearance Tab
textFont. In the case of a check box, the font is always Adobe Pi.
Options Tab
The Options tab allows you to set the style of check mark used in the field and the export
value.
Region/Name
Check Style
Export Value
Check box is checked
by default
66
See Reference
buttonSetIcon
buttonSetIcon
Doc Object addIcon
can be used to introduce named icons into the document.
for buttons.
for buttons. There is one difference, however — there is no choice for
See Reference
style
setFocus
defaultIsChecked
Example
See table notes
however, this assumes there is a named icon already
;
for a complete example of inserting an icon
setAction
Example
f.style = style.ci;
f.setExportValues(["buy"]);
f.defaultIsChecked(0);
See table notes
method with trigger
Acrobat JavaScript Scripting Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat 6.0

Table of Contents