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 you hide resize thumb in Carbon?



On Nov 27, 2003, at 11:48 AM, Matthew Craig wrote:

I'm sorry if I haven't been clear with my nomenclature. My app doesn't use any controls at all, everything is created from scratch and there's lots of OpenGL. I want to have resizable windows, I just don't want the resize control (the diagonal hash marked widget in lower right corner of windows that you resize the window with - again, sorry if I'm using the wrong term - the only reference I could find in the docs referred to it as resize control). I am using standard window handlers and have not added any controls at all.

So if we're all talking about the same thing, it seems that there is no easy way to prevent it's drawing if I want to still allow my window to be resizable. Please correct me if I've misunderstood anything, and thanks for your patience.

I believe the GrowWindow and ResizeWindow APIs will work just fine on a window that doesn't have the kWindowResizableAttribute (I checked the code and didn't find any tests for this attribute; I haven't actually tested this). So probably the easiest way to accomplish this, which should work on all versions of Mac OS X, would be to ensure that your window does not have the kWindowResizableAttribute, which will prevent the grow box from drawing, and then detect clicks in that area of the window and call ResizeWindow yourself.

-eric
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Can you hide resize thumb in Carbon? (From: Laurence Harris <email@hidden>)
 >Re: Can you hide resize thumb in Carbon? (From: Matthew Craig <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.