Hello, I’m working to use Cabbage to create a basic VST plugin host that I can use to create FX chains. Thus far the code is very basic and it seems to me that nothing is wrong, but the filebutton’s “populate” attribute does not seem to be working (the other attributes I have set are working but “populate” acts as default, showing all file types and starting up in the working directory). Everything else works normally; the code compiles without any errors and I can select a file and print its path to the console. Is there something I’m missing here (I want the filebutton to show only .dll files and start in the user’s VST plugins folder)?
<Cabbage>
form caption("Untitled") size(400, 300), colour(58, 110, 182), pluginid("def1")
filebutton bounds(5, 5, 100, 40) populate("*.dll", "C:/Program Files/VSTPlugins/") channel("filebutton1") text("Load Plugin", "Load Plugin")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 -m0d
</CsOptions>
<CsInstruments>
; Initialize the global variables.
ksmps = 32
nchnls = 2
0dbfs = 1
instr 1
;counter for printing at k-rate
kcount init 0
kcount+=1
a1 inch 1
a2 inch 2
SFile chnget "filebutton1"
if changed(SFile)== 1 then
printf "%s\n", k(1), SFile
SMessage sprintfk "text(\"Selected File:%s\") ", SFile
puts SMessage, kcount
endif
outs a1, a2
endin
</CsInstruments>
<CsScore>