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

Re: [Sc-devel] relative coordinates in SCCompositeView ?



Hey Jan,

I've never understood why SCCompositeView doesn't.

I'd be happy to see it changed.

S.

On 6 Dec 2007, at 23:23, Jan Trutzschler wrote:

Hi,
i discovered another inconsistency. While SCScrollView uses relative coordinates to place views, SCComposite doesn't.
Shall we change that for 3.2 ??


(
w = SCWindow.new;

c = SCScrollView(w,Rect(50,0,300,300));

a = SC2DSlider(c,Rect(0,0,100,100));	
b = SC2DSlider(c,Rect(100,100,100,100));

c.background = Gradient(Color.rand,Color.rand);

w.front;
)

(
w = SCWindow.new;

c = SCCompositeView(w,Rect(50,0,300,300));

a = SC2DSlider(c,Rect(0,0,100,100));	
b = SC2DSlider(c,Rect(100,100,100,100));

c.background = Gradient(Color.rand,Color.rand);

w.front;
)

Jan
_______________________________________________
Sc-devel mailing list
Sc-devel@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-devel