(no subject)
(no subject)
- Subject: (no subject)
- From: email@hidden
- Date: Thu, 19 Feb 2004 12:40:06 -0800 (PST)
Hi All,
I'm trying to add a driver to the Allegro Graphics Library
<
http://alleg.sf.net/> that allows transparent, borderless windows (seems
to be a popular topic). The borderless portion is easy to setup but
transparency has been a problem. The code reads ()
osx_window = [[AllegroWindow alloc] initWithContentRect: rect
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreBuffered
defer: NO];
window_delegate = [[[AllegroWindowDelegate alloc] init] autorelease];
[osx_window setDelegate: window_delegate];
[osx_window setOneShot: YES];
[osx_window setAcceptsMouseMovedEvents: YES];
[osx_window setViewsNeedDisplay: NO];
[osx_window setReleasedWhenClosed: YES];
[osx_window useOptimizedDrawing: YES];
[osx_window setMovableByWindowBackground: YES];
[osx_window setBackgroundColor: [NSColor clearColor]];
[osx_window setAlphaValue: 1.0];
[osx_window setOpaque: NO];
[osx_window center];
However, when an app starts up, it flashes for a split second then goes
away. There is no icon in the dock and (I run the app from Terminal) but
the app is still running. The test still runs through its normal process
(3 keyboard taps exits as it should) but nothing is displayed on the
screen. Removing [osx_window setOpaque: NO]; brings the content back to
the display but I obviously don't get the transparent background.
Any pointers?
Louis
_______________________________________________
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.