Old 07-01-2019, 05:00 AM   #1
Human being with feelings
Join Date: Jul 2009
Posts: 2,803
Default macOS: WDL/swell: How to set transparency of swell windows?

According to what I've read on the web, this should work:
(hwnd is a top-level window with a GWL_STYLE of WS_THICKFRAME)
NSWindow* window = (NSWindow*)hwnd;
[window setAlphaValue:opacity];
[window setOpaque:NO];
However, instead of becoming transparent (i.e. showing other windows underneath) these parts fade to opaque white.

I have tried adding these lines to make the background transparent, but it doesn't appear to have any effect:
[window setWantsLayer:YES];
[window setBackgroundColor:[NSColor clearColor]];
juliansader is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 10:26 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.