Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Live Slider Behavior



On 06/06/2006 06:09 Am, Eric Schlegel wrote:

> On Jun 6, 2006, at 6:48 PM, Jeremy Sagan wrote:
> 
>> Hey Mike,
>> 
>> Thanks for that. Your code does exactly what I want. The only
>> problem I had with it is that when the MyActionWithValue routine is
>> called, the clipped region is preventing display of my text control
>> so I had to save the clip region, unclip, draw and then restore the
>> clip region. Worked fine after that.
>> 
>> Apple developers take note. Hopefully "Lion" or before will
>> implement Mike's code!
> 
> Did you file a bug? I don't have Mike original message and I don't
> recall the context for what you wanted here.

Here is the message:

http://lists.apple.com/archives/carbon-dev/2006/May/msg00468.html

My rdar on this is rdar://4546330.

The other thing (not mentioned in the rdar) that is IMHO inconvenient
with live variants of sliders/scrollbars is that while tracking thumb
it jumps from value to value and if values are enough pixels apart it
doesn't look smooth. Contrary, with non-live variant, the ghosted
image of thumb moves smoothly and snaps to the nearest value on
release. It might be not very hard to workaround the live variant and
make it look smooth (by setting slider to contain more "values" than
pixels and then scaling control value to real "value"), though it is
inconvenient, less CPU efficient, and more code.

Example of non smooth thumb scrolling:
"System Preferences/Keyboard & Mouse/Keyboard" panel (10.4)

Example of smooth thumb scrolling:
"System Preferences/Sound" panel (10.4)
or the sample code in the link above.

Mike

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Live Slider Behavior (From: Eric Schlegel <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.