



Collapse All
Syntax| LONG PDFANNOTATION_OnMouseExit { get; set; } |
RemarksThe index of the action can be retrieved from any action creating function such as CreateJavaScriptAction.
Equivalent in new interface: IPDFDocument4::OnControlMouseExit.
Example{ PDF object is supposed to be created }
PDF.BeginDoc;
a1 := PDF.CreateJavascriptAction('app.alert(''Mouse enter.'')');
a2 := PDF.CreateJavascriptAction('app.alert(''Mouse exit.'')');
PDF.PDFPAGE_CreateControl_Edit('edit1', 10, 10, 60, 24);
PDF.PDFANNOTATION_Text := 'Edit1';
PDF.PDFANNOTATION_OnMouseEnter := a1;
PDF.PDFANNOTATION_OnMouseExit := a2;
PDF.EndDoc;
// PDF object is supposed to be created
PDF->BeginDoc();
LONG a1 = PDF->CreateJavascriptAction("app.alert('Mouse enter.')");
LONG a2 = PDF->CreateJavascriptAction("app.alert('Mouse exit.')");
PDF->PDFPAGE_CreateControl_Edit("edit1", 10, 10, 60, 24);
PDF->PDFANNOTATION_Text = "Edit1";
PDF->PDFANNOTATION_OnMouseEnter = a1;
PDF->PDFANNOTATION_OnMouseExit = a2;
PDF->EndDoc();
// PDF object is supposed to be created
PDF.BeginDoc();
long a1 = PDF.CreateJavascriptAction("app.alert('Mouse enter.')");
long a2 = PDF.CreateJavascriptAction("app.alert('Mouse exit.')");
PDF.PDFPAGE_CreateControl_Edit("edit1", 10, 10, 60, 24);
PDF.PDFANNOTATION_Text = "Edit1";
PDF.PDFANNOTATION_OnMouseEnter = a1;
PDF.PDFANNOTATION_OnMouseExit = a2;
PDF.EndDoc();
' PDF object is supposed to be created
PDF.BeginDoc
a1 = PDF.CreateJavascriptAction("app.alert('Mouse enter.')")
a2 = PDF.CreateJavascriptAction("app.alert('Mouse exit.')")
PDF.PDFPAGE_CreateControl_Edit "edit1", 10, 10, 60, 24
PDF.PDFANNOTATION_Text = "Edit1"
PDF.PDFANNOTATION_OnMouseEnter = a1
PDF.PDFANNOTATION_OnMouseExit = a2
PDF.EndDoc
See Also