[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] MultiSlider issues
ok i replaced memcpy with slotDoubleVal and fixed value_ so that this
works as expected:
f = FlowView.new;
// random 1 or 0 (integers) - multislider display is empty
x = SCMultiSliderView(f, Rect(0, 0, 300, 100)).value_(Array.fill(10, {
2.rand }));
// random 1.0 or 0.0 (floats) - multislider display is correct
y = SCMultiSliderView(f, Rect(0, 0, 300, 100)).value_(Array.fill(10, {
1.0.rand.round }));
also i fixed the draw method so that the following code shows more
values when resized:
(
w = SCWindow("test", Rect(200 , 450, 200, 200));
v = SCMultiSliderView(w, Rect(10, 10, 180, 180));
v.value = (0.0, 0.01 .. 1);
v.resize = 5;
w.front;
)
i see now what you mean with the resizing behaviour, maybe we can add a
flag that support resizing the way you like it?
regards,
jan
On Saturday, December 20, 2003, at 12:40 AM, James McCartney wrote:
(
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;