0

我的应用程序中有一个自定义的半透明窗口。我希望它的边缘有阴影,但不在窗口的半透明部分下方。我怎样才能做到这一点?

4

1 回答 1

0
  1. Make the window transparent
  2. Handle the transparency inside the elements you have inside the NSWindow while keeping the NSWindow transparent
  3. Set the NSWindow to have no shadow
  4. Apply a custom shadow to the elements while the NSWindow shadow remains none
于 2013-08-05T06:29:34.337 回答