RE: NSTextView border shift
RE: NSTextView border shift
- Subject: RE: NSTextView border shift
- From: "Guy Umbright" <email@hidden>
- Date: Fri, 23 Aug 2002 09:25:19 -0500
- Thread-topic: NSTextView border shift
>
>I have an NSTextView in a dialog I want in one context to be
>
editable, and in
>
>another, simply display (no border or background, non-selectable).
>
>
>
>I can easily switch between the states programatically, the
>
problem is that
>
>the drawing of the displayed text is shifted up to the left
>
when the view is
>
>setup for display and gets out of line with its label. This
>
is apparently
>
>because removing the border affects the field size.
>
>
>
>Is there a way to prevent this?
>
>
Do you mean NSTextField? - I do a lot of toggling between editable and
>
non-editable text fields, and I find this behavior annoying
>
too. One way to
>
make it less noticeable is to to move the field as you change
>
its other
>
properties.
Oops, yes, I meant NSTextField. I was hoping that I wouldn't have to
resort to that. Do you hack the move (ie 4 pixels up, 3 left, hardcoded)
or is it possible to figure the appropriate move via accessing the class?
This electronic mail message and any attached files contain information
intended for the exclusive use of the individual or entity to whom it is
addressed and may contain information that is proprietary, privileged,
confidential and/or exempt from disclosure under applicable law. If you are
not the intended recipient, you are hereby notified that any viewing, copying,
disclosure or distribution of this information may be subject to legal
restriction or sanction. Please notify the sender, by electronic mail or
telephone, of any unintended recipients and delete the original message
without making any copies.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.