Re: NSSegmentedControl Display Bug?
Re: NSSegmentedControl Display Bug?
- Subject: Re: NSSegmentedControl Display Bug?
- From: Ruediger Hanke <email@hidden>
- Date: Sun, 31 Jul 2005 13:11:05 +0200
>What size is the control?
>
>"In common with other controls, NSSegmentedControl is available in
>three sizesregular, small, and mini (although textured windows only
>support regular-sized segmented controls)."
Well, I have the very same problem as the original poster. I've spent
several weekends now trying to find a solution. Since I'm rather new to
Cocoa, I thought so far I'd be doing something wrong.
I doubt it has to do with control size ... just go into IB, place a
segmented
control and a popupbutton next to each other in a window and test the
interface. You'll notice that when the "unified title and toolbar" is
checked,
the background style of the segcontrol changes to "Round Textured
Button"
style and it grows in size so it's actually larger than the popup
button now.
I'm trying to use the segmented control in a toolbar, and the upper
border
is always cut off in a window with "unified title and toolbar".
Changing the
control size does not fix this, I've tried it and when the control is
smaller
it is being "pushed up" so that you only see half of it ...
Additionally, when I hide the toolbar and show it again, the control
is -
suddenly - correct size and style! But ... when I click on it, it -
pop - grows
larger again and changes its button style?!?!
I'm wondering whether this is a bug??
I'm also wondering how to get the "regular" style ...
I've recently downloaded the demo of DevonThink Pro, and they have a
segmented control in proper size in their toolbar, even though they use
the unified title/toolbar look.
It seems kind of strange to me. I mean, when I look at the prefs window
I have the feeling that Apple considers the "Round Textured Button"
style as default for controls in such windows so it could possibly be a
feature(?) that they enforce it here, but the same is not done for other
buttons (like the popupmenu button). Worse, the buttons of different
styles don't match in height??
I'm lost here ... basically I want to have a segmented control in the
regular
style in a unified title/toolbar window. Anybody knows how DevonThink
achieves this?
Ruediger
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden