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

Re: [sc-users] Grid




Hi Tom

hope to have some time to look at this further soon.
Can you label rows and columns? -that could be useful.

I thought it would be better to keep the Grid as "neutral" as
possible, i.e. not to define it's functionality too much as each
user has his/her own ideas what to do with it.

So, if you want to label the nodes in the way Feldman is doing
in the score you link to, you could just use the SCStaticText
or other GUI functions to draw behind the Grid.

(
w = SCWindow("Testing Grid", Rect(10, 500, 500, 212));
14.do({arg i;
SCStaticText(w, Rect(10+((i+1)*30), 30, 100, 20))
.string = i.asString;
});
a = Grid.new(w, bounds: Rect(20, 20, 460, 140), columns: 14, rows: 4, border:false);
//a.setBackground_(Color.white);
)

Note that in Feldman's score the boxes are the units
whereas in the Grid it's the nodes (intersections of lines).

Is this a score as well?
http://www.studio360.org/images/grid/5a.html

thor