I’ve added a new moveBehind()
identifier. It takes the channel name of a widget you wish to move this widget behind. Note it should only be called from the Csound orchestra using a cabbageSet
opcode.
Note that the widgets/plants you want to move have to have the same parent.
Example:
<Cabbage>
form caption("Test") size(150, 150), guiMode("queue")
image bounds(0, 0, 100, 100), colour("red"), channel("image1")
image bounds(0, 0, 100, 100), colour("yellow"), channel("image2")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 -m0d
</CsOptions>
<CsInstruments>
ksmps = 32
instr 1
cabbageSet "image2", "moveBehind(\"image1\")"
endin
</CsInstruments>
<CsScore>
;causes Csound to run for about 7000 years...
i1 0 z
</CsScore>
</CsoundSynthesizer>