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.
Actions
PDFANNOTATION_OnMouseUp

See Also Example
Collapse All

This property gets or sets an action to be performed when the mouse button is released inside a PDF control's active area.

Syntax

LONG PDFANNOTATION_OnMouseUp { get; set; }
Value
Index of the action

Remarks

The index of the action can be retrieved from any action creating function such as CreateJavaScriptAction.

Equivalent in new interface: IPDFDocument4::OnControlMouseUp.

Example

OnMouseDown/OnMouseUp Example

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;

a1 := PDF.CreateJavascriptAction('app.alert(''Button down.'')');
a2 := PDF.CreateJavascriptAction('app.alert(''Button up.'')');

PDF.PDFPAGE_CreateControl_Edit('edit1', 10, 10, 60, 24);
PDF.PDFANNOTATION_Text := 'Edit1';
PDF.PDFANNOTATION_OnMouseDown := a1;
PDF.PDFPAGE_CreateControl_Edit('edit2', 70, 10, 120, 24);
PDF.PDFANNOTATION_Text := 'Edit2';
PDF.PDFANNOTATION_OnMouseUp := a2;

PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();

a1 = PDF->CreateJavascriptAction("app.alert('Button down.')");
a2 = PDF->CreateJavascriptAction("app.alert('Button up.')");

PDF->PDFPAGE_CreateControl_Edit("edit1", 10, 10, 60, 24);
PDF->PDFANNOTATION_Text = "Edit1";
PDF->PDFANNOTATION_OnMouseDown = a1;
PDF->PDFPAGE_CreateControl_Edit("edit2", 70, 10, 120, 24);
PDF->PDFANNOTATION_Text = "Edit2";
PDF->PDFANNOTATION_OnMouseUp = a2;

PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();

a1 = PDF.CreateJavascriptAction("app.alert('Button down.')");
a2 = PDF.CreateJavascriptAction("app.alert('Button up.')");

PDF.PDFPAGE_CreateControl_Edit("edit1", 10, 10, 60, 24);
PDF.PDFANNOTATION_Text = "Edit1";
PDF.PDFANNOTATION_OnMouseDown = a1;
PDF.PDFPAGE_CreateControl_Edit("edit2", 70, 10, 120, 24);
PDF.PDFANNOTATION_Text = "Edit2";
PDF.PDFANNOTATION_OnMouseUp = a2;

PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc

a1 = PDF.CreateJavascriptAction("app.alert('Button down.')")
a2 = PDF.CreateJavascriptAction("app.alert('Button up.')")

PDF.PDFPAGE_CreateControl_Edit "edit1", 10, 10, 60, 24
PDF.PDFANNOTATION_Text = "Edit1"
PDF.PDFANNOTATION_OnMouseDown = a1
PDF.PDFPAGE_CreateControl_Edit "edit2", 70, 10, 120, 24
PDF.PDFANNOTATION_Text = "Edit2"
PDF.PDFANNOTATION_OnMouseUp = a2

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