Like this? (press the button)
a = Window.new.front;
b = Button(a, Rect(10, 10, 100, 30)).states_([["test", Color.red,
Color.black]])
.action_({arg thisButton; thisButton.remove});
Josh
On Mar 6, 2009, at 6:14 PM, Sam Ingrassia wrote:
Hello -
I saw that you could remove composite views from a window using the
remove method. I cannot seem to find the method for removing things
like buttons, listviews etc? Is this possible to do, or do I need
to have things that need to be removable in composite views?
Thanks,
Sam
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/
******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/
“Every composer – at all times and in all cases – gives his own
interpretation of how modern society is structured: whether actively
or passively, consciously or unconsciously, he makes choices in this
regard. He may be conservative or he may subject himself to
continual renewal; or he may strive for a revolutionary, historical
or social palingenesis." - Luigi Nono
*/
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/