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

Re: [sc-users] Parent confusion



UserView is mainly used for drawing stuff on it. For this kind of thing, I use CompositeView instead.

Batuhan

On Jun 19, 2009, at 11:09 AM, Lucas Samaruga wrote:

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