Please enable JavaScript to view this site.

Altova StyleVision 2021 Enterprise Edition

Macros can also be used to customize Authentic context menus. This enables the SPS designer to add custom menu items that each execute a macro.


There is no GUI to aid in this process. The SPS designer must add an event handler for the On_AuthenticContextMenuActivated event, and then manipulate the menu via the AuthenticView API. This can be seen in the example file OnContextMenu.sps which is in the Authentic\Scripting folder of the Examples project in the Project window. The screenshot below shows the On_AuthenticContextMenuActivated event handler script in the Scripting Editor.




The event handler for the On_AuthenticContextMenuActivated event creates two menu items and assigns macros to them. This example file also contains an event handler for the On-AuthenticLoad event, which disables entry helpers and markup buttons when AuthenticView is loaded.




© 2015-2021 Altova GmbH