This content has been marked as final. Show 4 replies
The VueActionSample included with the AutoVue installation illustrates how to implement a custom hotspot action : <AutoVue Installation Folder>\examples\VueActionSample
To avoid conflicts between AutoVue action and your custom action, don't forget to remove VueActionHotspots from your custom.gui file.
The AutoVue demo hotspot action was causing the conflict thanks. I can now see that the right click menu options now trigger the perform sub action method.
The answer given is valid and needed to be followed but my original post/problem is still happening ...
You need to setup a popup trigger to check if an RMB press has been occurred over hotspot.
See com.cimmetry.vueframe.PopupTrigger and the implementation in VueActionSample.PartCatalogueAction (<AutoVue Installation Folder>\examples\VueActionSample) .
In getPopupName(MouseEvent event) you need to keep track of the last hovered hotspot and you should return the right popup name (your custom action menus).
If user fires one of the RMB menus then the performSubAction() (in your custom action) will be invoked with the sub-action name.