Coolmenus properties - Menu events E-mail
User Rating: / 19
PoorBest 
Written by Administrator   
Wednesday, 29 August 2007 17:02

Coolmenus properties - Menu events

This is only for the more advanced users!

The menu currently have 3 events. I might add more events later on. The events are used by the add-ins.

onshow
This event fires after all the changes have been done to all the submenus of a item but before it shows the subs.

Syntax:

myCoolMenu.onshow="whatever code to evaluate"

onhide
This fires when the menu is "turned" off and no items are active.

Syntax:

myCoolMenu.onhide="whatever code to evaluate"

onconstruct
This happens after the construction of the menu. Maybe not very usefull since you can just place the code after the myCoolMenu.construct() line. But it's usefull when making add-ins

Syntax:

myCoolMenu.onconstruct="whatever code to evaluate"

Rember to use event+=";code" if it's for add-ins or you are using add-ins.