I remember reading that, too. I assume they mean you can't add new buttons to any of the toolbars Arbortext provides (anyone confirm that?). You can, however, add your own toolbar defined in XUI and loaded using either the AOM method Window.loadComponentFile or an ACL function that I can't remember right now. The documentation (to me) is a little lacking in this area, but there is some good info on the Adepters archive if you search for 'toolbar'.
> > From: "Song, Myong S. \(Gerald\)" <email@example.com> > Date: Wed, 19 Jan 2005 14:15:40 -1000 > Subject: Adding new toolbar/buttons to Epic Editor 5.1 > > Adepters, > > Documentation clearly state: "You can not add new toolbar buttons to the > toolbar." > > I find this to be unbelievable! Can anyone verify this? > > Aloha. > >
I've created a XUI Toolbar file and was able to use the window_load_component_file ACL command or in our .NET customization a call to the Epic.ActiveWindow.LoadComponentFile method. Unfortunately, I can't seem to load an image or place a label on the toolbar button. Any ideas? This is getting very frustrating....
1) User opens a new document. ACL code creates custom toolbar on the active window. 2) doc_add_callback function specifying the callback 'destroy' is instantiated. 3) User closes the document. The callback routine is called to hide the toolbar, but the first parameter; current_window() returns -1 when it attempts to hide the toolbar using the dlgitem_withraw call. Epic complains that the window specified does not exist.
I'm trying to clean up any custom toolbar buttons when the user closes the document.
I assume (in other words, I'm guessing) that your problem is caused by the window already being gone by the time your callback function is executed. I was able to accomplish this in Java using a DocumentUnload event listener rather than the doc_add_callback. The documentation for the DocumentUnload event in the programmer's guide states: "The DocumentUnload event occurs when a document is unloaded from a window frame. There is no ACL callback equivalent for this event." Inside of my event handler code is (among other things) a call to Acl.eval("dlgitem_withdraw()") I left out the parameters to dlgitem_withdraw just to make it easier to read here.
> > From: "Song, Myong S. \(Gerald\)" <firstname.lastname@example.org>
What am I doing wrong here? I've implemented the IDOMEventListener interface with my handleEvent method. "Registered" my events with the AddEventListener method of the events I'd like to capture. The Window events seem to work. MenuSelected works fine. But I can't capture any of the Document events such as DocumentUnload, DocumentCreated, DocumentClosed, etc? What am I missing?