Re: My Slider has spikes
Re: My Slider has spikes
- Subject: Re: My Slider has spikes
- From: Ron Fleckner <email@hidden>
- Date: Fri, 13 Apr 2007 11:12:20 +1000
On 13/04/2007, at 10:37 AM, Andrew Farmer wrote:
On 12 Apr 07, at 17:26, Ron Fleckner wrote:
Hi,
I make a popup window for a slider in my app. My problem is that
the slider has strange little barbs or spikes near the ends of
it's 'track' and the ends of the track are squared off rather than
rounded. Here's the whole code I use to create the window...
<snip>
My first guess would be that the slider dimensions are wrong - a
full-size slider is 21 pixels wide, and you're trying to make it
stretch to 32. (Is there any reason you aren't putting this all in
a nib?)
Hi Andrew,
setting the slider width to 32 (35 actually) makes it position nicely
in it's window. But, if a slider must be 21, I'll do that and adjust
it's origin. Murat Konar saw the problem: I'd flipped the slider's
view and the rounded ends were being drawn at the wrong ends, leading
to the rounded parts intruding into the slider's track as spikes.
Thanks for your info
Ron
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden