On 12/28/05 5:42 AM, Hampus Soderstrom didst favor us with:
> Thanks for the reply.
> Will I need to draw the menu aswell that I have attached to the
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.
> 28 dec 2005 kl. 11.50 skrev Laurence Harris:
>> On 12/27/05 10:33 PM, Hampus Soderstrom didst favor us with:
>>> 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.
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