Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Pages: 1
I have been looking through the template plugit code on the wiki, and since I will be building (or modding) a couple of these, I have some general questions:
the PARAM tag :
the "name" param contain the name of the editor variable to save
the "type" param contain the type of the param, it can be :
"value"
1. are "values" always stored as strings?
fun cbCloseEdit(ctrlinit)=
// get the check state and add it to the param list
let itoa getEdCtrlCheckState ctrlinit -> state in
["oninit" state]::
nil;;
2. this callback function is the a reserved term ('cbCloseEdit') that you use to save data to the .xml file when the plugit is closed, correct?
3. and lastly, the done event cannot send strings to another plugit (at least when I open the 'edit links' window. how would I modify the editor/client/xml code to allow for this?
I'm looking at the http://redmine.scolring.org/projects/op … t_api.html page to see how this template works.
thx.
Offline
thanks for the reply Arkeon, as for question 3, here is a picture:
how do I get the drop down (1) to be activated, so a string can be passed with the 'done' event?
what is the box below that (2) for, is it for the user parameter passed in the link?
how are the link parameters saved to the .xml file?
how is
fun cbGo(inst, from, action, param, rep, uparam)
represented in the fields of the link dialog window?
thx (for your patience, once I learn this plugit api I think I can really help others as opposed to working on my own dead end coding).
-h
Last edited by hebdemnobad (16-Aug-2014 18:09:43)
Offline
just add enum in Action like this : in the xml file
<ACTION name="Set view position">
<ENUM value="x y" />
<ENUM value="x%25+y%25" />
<ENUM value="10 10" />
<ENUM value="50%25+50%25" />
</ACTION>
Offline
thx for the reply Arkeon but I don't understand....to get a string passed from "done" to "go", don't I have to change the code for the "done" event in the .xml? and how would I implement that in the editor and/or client files?
Offline
hmm it don't work like this
this content in the xml is only for presets or data format.
in a plugit when you call SendPluginEvent you send the link parameter with it.
SendPluginEvent inst "myevent" "done" nil
SendPluginEvent inst "myevent" "go" nil
then if you manually set a link parameter in the link interface, this one will overwrite the link value sent by the plugIT event.
Offline
hmm it don't work like this
this content in the xml is only for presets or data format.
in a plugit when you call SendPluginEvent you send the link parameter with it.
SendPluginEvent inst "myevent" "done" nil
SendPluginEvent inst "myevent" "go" nil
thx...so in the link dialog, what graphic element represents the param in SendPluginEvent, and in other plugit functinos, what graphic element represents uparam?
Offline
just add enum in Action like this : in the xml file
<ACTION name="Set view position"> <ENUM value="x y" /> <ENUM value="x%25+y%25" /> <ENUM value="10 10" /> <ENUM value="50%25+50%25" /> </ACTION>
So those XML tags determine what's in the dropdown list (1) in my picture?
Offline
arkeon wrote:just add enum in Action like this : in the xml file
<ACTION name="Set view position"> <ENUM value="x y" /> <ENUM value="x%25+y%25" /> <ENUM value="10 10" /> <ENUM value="50%25+50%25" /> </ACTION>
So those XML tags determine what's in the dropdown list (1) in my picture?
So this means that the options in the dropdown list (1) are determined by the action xml markup, not the event xml markup? Or can they be determined by both action markup and event markup?
Offline
Offline
Yes it can be only defined by Action.
But you're right some place to show the Event data format should be usefull even if it's generally in the documentation.
thx
Offline
Pages: 1