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?



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.

> Can one set a MINIMUM / MAXIMUM for UserPane bounds?Does 
> HIViewGetSizeConstraints() have a corresponding function for setting the 
> minimum / maximum bounds for HIView layout?  
> 
> For example, I want to prevent a UserPane from scalling to be too small or too 
> large.
> 
> 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



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.