Re: dynamic resizing of a window
Re: dynamic resizing of a window
- Subject: Re: dynamic resizing of a window
- From: Jerry Krinock <email@hidden>
- Date: Tue, 13 Jan 2009 16:01:10 -0800
On 2009 Jan, 13, at 11:48, Ronnie B wrote:
I have a modal dialog that I want to resize dynamically in case if a
validation on an input field fails and I display a validation text
bellow
the field. I would like to 'push' the rest of the dialog down,
leaving the rest if the elements proportionally as they were.
I don't know what you mean by "proportionally", but other than that I
think I get it. You want to add a subview, move the other subviews,
and resize the window bigger as needed.
Anyone can suggest a right way of doing it.
Well, I don't know if it is "right", but it works for me. Iterate
through all the subviews, do alot of calculations, and send alot of
setFrame: messages.
The following project is a work in progress, but if you dig into the -
[SSYAlert doLayout], you'll see how it's done for a very general case:
http://sheepsystems.com/files/SSYAlert.zip
I tried to symlink all the dependencies and set zip to follow them.
Let me know if there are any missing any dependencies.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden