Mandatory Event Handlers

www.altova.com Imprimir este apartado Página anterior Subir un nivel Página siguiente

Inicio >  Referencia del programador > 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