Re: Controlling control positions and size in a window
Re: Controlling control positions and size in a window
- Subject: Re: Controlling control positions and size in a window
- From: Daryn <email@hidden>
- Date: Thu, 29 Jan 2004 01:38:04 -0600
You do need to set exterior springs on the indicator and text field.
To anchor the text field to the upper left corner, set the right and
downward springs. To anchor the indicator to the top right, set the
left and downward springs.
For resizable windows, exterior struts in both directions (ie.
left/right or up/down) is only meaningful if the interior is a spring.
If the interior is not springy, then at least exterior direction must
have a spring.
I hope this helps.
On Jan 29, 2004, at 1:29 AM, Steve Palmer wrote:
>
Yes, I saw that site after it was referenced in an earlier message.
>
The problem is that everything looks set correctly as far as I can see
>
in IB. Here's the layout:
>
>
NSWindow
>
NSView (Content View)
>
NSSplitView
>
NSTableView
>
NSTextView
>
NSProgressIndicator
>
NSTextField
>
>
The NSSplitView has the springs set within the center part and no
>
springs around it. The NSProgressIndicator and NSTextField are all
>
struts. The NSView (Content View) has no means of setting sizing and
>
NSWindow has springs around it. So I'm somewhat at loss as to why the
>
NSProgressIndicator and NSTextField are being automatically adjusted.
>
Thanks!
>
>
>
>
On Jan 28, 2004, at 11:23 PM, Daryn wrote:
>
>
> You need to the springs & structs correctly. See " How do I set up
>
> the springs and struts so my views autosize?" at:
>
> http://developer.apple.com/documentation/DeveloperTools/Conceptual/
>
> IBTips/Articles/FreqAskedQuests.html
>
>
>
> On Jan 29, 2004, at 12:47 AM, Steve Palmer wrote:
>
>
>
>> I'm trying to figure out how the auto-sizing of views and controls
>
>> within a window work.
>
>>
>
>> I have a mail window that has a NSTextField and NSProgressControl
>
>> positioned at the top and below that, an NSSplitView that takes up
>
>> the rest of the space. The NSSplitView size info is set so that when
>
>> the split view is resized, the views within it are automatically
>
>> resized.
>
>>
>
>> The problem is that when the main window is resized, the position of
>
>> the NSTextField and NSProgressControl are also automatically
>
>> adjusted relative to the main window size. What I want is for the
>
>> NSTextField not to move and for the NSProgressControl to move left
>
>> or right depending on the main window width, and for the NSSplitView
>
>> to automatically size as it does now. Unfortunately I can't figure
>
>> out how to set this behavior in Interface Builder and the help
>
>> doesn't give any clue.
>
>>
>
>> Any pointers would be most welcome.
>
>> Thanks.
>
>> _______________________________________________
>
>> 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.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.