• 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
Resizing controls on NSWindow with transparent background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resizing controls on NSWindow with transparent background


  • Subject: Resizing controls on NSWindow with transparent background
  • From: Rolf <email@hidden>
  • Date: Mon, 20 Oct 2003 23:41:42 +0200

Hi,

My app has a window with transparent background ([NSColor clearColor]), and a "curtain" consisting of a NSBox. The upper side of this NSBox can be dragged up and down by the user (simulating a real world "curtain").

Unfortunately a horizontal line sometimes appears a few pixels below or above the upper side of the NSBox. The horizontal line seems to be a remnant of previous NSBox upper side before it was resized (moved).

The following code is used to resize the NSBox (boxCurtain), and redraw windows content view + shadow:

[boxCurtain setFrameSize:sizeCurtain];
[[self window] invalidateShadow];
[[[self window] contentView] setNeedsDisplay:TRUE];


If the above code is not present I get large numbers of horizontal lines - it seems like one pr mouse delta. I have tried all sorts of window repainting but have so far been unable to remove the last rest of these horizontal lines.
Anybody have any good ideas ?
Thanks

/Rolf
_______________________________________________
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.

  • Prev by Date: Re: Exposè and Cocoa...
  • Next by Date: Embeding Background Pictures in Disk Image
  • Previous by thread: How do I make linenumbers
  • Next by thread: Embeding Background Pictures in Disk Image
  • Index(es):
    • Date
    • Thread