AuthenticEvent.button (obsolete) Imprimir este apartado Página anterior Subir un nivel Página siguiente

Inicio >  Referencia del programador > Application API > Interfaces (obsolete) > AuthenticEvent (obsolete) >

AuthenticEvent.button (obsolete)

Superseded by parameters to

AuthenticView.OnMouseEvent (On_AuthenticView_MouseEvent)

AuthenticView.OnDragOver (On_AuthenticView_DragOver)


The event object that holds the information of the last event is now replaced by parameters to the different event handler functions to simplify data access. The event object will be supported for a not yet defined period of time for compatibility reasons. No improvements are planned. It is highly recommended to migrate to the new event handler functions.


// ----- XMLSpy scripting environment - javascript sample -----

// instead of:

// function On_DocEditButtonDown ()

// {

//     if (Application.ActiveDocument.DocEditView.event.button == 1)

//         MsgBox ("left mouse button down detected");

// }

// use now:

function On_AuthenticView_MouseEvent (long i_nXPos, long i_nYPos, SPYMouseEvent i_eMouseEvent, IAuthenticRange *i_ipRange)


  if (i_eMouseEvent & spyLeftButtonDownMask)

       MsgBox ("left mouse button down detected");



See also


Declaration: button as long



Specifies which mouse button is pressed:



No button is pressed.


Left button is pressed.


Right button is pressed.


Left and right buttons are both pressed.


Middle button is pressed.


Left and middle buttons both are pressed.


Right and middle buttons are both pressed.


All three buttons are pressed.




© 2019 Altova GmbH