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?



Starting in Jaguar you can use kHIViewWindowGrowBoxID to get the grow box
HIView and install a {kEventClassControl, kEventControlDraw} handler on it,
or you can try my previous suggestion of installing a {kEventClassWindow,
kEventWindowDrawGrowBox} handler on the window. And finally, I think there's
an alternative grow box you can using in Panther for windows where you want
minimal interference with the background of the window. You may want to
consider that, as it would be more consistent with other applications.

Personally I'd use HIViewFindByID(HIViewGetRoot(window),kHIViewWindowGrowBoxID,&view) and install a Draw handler on that. Nonetheless, if the area normally covered by the growbox is part of your OpenGL context, you will *not* be able to draw on it directly via CoreGraphics or Quickdraw -- at least in Jaguar, not sure in Panther. In which case you'll have to draw the growbox via OpenGL in your AGL context.

Or.....look at it the other way round: turn off the grow box on the window, catch clicks in the window corner and do your own window dragging - track the mouse and call SetWindowBounds.

Jerry
_______________________________________________
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: Dario Accornero <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.