Mandatory Event Handlers

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Programmers' Reference > ActiveX Integration > ActiveX Integration Examples > HTML > HTML Integration at Document Level >

Mandatory Event Handlers

A mandatory event handler, such as for an already opened file:

 

<!--  custom event 'OnOpenedOrFocused" of StyleVisionControl object  -->
function objStyleVisionControl::OnOpenedOrFocused( strFilePath, bOpenWithThisControl, bFileAlreadyOpened)
{
    if (!bFileAlreadyOpened)
     DoOpenFile(objDoc1, strFilePath);
     msgtext.innerText = "Opened document: " + strFilePath;
}


© 2019 Altova GmbH