Hi Andreas,
Alle 13:03, mercoledì 14 marzo 2007, Andreas Bregas ha scritto:
[....]
> Sorry, but as described in the Developers Guide, chapter
> "18.6.1 Scripting Framework URI specification" the script
> URI does not support parameters. In general this would
> not make much sense anyway as the URIs are usually used
> for binding (control) events to scripts and parameters
> do not exist there.
In this case (binding control events to scripts) there is an implicit "event"
parameter that is passed from the broadcaster to the script.
I'm sure that it works at least for StarBasic.
I'm using this "feature" from a lot, but perhaps it is not documented.
Example:
Create a "Dialog1" in the standard lib
Add a command button
Bind the Button1_click macro with the onAction event of the button
Run the following macro (sub showdlg)
REM ***** BASIC *****
sub showdlg
oDlg = createUnoDialog(DialogLibraries.Standard.Dialog1)
oDlg.execute
end sub
'manually binded to the "onAction" event of Button1
Sub Button1_Click(oEvt)
Print oEvt.source.Model.Label
End Sub
regards
Paolo M
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]