Re: Is there a way to change a buttons text color for the title?
Re: Is there a way to change a buttons text color for the title?
- Subject: Re: Is there a way to change a buttons text color for the title?
- From: Fredrik Olsson <email@hidden>
- Date: Tue, 22 Aug 2006 12:36:11 +0200
Tim skrev:
You could use NSButton::setAttributedTitle with an NSAttributedString.
Hope this helps.
It did.
But the attributed title is ignored if the row is selected, drawing the
title in white. How to override this?
// Fredrik Olsson
Tim
Is there a way to change a buttons text color for the title?
I have a column with NSButtonCells in a table, some lines are to be
marked as bold (no problem), and some lines are to be marked with red to
alert the user of the really serious stuff. Most columns uses a
NSTextFieldCell so setTextColor: works. One column with a checkbox using
NSButtonCell stands out in the crowd though.
// Fredrik Olsson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden