We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › controlP5: referente to controllers
Page Index Toggle Pages: 1
controlP5: referente to controllers (Read 423 times)
controlP5: referente to controllers
Apr 29th, 2008, 8:32pm
 
I have included an scrolllist that I want to remove when the user clicks one of its buttons.

This code does not work ¿why?

import controlP5.*;
ControlP5 controlP5;
ScrollList l;
void setup() {
  l = controlP5.addScrollList("myList",50,20,200,150);
}
void controlEvent(ControlEvent theEvent) {
  controlP5.controller("myList").remove();
}
Re: controlP5: referente to controllers
Reply #1 - Apr 30th, 2008, 12:53pm
 
try using
Code:

controlP5.remove("myList");


the instance of the list doesnt get removed though, i keep that in mind for the next release.
best,
andi
Re: controlP5: referente to controllers
Reply #2 - Apr 30th, 2008, 1:43pm
 
Thank you very much sojamo and congratulations on your marvellous library.
Page Index Toggle Pages: 1