Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: customizing CreateBevelButtonControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: customizing CreateBevelButtonControl



On 12/28/05 5:42 AM, Hampus Soderstrom didst favor us with:

> Hi,
>
> Thanks for the reply.
>
> Will I need to draw the menu aswell that I have attached to the
> bevelbutton?

No. Handlers are specific to the event targets on which they're installed.
The button is a control, the menu is a menu. Completely separate objects and
event targets. If you wanted to draw the menu yourself (I assume you don't)
you'd have to do that separately. There's sample code on Apple's web site
for a custom menu.

Larry

> /Hampus
>
>
> 28 dec 2005 kl. 11.50 skrev Laurence Harris:
>
>> On 12/27/05 10:33 PM, Hampus Soderstrom didst favor us with:
>>
>>
>>> Hi,
>>>
>>> I'm trying to create a bevel button with custom graphics. I can
>>> get  the
>>> graphics on the button but I want to remove the small border
>>> around the
>>> control so  the graphics is completely covering the control. How
>>> would I go
>>> about doing that?
>>>
>>
>> Install a kEventControlDraw handler on the button and draw anything
>> you like
>> when your handler is called.
>>
>> Larry
>>
>>
>>
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: customizing CreateBevelButtonControl (From: Hampus Soderstrom <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.