Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Annotations
PDFPAGE_CreateControl_RadioButton

See Also Example
Collapse All

Creates a radio button control in a PDF document.

Syntax

LONG PDFPAGE_CreateControl_RadioButton (
BSTR radioButtonlName,
LONG left,
LONG top,
LONG right,
LONG bottom
)
Parameters
radioButtonlName
Name of the control

left
X coordinate of the left-top corner of the bounding rectangle.

top
Y coordinate of the left-top corner of the bounding rectangle.

right
X coordinate of the bottom-right corner of the bounding rectangle

bottom
Y coordinate of the bottom-right corner of the bounding rectangle

Return value
Index of the RadioButton

Remarks

This method creates a RadioButton control with name radiobuttonName on the current PDF page in an area bounded by the coordinates given.

The return value is an annotation/control identifier in document's annotations collection and can be used in AddControlToAction, CurrentAnnotationIndex.

Equivalent in new interface: IPDFDocument4::AddRadioButton.

Example

Index of the RadioButton

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_CreateControl_RadioButton('btn1', 10, 10, 110, 23);
PDF.PDFANNOTATION_Caption := 'Caption';
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_CreateControl_RadioButton("btn1", 10, 10, 110, 23);
PDF->PDFANNOTATION_Caption = "Caption";
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_CreateControl_RadioButton("btn1", 10, 10, 110, 23);
PDF.PDFANNOTATION_Caption = "Caption";
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_CreateControl_RadioButton "btn1", 10, 10, 110, 23
PDF.PDFANNOTATION_Caption = "Caption"
PDF.EndDoc

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots