Re: [api-dev] macro doesn't run

2005-11-11 Thread Douglas Staas
How did you prove that the macro didn't run? Because nothing happened. The macro is supposed to change text in the Draw file and display a graphic. Also, the print 'hallo' line doesn't run. The macro is not called. This is a case where running the same code with the same input results in

Re: [api-dev] macro doesn't run

2005-11-11 Thread Douglas Staas
Thanks to Paolo and everyone else who's offered ideas. Paolo's fix worked. 11.3.3 appears to be very general. I don't see how it applies to this specific scenario. Then again, perhaps understanding the difference between an OK button and a Default type button would help. If so, where could I

Re: [api-dev] macro doesn't run

2005-11-11 Thread Douglas Staas
Ok, so due to the rescheduling of threads, sometimes an OK button's events get fired as expected and sometimes the dialog is closed before those events get run? Does this mean that binding code to OK button events is generally a bad idea with Open Office? I'm just trying to understand. This

Re: [api-dev] macro doesn't run

2005-11-11 Thread Andrew Douglas Pitonyak
In my opinion, yes. If you want the default behavior, then do not attache anything else to it, otherwise, do it all in your own code. Douglas Staas wrote: Ok, so due to the rescheduling of threads, sometimes an OK button's events get fired as expected and sometimes the dialog is closed

Re: [api-dev] macro doesn't run

2005-11-10 Thread Mathias Bauer
Douglas Staas wrote: My questions keep piling up. If this isn't the right place to ask them, where should I seek answers/useful documentation? If this is the right place to ask them, what do I need to do to engage in a dialog about these issues? It's the right place here, but maybe nobody

Re: [api-dev] macro doesn't run

2005-11-10 Thread Mathias Bauer
Douglas Staas wrote: I'm still not sure if I understood you correctly. Here are the steps to recreate this situation. Let me know if something isn't clear. 1: open some other OO doc 2: open my binder covers template OO doc 3: the macro that runs on the open event (PromptForValues)

Re: [api-dev] macro doesn't run

2005-11-08 Thread Douglas Staas
What do you mean by provide for disposal when the document is closed? Where could I find this in the documentation? Le vendredi 04 novembre 2005 à 20:00 +, Douglas Staas a écrit : Hi, I have a Draw file open. Then I open the Draw file that has my macros. The resulting dialog

Re: [api-dev] macro doesn't run

2005-11-08 Thread Douglas Staas
Wow. I sent this yesterday morning. It took 24 hours to get out? What do you mean by provide for disposal when the document is closed? Where could I find this in the documentation? Le vendredi 04 novembre 2005 à 20:00 +, Douglas Staas a écrit : Hi, I have a Draw file

Re: [api-dev] macro doesn't run

2005-11-03 Thread Mathias Bauer
Douglas Staas wrote: 1: One other tidbit just came to mind. I'm not sure if this is relevant, but the 'record macro' off of the menus is always greyed out on my fresh install of OOo2.0 so I'm assuming this is a future feature. Is that an accurate assumption? Recording only works in Calc and

Re: [api-dev] macro doesn't run

2005-11-02 Thread Douglas Staas
1: One other tidbit just came to mind. I'm not sure if this is relevant, but the 'record macro' off of the menus is always greyed out on my fresh install of OOo2.0 so I'm assuming this is a future feature. Is that an accurate assumption? 2: Anyway, as things stand right now, I remain unable to

Re: [api-dev] macro doesn't run

2005-11-01 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Douglas, I have a macro that calls a dialog. The dialog calls a 2nd macro. The 2nd macro doesn't run unless the macro editor is open. Is this the right place to seek guidance on this issue? If not, where should I look? works for me with OOo 2.0, well I changed your macro slightly, so

Re: [api-dev] macro doesn't run

2005-11-01 Thread Douglas Staas
It worked for me in OOo 2.0 for a short time as well. After closing and re-opening the file, that 2nd macro no longer gets called until I have opened the macro editor. If nobody else has ever had this problem, what can I do? I'm running Windows XP using VMware. The host operating system is Red