1 person found this helpful
2.) I don't know how to update the control when bringing to the front an already-open document. I've tried adding an onActivate listener to my palette window that calls the ListBox population function, but the palette window isn't deactivated when you change the front document using command-~ or the Window menu, so it only works if you switch documents by clicking their tabs in the application window.
Perhaps adding an eventListener to the appropriate menuItems (that changes the activeDocument) to update your palette will do the trick?
Thanks. I'm just trying to add a bit of polish to an interface that doesn't really require it, and I don't have APID, so I'll probably just exit if more than one document is open.
I might try to add listeners for the Window menu menuItems first; but, since I won't know the names of those ahead of time, that might be something of a challenge. And I don't know if those events will be fired on a command-~. I'll post back if I have any success.