[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] MultiSlider issues
On Dec 19, 2003, at 3:46 AM, Jan Trutzschler v.F. wrote:
On Thursday, December 18, 2003, at 05:27 PM, James McCartney wrote:
That still isn't what I'd like.
I'd like it to dynamically resize as the window resizes.
How do you this anyway resize the views when the window resizes?
by setting the resize property. default is 1.
(
w = SCWindow("test", Rect(200 , 450, 200, 200));
v = SCMultiSliderView(w, Rect(10, 10, 180, 180));
v.value = (0.0, 0.1 .. 1);
v.resize = 5;
w.front;
)
/*
resize behaviour in an SCCompositeView:
1 2 3
4 5 6
7 8 9
1 - fixed to left, fixed to top
2 - horizontally elastic, fixed to top
3 - fixed to right, fixed to top
4 - fixed to left, vertically elastic
5 - horizontally elastic, vertically elastic
6 - fixed to right, vertically elastic
7 - fixed to left, fixed to bottom
8 - horizontally elastic, fixed to bottom
9 - fixed to right, fixed to bottom
*/
--
--- james mccartney james@xxxxxxxxxxxxxx <http://www.audiosynth.com>
SuperCollider - a real time audio synthesis programming language