eventName for checkboxControls EventListener [UI]
Does any one know how to add an eventListener to a checkboxControl (not a checkbox)? I can't get a recognised event name.
Thanks
Trevor
Does any one know how to add an eventListener to a checkboxControl (not a checkbox)? I can't get a recognised event name.
Thanks
Trevor
Trevor,
There seem to be *no* supported events for CheckBoxControls. Compare, for example, Document -- the list of supported events (AFTER_ACTIVATE, AFTER_EXPORT, etc.) is listed right below the 'usual' properties of the Document class. I'd have to check what the original XML file says what type this list is; I think it was something like 'class-specific properties'.
Anyway, it may be all scriptable InDesign objects have the properties 'events' and 'eventListeners' and the methods 'addEventListener' and 'removeEventlistener', because they are all based on one common 'Generic_InDesign_Object'. The functions and properties are there, but ... of course every type of object should have its own list of events it can handle. After all, your checkbox would not profit from having a "BEFORE_SAVE_AS" event.
So, one may deduce events were added on a per-object type basis; and apparently Adobe did not think it was useful to add events to your checkbox control. And this may be because the "old style" dialogs are being phased out and replaced by the much more powerful ScriptUI.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.