CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


Events (Win32)

The DjVu Browser Plug-in fires the following events:

 

Name

Description

PageChange(newpage)

Fired after the page changes, after the newly current page is decoded. Methods and properties that depend on the decode status of the document should be called from this event.

Example (JScript):

<SCRIPT FOR=myDjVu EVENT="PageChange(newpage)" LANGUAGE="JScript">

myDjVu.HighlightTerm("DjVu",0,

0,1,"&HFF0000");

</SCRIPT>

ZoomChange(newzoom)

Fired after the zoom changes.

Example (JScript):

<SCRIPT FOR=myDjVu EVENT="ZoomChange(newzoom)" LANGUAGE="JScript">

        alert("Zoom Changed to " + newzoom);

</SCRIPT>

BackForwardChange (backforward)

Fired whenever the view changes. Adds last view to the record of navigational history.

Example (JScript):

<SCRIPT FOR=myDjVu EVENT="BackForwardChange(backforward)" LANGUAGE="JScript">

alert("backforward is" + backforward);

</SCRIPT>

ScrollEvent (hv)

Fires whenever user pans or moves the scrollbar.

Example (JScript):

<SCRIPT FOR=myDjVu EVENT="ScrollEvent(hv)" LANGUAGE="JScript">

alert("Scroll Changed " + hv);

</SCRIPT>

DisplayModeChange (newlayer)

Fires whenever a new layer is selected for view.

Example (JScript):

<SCRIPT FOR=myDjVu EVENT="DisplayModeChange(newlayer)" LANGUAGE="JScript">

alert("Layer Changed to " + newlayer);

</SCRIPT>

HyperlinkClick

(pDolink, pUrl, pTarget, pComment)

 

Fired when a hyperlink is clicked to enable blocking, redirecting or granting link access.

Example (Visual Basic):

Note: Only applicable when a DjVu document contains hyperlinks):

Private Sub DjVuCtl1_HyperlinkClick(pDolink As Boolean, pUrl As String, pTarget As String, pComment As String)  

If (pUrl = "http://www.lizardtech.com/") then

      pDolink = 1

      pUrl = "http://www.extensis.com"  

pTarget = "new"

pComment = " If original URL is "http://www.lizardtech.com/", redirect to http://www.extensis.com in a new window"

ElseIf (pUrl = "http://www.extensis.com") Then

pDolink = 0                                                

pComment = " If original URL is "http://www.extensis.com", block link"

Else

pDolink = 1

pUrl = "http://www.msn.com" 

pComment = "If any other URL, redirect to http://www.celartem.com"

End If

End Sub

 



You are reading help file online using chmlib.com

If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com
Partner sites: Logo Design, Simple Anti-Crisis Accounting Software, Voice Search for Web