Re: Getting the lined background image for menus.
Re: Getting the lined background image for menus.
- Subject: Re: Getting the lined background image for menus.
- From: Rosyna <email@hidden>
- Date: Thu, 30 May 2002 23:14:28 -0700
Actually, I can get the menu bg fine, but not when it's selected. ;)
And it's to dynamically update a menu's title while the menu is down.
Right now it's drawn plainly and looks very, very odd. I've tried
drawing an slightly transparent selectedMenuItemColor onto an icon
with so such luck (it doesn't draw)
Sigh.
Ack, at 5/30/02, Eric Schlegel said:
On Thursday, May 30, 2002, at 01:49 PM, Rosyna wrote:
Is it possible to draw an attributed string with the lined
background color used in menus when a menu item is selected or not?
I've tried the NSColor +selectedMenuItemColor but it returns a dark
blue that's unlined. (as it says it will do in the docs)
You could call DrawThemeMenuItem and pass a callback proc that draws
the string. DrawThemeMenuItem will draw the lined background pattern
first.
-eric
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
---
Please include any previous correspondence in replies, it helps me
remember what we were talking about. Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.