Re: Programmatically scrolling
Re: Programmatically scrolling
- Subject: Re: Programmatically scrolling
- From: Henry McGilton <email@hidden>
- Date: Tue, 25 Mar 2003 08:00:00 -0800
On Tuesday, March 25, 2003, at 04:20 AM, Quentin Mathi wrote:
Le mardi, 25 mars 2003, ` 10:55 Europe/Paris, Jeffrey Mattox a icrit :
I want to move a scroll bar programmatically. I can get the scroller
object, and I can set its value, but nothing happens. How do I cause
it to display the updated scroll view after doing this:
[[theScrollView verticalScroller] setIntValue:1];
In order to scroll a scrollView, you need to change the clipView (not
the scroller) like that :
[theClipView setBoundsOrigin:NSMakePoint([theClipView
bounds].origin.x, [theClipView bounds].origin.y + 25)]
Then the scroller will be automatically updated, that's it.
Possibly scrollToPoint might be more appropriate
Best Wishes,
........ Henry
===============================+============================
Henry McGilton | Trilithon Software
Boulevardier, Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden |
http://www.trilithon.com
===============================+============================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.