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: kControlContentCGImageRef



On 27 Jul 2004, at 10:43, Laurence Harris wrote:

<snip>

You can use an IconRef created from an IconFamilyHandle (.icns file or
'icns' resource) which consists of a single (16x16) icon that has your 12x12
image in its center and it will work fine in a bevel button. I use this for
some 10x10 icons and it works just fine. I'm not sure why you think this
isn't an option.

Yes, that is true. IconRefs are still a bit inconvenient - I've got some really nifty code that reads PNGs directly from my resource file into CGImageRefs. This allows us to take the PNGs directly from our artist into the application without any conversion using .r files to just include them in our resources.

Anyway, in the end I've added an override for kEventControlDraw as you suggested. That part of Carbon is really nice, but it continues to dismay me that bold statements are made about deprecating Quickdraw while much support for CoreGraphics in Appearance is either broken or just missing entirely! So far I have tried to use CG with controls twice (bevel buttons and images in a menu used with a popup button). So far it has failed to work twice. Am I just being unlucky?!

Cheers,

Steve.

Stephen Baxter
Software Development Manager
Improvision
email@hidden
+44-2476-692229
_______________________________________________
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: kControlContentCGImageRef (From: Laurence Harris <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.