|
First - thanks again. So forgive me for being a little dense on this. Matthias Benkmann wrote: OK, I will go over that in more detail. On page 478 in the Dev.Guide 5-2005 it says;On 1/2/06, Andrew Jensen <[EMAIL PROTECTED]> wrote:Matthias, "All event bindings can be seen or set in the OpenOffice.org UI in the Tools-Configure dialog on Events page." I did not realize it was limiting this just to one of the interfaces. On page 478 in DevGuide again. I may have missed the context on this however, it is just below as section talking about the events OnStartApp and OnCloseApp, maybe this is limited to only this case. I am guessing however that it may have more to do with the 2 seperate interfaces you mentioned earlier. Because if you assign any of these events to a procedure that takes a parameter it generates an error 'Wrong number of parameters", assign to a procedure with no parameters and it is happy. Thanks OK Actually, in the case of all document types other then Base they are very useful. The macro (basic procedure) assigned to the event is not called until the frame is already on the desktop - so I could have used thisComponent, StarDeskTop.CurrentComponet or StarDesktop.CurrentController.Frame for my purposes. It is only when it is an ODB file being loaded that the frame has not been displayed on the desktop before the call to the assigned procedure. To do things properly you have to use the XEventBroadcaster interface to register a real event handler. I don't know how to do this from StarBasic or if it it is even possible. Matthias Bottom line is, I have a lot to learn abou this tool and appreciate your help --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Re: [api-dev] Is there any way to catch when a Base docu... Matthias Benkmann
- Re: [api-dev] Is there any way to catch when a Base... Andrew Jensen
