[REPOSTED] toggle button dim when pushed
[REPOSTED] toggle button dim when pushed
- Subject: [REPOSTED] toggle button dim when pushed
- From: Chase <email@hidden>
- Date: Thu, 14 Jul 2005 15:32:39 -0500
[this was posted really early this morning and i think it got lost in
the shuffle somehow, so i'm posting again]
i've got a button that's set up like so:
[button setBezelStyle:NSShadowlessSquareBezelStyle];
[button setButtonType:NSToggleButton];
[button setBordered:NO];
[button setTitle:@""];
[button setImagePosition:NSImageOnly];
[button setImage:image];
it works perfectly except that when i push it in and hold it, it dims
until i let go. (normal/default behavior)
but for this particular button, i don't want the image to dim at all.
i tried:
[[button cell] setHighlightsBy:NSNoCellMask];
[[button cell] setShowsStateBy:NSNoCellMask];
... but the behavior is the same.
how can i set it so that it never dims?
- chase
_______________________________________________
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