• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Refresh issue with NSButton, text becomes dark when window is resized?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Refresh issue with NSButton, text becomes dark when window is resized?


  • Subject: Refresh issue with NSButton, text becomes dark when window is resized?
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Wed, 7 Feb 2007 14:12:00 +0000

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Refresh issue with NSButton, text becomes dark when window is resized?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: NEWBIE - Calendar Picker.
  • Next by Date: How do I display a sheet as soon as the main window has displayed
  • Previous by thread: Re: How to block file?
  • Next by thread: Re: Refresh issue with NSButton, text becomes dark when window is resized?
  • Index(es):
    • Date
    • Thread