Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: HIScrollView scrollbar insert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HIScrollView scrollbar insert




On Mar 9, 2005, at 1:40 AM, Kurt Sutter wrote:

I need to make the horizontal scrollbar of a HIScrollView a bit shorter so that it makes room for another control to the left of it. There seems to be no official API do do that, but last year, Eric Schlegel posted the following to this list:

At 18:17 -0700 16.08.04, email@hidden wrote:
float hInset = 50;
SetControlData( scrollView, kControlNoPart, 'hsin', sizeof( hInset ),
&hInset );

This should cause the horizontal scrollbar to be inset on the left side
by 50 pixels.


There's also a 'vsin' tag for lowering the top of the vertical
scrollbar. I'd rather have actual API for these, and we can add that
post-Tiger, but I don't see any reason why these ControlData tags would
ever be a problem to support so I think we can publish those as well
for use on Tiger and earlier.

This is exactly what I need and it seems to work in MacOS 10.3. Will it be reasonably safe to use that code in my app?

Yes, that's safe. We'll continue to support those tags.

-eric


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >HIScrollView scrollbar insert (From: Kurt Sutter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.