• 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
Re: Transparent Panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparent Panel


  • Subject: Re: Transparent Panel
  • From: Tim Trautmann <email@hidden>
  • Date: Mon, 12 Aug 2002 13:15:56 -0700

John,
in your panel's init send your [testPanel setOpaque:NO]:

[testPanel setOpaque:NO];

That should do it.

Tim


On 8/12/02 12:51, "John Pannell" <email@hidden> wrote:

> I have been trying to make a start-up panel much like photoshop 7's,
> where a portion of the window "shows through" to whatever is below the
> panel. My attempt is going along the lines of creating a window
> programmatically and giving it a view (which has an image that is part
> opaque and part transparent). I use this to create the window:
>
> NSWindow *testPanel = [[NSWindow alloc] initWithContentRect:myRect
> styleMask:NSBorderlessWindowMask backing:NSBackingStoreRetained
> defer:NO];
> [testPanel setBackgroundColor:[NSColor clearColor]];
> [testPanel makeKeyAndOrderFront:nil];
>
> The result of this is the creation of a window that has no title bars or
> anything (which I was after) but unfortunately the window region doesn't
> show whatever is under it - it is simply a black rect.
>
> Any suggestions are much appreciated!
_______________________________________________
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: Getting OS version under cocoa
  • Next by Date: Re: AuthorizationExecuteWithoutPrivileges?
  • Previous by thread: Re: Transparent Panel
  • Next by thread: Getting OS version under cocoa
  • Index(es):
    • Date
    • Thread