[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Parent confusion



Hi all

I'm trying to understand the GUI system...
Why can't I make an UserView the parent of an, e.g, StaticText?
Is there any rule?

the code:

(

w = Window.new("test");

w.front;


u = UserView.new(w, w.view.bounds);

u.background = "" style="color: #0000bf">Color.white;


t = StaticText(u, u.bounds).align = \center;

t.string = "SuperCollider";

)


Thanks in advance
Lucas