Re: Refresh issue with NSButton, text becomes dark when window is resized?
Re: Refresh issue with NSButton, text becomes dark when window is resized?
- Subject: Re: Refresh issue with NSButton, text becomes dark when window is resized?
- From: "I. Savant" <email@hidden>
- Date: Wed, 7 Feb 2007 11:23:16 -0500
... and what happens if you start commenting out code? I'll bet
you'll find at least the code that's causing the problem ...
--
I.S.
On Feb 7, 2007, at 9:12 AM, Theodore H. Smith wrote:
Hi People, I am getting a strange refresh issue with NSButton.
The text become dark when the window is resized. http://
westcliffdata.co.uk/images/Picture1.png
It's like the text is drawing ontop of itself, but not erasing the
old text, first!
What could cause this? Is there a work around? Is it my fault? I am
subclassing these NSButtons, admittedly.
- (void)mouseUp:(NSEvent*)theEvent {
cb.CurrentMacEvent = theEvent;
[super mouseDown:theEvent];
cb.CurrentMacEvent = 0;
}
- (void)awakeFromNib {
NSRect R = [self frame];
float yshift = 3;
R.origin.y = R.origin.y - 3 + yshift;
R.size.height -= yshift;
[self setFrame:R];
[self setBordered:NO];
[self setButtonType:NSMomentaryChangeButton];
[self setFont: MyAppDefaultFont()];
[self display];
}
- (BOOL)isOpaque {
return NO;
}
I can't work it out. Any ideas how I can fix this, anyone?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden