Re: positioning items in a drawer
Re: positioning items in a drawer
- Subject: Re: positioning items in a drawer
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 13 Jan 2003 14:22:10 -0500
on 03-01-13 10:31 AM, olivier at email@hidden wrote:
>
Select your drawer in Interface Builder show information on it and
>
choose the size panel in the drop down menu, change the offset values.
>
>
Olivier
>
>
>
On Sunday, January 12, 2003, at 08:19 PM, Koen van der Drift wrote:
>
>
> Hi,
>
>
>
> I created a window with a drawer. In IB I made a content view for the
>
> drawer, and added some items starting from the top of the view.
>
> However, if
>
> the drawer opens in the app, the items are all moved down, centered in
>
> the
>
> drawer. How do I keep the items where I positioned them in IB?
In my experience, it can be more complicated than that. For example, some
behaviors of drawers (such as drag-resizing and drag-closing them) can
affect the location of UI widgets in the drawer in ways that are sensitive
to the drawer's minimum size (settable only in code, as I recall) relative
to the current size of the parent window. The positions and behavior of UI
widgets while the parent window is resized is also dependent, of course, on
how you've set the springs in the Size Info Panel. Also, when you drag a
drawer to a very large size while the parent window is large, you can't drag
the parent window small again because it has to remain big enough to cover
the closed drawer. I have found that a lot of experimentation and testing is
necessary to get drawers to behave sensibly.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.