Images in panels - load and unload
-
@David-Healey except this doesnt work!!!!
It always draws the first image you loaded......
-
-
@David-Healey now even this isnt working:
for(i = 0; i <NUM_individualLibPanels; i++) { individualLibraryPanels[i] = Content.addPanel("iLibPanel" + (i+1), 0, 0); Content.setPropertiesFromJSON("iLibPanel" + (i+1), { "type": "ScriptPanel", "x": 1.0, "y": 0.0, "parentComponent": "LibraryDisplayPanel", "width": 275.0, "height": LIB_PANEL_HEIGHT, "borderSize": 1.0, "borderRadius": 0.0 }); individualLibraryPanels[i].showControl(false); individualLibraryPanels[i].setPaintRoutine(function(g) { Console.print("painting painting"); }); }; -
@Lindon do paint routines trigger for hidden panels?
-
@David-Healey yes
-
@Lindon well actually no paint routines trigger at all and no panel will show up even if I've commented out all teh paint routines...
-
@Lindon literally nothing is working now...I've broken it somehow...
-
@Lindon said in Images in panels - load and unload:
@Lindon literally nothing is working now...I've broken it somehow...
You'll figure it out

-
-
@Lindon ohh
"height": undefined <---whata dumb ass....

