Re: NSTextView border shift
Re: NSTextView border shift
- Subject: Re: NSTextView border shift
- From: Matt Neuburg <email@hidden>
- Date: Thu, 22 Aug 2002 21:15:56 -0700
On Thu, 22 Aug 2002 15:12:20 -0500, "Guy Umbright" <email@hidden>
said:
>
>
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. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.