[sc-users] BoxGrid scroll
Scott Wilson
i at scottwilson.ca
Wed Oct 3 20:26:45 PDT 2007
Fixed. Let me know if anything else shakes loose...
S.
On 3 Oct 2007, at 15:39, Scott Wilson wrote:
> Ah this looks like a little bug. It has something to do with
> resetting the bounds to the far end and then hiding the scroller.
> If you reverse the order it's not a problem.
>
> I'm not sure why the NSScrollView doesn't handle this situation
> gracefully; it looks like something in the resizing is causing a lock.
>
> I'll look at it later, but in the meantime go ahead and make your
> changes. This is not a major issue and should be easy to fix.
>
> S.
>
> On 3 Oct 2007, at 11:32, thor wrote:
>
>>
>> hey scott
>>
>> I thought I'd have a go at this, but SCScrollView crashes the
>> language here.
>>
>> It's this line:
>>
>> b.hasHorizontalScroller_(false);
>>
>> In the code below:
>>
>> (OSX 10.4.9 - SC build from yesterday)
>>
>> thor
>>
>> (
>> a = SCWindow.new;
>>
>> b = SCScrollView(a, Rect(0,0,150,100));
>> c = SC2DSlider(b, Rect(0,0,100,100));
>> d = SC2DSlider(b, Rect(100,0,100,100));
>>
>> a.front;
>> )
>>
>> a.view.background = Color.white;
>>
>> b.background = Color.grey;
>>
>> d.bounds = Rect(100,0,1000,100); // the 'canvas' grows to
>> accomodate it
>>
>> b.resize = 5; // the ScrollView resizes, but not its contents
>>
>> b.hasBorder_(true);
>>
>> b.hasBorder_(false);
>>
>> b.visibleOrigin;
>>
>> b.visibleOrigin = Point(2000, 0); // clips to the bounds of its
>> contents
>>
>> b.hasHorizontalScroller_(false);
>>
>> b.hasVerticalScroller_(true);
>>
>> b.autohidesScrollers_(false);
>>
>> a.close;
>>
>>
>> _______________________________________________
>> sc-users mailing list
>> sc-users at create.ucsb.edu
>> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-users/attachments/20071003/fc714dc4/attachment.htm
More information about the sc-users
mailing list