Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Annotations
OnControlMouseEnter

See Also Example
Collapse All

This property gets or sets an action to be performed when the cursor enters the PDF control's active area.

Syntax

LONG OnControlMouseEnter { get; set; }
Value
Number of the action

Remarks

The number of the action can be retrieved from any action-creating method, such as CreateJavaScriptAction.

Example

Handling OnAnnotMouseEnter and OnAnnotMouseExit

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
a1 := PDF.CreateJavascriptAction('app.alert("Mouse enter.")');
a2 := PDF.CreateJavascriptAction('app.alert("Mouse exit.")');

PDF.AddButton(10, 10, 60, 24, 'Button');
PDF.OnControlMouseEnter := a1;
PDF.OnControlMouseExit := a2;

PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
long a1 = PDF->CreateJavascriptAction("app.alert('Mouse enter.')");
long a2 = PDF->CreateJavascriptAction("app.alert('Mouse exit.')");

PDF->AddButton(10, 10, 60, 24, "Button");
PDF->OnControlMouseEnter = a1;
PDF->OnControlMouseExit = a2;

PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
long a1 = PDF.CreateJavascriptAction("app.alert('Mouse enter.')");
long a2 = PDF.CreateJavascriptAction("app.alert('Mouse exit.')");

PDF.AddButton(10, 10, 60, 24, "Button");
PDF.OnControlMouseEnter = a1;
PDF.OnControlMouseExit = a2;

PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
a1 = PDF.CreateJavascriptAction("app.alert('Mouse enter.')")
a2 = PDF.CreateJavascriptAction("app.alert('Mouse exit.')")

PDF.AddButton 10, 10, 60, 24, "Button"
PDF.OnControlMouseEnter = a1
PDF.OnControlMouseExit = a2

PDF.SaveToFile "test.pdf", true

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots