Quantcast
Channel: PTC Community: Message List - Arbortext
Viewing all articles
Browse latest Browse all 3717

Re: With an ACL function, how to add a menu when Arbortex Editor starts

$
0
0

Hi David,

Here is a simple example for adding a menu after the Help menu in Editor.

 

An important note is to put your load scripts into the /init folder within your custom folders. Any scripts in this folder load when Editor opens. You also need to use a menuloadhook to load the menu function.

 

function initMenus(){

menu_add -menu .Help "MyMenu";

menu_add .MyMenu. "MyCommand" -cmd {myFunction()}

}

add_hook("menuloadhook","initMenus");

 

Hope that helps!


Viewing all articles
Browse latest Browse all 3717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>