Re: Multiline checkbox text?
Re: Multiline checkbox text?
- Subject: Re: Multiline checkbox text?
- From: Ricky Sharp <email@hidden>
- Date: Tue, 25 Jul 2006 20:05:02 -0500
On Jul 25, 2006, at 7:27 PM, Jerry Krinock wrote:
on 06/07/25 16:41, Nathan Herring at email@hidden wrote:
Despite IB showing the attribute Line Break: “Word Wrap” in the
inspector,
and me trying to manually hack it by calling [[checkbox cell]
setWraps:TRUE], the text in my check box does not wrap. Am I missing
something?
I’m tempted to just have a title-less textbox with an adjacent
text field if
this isn’t easily solvable.
Yep. I've tried and tried, but could never get this to work. So
that's
what I do, set the title to @"" and put an NSTextField adjacent to it.
I think I read somewhere that the Big Apple's Human Interface Gurus
don't
like multi-line checkbox titles. So, that's probably why they make
it hard
for us.
Keep in mind the following things when using this NSTextField solution:
(1) Users will need to click exactly on the checkbox.
(2) Assistive apps will have grief in that the control's title is an
empty string. As a workaround, you can set up the checkbox's
AXTitleUIElement to be the NSTextField (you can do so in the
Accessbility panel of the checkbox's inspector in IB).
(3) The VoiceOver cursor will only render itself around the checkbox
image (and not the corresponding text).
(4) VoiceOver does speak the control correctly (if you've wired up
the AXTitleUIElement in #2 above), but the displayed text is a bit
strange:
Given...
[ ] Multi
line
...the VoiceOver displayed text will be: Multi * line * unchecked
check box
here, the asterisks are actually a bullet character; not sure why it
uses them.
Compare this to...
[ ] Single line
...which gives: Single line unchecked check box.
Now, having said all of that, the solution to a proper multi-line
checkbox is to use option-Return when editing the item's text. The
clickable area and VoiceOver cursor are no longer an issue. The
VoiceOver text will still inject the bullet character between lines
of text. I should read up more about that, I'm thinking it's some
designation that the text is on multiple lines.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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