Sorry this took so long…
<Cabbage>
form caption("Untitled") size(998, 401), guiMode("queue"), pluginId("def1") bundle("MiniMoogPanel2.png")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 -m0d
</CsOptions>
<CsInstruments>
; Initialize the global variables.
ksmps = 32
nchnls = 2
0dbfs = 1
;instrument will be triggered by keyboard widget
instr 1
iW cabbageGet "form", "width"
iH cabbageGet "form", "height"
prints "iW: %d iH %d\n", iW, iH
SStr = sprintf("bounds(0, 0, %d, %d) file(\"MiniMoogPanel2.png\")", iW, iH)
prints "%s\n", SStr
cabbageCreate "image", SStr
kMouseX chnget "MOUSE_X"
kMouseY chnget "MOUSE_Y"
kMouseDownLeft chnget "MOUSE_DOWN_LEFT"
kKeyPressed chnget "KEY_PRESSED"
kKeyDown chnget "KEY_DOWN"
SKeyModifiers chnget "KEY_MODIFIERS"
if changed(kMouseDownLeft) == 1 && kMouseDownLeft == 1 then
printks "mousex: %d mousey: %d (%f)\n", 0, kMouseX, kMouseY, kMouseX / iW
endif
if changed(kKeyPressed, kKeyDown) == 1 then
printks "pressed: %d down: %d modifiers: %s\n", 0, kKeyPressed, kKeyDown, SKeyModifiers
endif
endin
</CsInstruments>
<CsScore>
;causes Csound to run for about 7000 years...
i 1 0 -1
f0 z
</CsScore>
</CsoundSynthesizer>