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 11/27/03 2:48 PM, Matthew Craig didst favor us with:

> 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).

Actually that's always been referred to as a grow box. See Inside Macintosh
I if you know anyone with something that old, the more recent black Inside
Mac series, or in the current Window Manager Reference PDF you'll find:

"kWindowCanGrow
If this bit (bit 0) is set, the window has a grow box (may not be
visible)."

From CarbonEvents.h in 10.3:

* kEventClassWindow / kEventWindowDrawGrowBox
*
* Summary:
* When the DrawGrowIcon API is called, this event is sent to the
* window to tell it to draw the grow box.

If you do a partial word search of the headers for "GrowBox" you'll get
multiple hits in five or six different headers.

> 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.

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.

Larry

> - Matt
>
>
> On Nov 26, 2003, at 5:31 PM, Laurence Harris wrote:
>
>> On 11/26/03 12:34 AM, David Duncan didst favor us with:
>>
>>> On Nov 25, 2003, at 09:05 PM, Matthew Craig wrote:
>>>
>>>> I have an app that can display OpenGL in the whole window (minus small
>>>> aesthetic border), in which case, I'd like to draw my own resize thumb in
>>>> GL and have the Carbon window not draw it. Is there any programmatic way
>>>> to keep the resize thumb from drawing?
>>>>
>> Are you talking about the grow box in a window? The word "thumb" refers to
>> part of a scrollbar.
>>
>> Larry
_______________________________________________
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: 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.