Re: [api-dev] Scripting Framework and dialogs ...

2006-03-08 Thread Rony G. Flatscher
Jürgen Schmidt wrote: Rony G. Flatscher wrote: Bonsoir Bernard, Bernard Marcelly wrote: Example in Basic: sub doSomething(evt as object) dim myDialog as object myDialog = evt.Source.getContext() end sub Unfortunately, outside of OOo Basic for dialogs this is not possible, as the invoke

Re: [api-dev] Scripting Framework and dialogs ...

2006-03-08 Thread Jürgen Schmidt
Rony G. Flatscher wrote: Bonsoir Bernard, Bernard Marcelly wrote: Example in Basic: sub doSomething(evt as object) dim myDialog as object myDialog = evt.Source.getContext() end sub Unfortunately, outside of OOo Basic for dialogs this is not possible, as the invoked script does not get the

Re: [api-dev] Scripting Framework and dialogs ...

2006-03-07 Thread Rony G. Flatscher
Bonsoir Bernard, Bernard Marcelly wrote: Example in Basic: sub doSomething(evt as object) dim myDialog as object myDialog = evt.Source.getContext() end sub Unfortunately, outside of OOo Basic for dialogs this is not possible, as the invoked script does not get the event object supplied (it

Re: [api-dev] Scripting Framework and dialogs ...

2006-03-07 Thread Bernard Marcelly
Bonjour Rony G. Flatscher Message du 2006-03-07 13:04: Bernard Marcelly wrote: Example in Basic: sub doSomething(evt as object) dim myDialog as object myDialog = evt.Source.getContext() end sub Unfortunately, outside of OOo Basic for dialogs this is not possible, as the invoked script doe

Re: [api-dev] Scripting Framework and dialogs ...

2006-03-07 Thread Rony G. Flatscher
Bounjour Bernard, Bernard Marcelly wrote: Bonjour Rony G. Flatscher Message du 2006-03-07 08:36: Now, if such a script got invoked because a push button was pressed on that dialog, how could that script get handles/references to the other controls on the same dialog? If I understand you wel

Re: [api-dev] Scripting Framework and dialogs ...

2006-03-07 Thread Bernard Marcelly
Bonjour Rony G. Flatscher Message du 2006-03-07 08:36: Now, if such a script got invoked because a push button was pressed on that dialog, how could that script get handles/references to the other controls on the same dialog? If I understand you well... The script invoked by the push button e

[api-dev] Scripting Framework and dialogs ...

2006-03-06 Thread Rony G. Flatscher
Hi there, if one creates dialogs with the OOo 2.x dialog editor and assigns scripts to be invoked via the scripting framework for certain events (e.g. press of a push button), then that script is invoked and can get access to an object that gets created as: ScriptContext.createContext(m_xMode