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 does not get the event object supplied (it does not
get any arguments for that matter).
I did like this without problem on OOo 2.0.1 / Win XP.
I created a dialog in My Macros, with a button starting a Python routine
also in My Macros. The dialog was started from another Python routine,
and when I pushed the button, the Python event handler modified a
Textfield of the dialog.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]