Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can one set a MINIMUM / MAXIMUM for UserPane bounds?



Title: Re: Can one set a MINIMUM / MAXIMUM for UserPane bounds?
on 5/20/08 4:46 PM, Gary L. Wade wrote:

> Just install a CarbonEvent handler on your UserPane control of type
> (kEventClassControl,kEventControlGetSizeConstraints) and pass back the sizes
> you want via the parameters kEventParamMinimumSize and kEventParamMaximumSize.

Gary -- thanks --

Yes — your suggestion DOES set the minimum and maximum size for the user pane.   I confirmed by calling
HIViewGetSizeConstraints().

HOWEVER — the HiView layout engine doesn’t seem to respect those sizes.  For example, when resizing the parent view the
HIAxisScale I set works perfectly, scaling the size of the User Pane (and embedded panes).  But the user pane size is still allowed to drop below the minimum size, as well as grow above the maximum size.

The kEventControlGetSizeConstraints event is sent exactly once.  I assume that’s correct — the layout engine doesn’t request the size constraints while the window is resizing, correct?

Is there a user pane flag that must be supported?  Or possibly another event?

Stephen
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >RE: Can one set a MINIMUM / MAXIMUM for UserPane bounds? (From: "Gary L. Wade" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.