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 well...
The script invoked by the push button event receives an event object
as argument.
The property Source of this event object gives you the control which
invoked the script.
The method getContext()of a control gives you the dialog it belongs to.
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).
If it was possible to tell the dialog to supply an argument (the event
object, the XDialog object etc.) for the script that gets invoked via
the scripting framework then everything would be fine. Maybe it is
possible already, but if so, how would one supply that in the URL which
is used to locate and invoke the script? Or, is there a means in the
scripting framework itself to get at this information?
Regards,
---rony
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]