Hi Douglas,

Alle 19:16, giovedì 10 novembre 2005, Douglas Staas ha scritto:
> 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?
>
> * Macros don't run when a 2nd OO file is open unless the macro editor is
> open. When will this be resolved?


I don't want to dig into details but ony let you know that IMHO your macro is 
not well conceived and perhaps your problem is only a side effect of that.

1) You have manually binded the events keyPressed and MousButton-pressed to 
the SetAllTexts subroutine

2) You have set the OK Button as Button Type = "OK"

I think that your problem is due to the fact that the 2) causes the dialog to 
close before the events has been raised.

This is the normal behaviour and you can find a detailed explanation of that 
in the DevGuide at:
11.3.3    Special Behavior of OpenOffice.org Basic
        Rescheduling

BTW the DevGuide shows an example that covers exactly your situation.

However, my suggestion is to remove the binding of events and modify your 
"PromptForValues" as shown below.

--------
Sub PromptForValues
    DialogLibraries.LoadLibrary( "SlaySysLibrary" )
    oDialog = CreateUnoDialog( DialogLibraries.SlaySysLibrary.SlaysysDialog )
    If oDialog.Execute() = 1 Then
        SetAllText()
    End If
end Sub
--------

hope that helps

PaoloM




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to