Here is my code and I can't seem to get Listbox or anything to show up. I found the main code posted on other forums.
I only added the Listbox code however I cannot seem to see any of my objects visible, not sure what’s happening.
var dlg = new Window ("dialog", "Abas", [0,0,0,0]);
dlg.size = [240, 120]
dlg.location = [415, 230]
var tpanel = dlg.add ("tabbedpanel" ,[10,10,0,0],);
tpanel.size = [220,100];
dlg.location = [10, 10];
var general = tpanel.add ("tab", [0,0,0,0], "Color");
var general1 = dlg.add('tabbedpanel')
var boo_tab = general1.add('tab', u, "Create Solids");
var t = boo_tab.add("statictext", undefined, "Hello", {multiline:false});
t.text = "Create Solids";
var listBox = tpanel.add("listbox", undefined, []);
listBox.selection = 0;
listBox.size = [300, 100];
listBox.add("item", "Create 2 solids");
listBox.add("item", "Create Solid");
listBox.add("item", "Create Solid dlgith fractual noise");
var images = tpanel.add ("tab", undefined, "Levels");
var img_options = images.add ("panel", undefined, "Image Options");
var buttons = dlg.add ("group");
buttons.add ("button", undefined, "Export", {name: "ok"});
buttons.add ("button", undefined, "Cancel");
var images1 = tpanel.add ("tab", undefined, "Curves");
var img_options = images1.add ("panel", undefined, "Image Options");
var buttons = dlg.add ("group");
buttons.add ("button", undefined, "Export", {name: "ok"});
buttons.add ("button", undefined, "Cancel");
tpanel.selection = 0;
dlg.center();
dlg.show ();