6

Possible Duplicate:
What is the most effective way to setup a Notebook with transparent background but solid contents?

When MMA 8 starts, a floating image of spikey is shown. As you can see the image has no rectangular border and the contents of the screen outside the spikey body are visible. We could say that the spikey image has a transparent background.

How do we achieve this effect in MMA?

This is my attempt:

(* Display splash screen for t seconds*)

DisplaySplash[ t_] := (splashnb = CreateWindow[DocumentNotebook[{Graphics[Disk[]] }], 
ShowCellBracket -> False, Deployed -> True, 
ShowGroupOpener -> False, WindowSize -> All, 
WindowMovable -> False, WindowElements -> {}, 
WindowFrame -> "Frameless", 
WindowFrameElements -> None,
Background -> None, 
WindowTitle -> None];

Pause[t];

NotebookClose[splashnb];)

(* Display splash screen for t seconds*)

DisplaySplash[5];

As you see, even if the window has Background-> None, a white rectangular background surrounds the black disk and covers the underlying screen contents. Changing the window opacity, changes also the disk opacity, so it is not an option.

Can you suggest a solution?

magma
  • 5,290
  • 24
  • 46
  • WindowFrameElements->None is not fully docuemted, but is apparently the only way to have a really invisible window (except for the white background) – magma May 16 '12 at 10:35
  • I can't find it at the moment, but there was a similar question on StackOverflow, and I think it turned out that the background on certain types of windows (depending on the window frame) can be set to transparent on OS X but not on Windows. I might be remembering wrong though, don't take my word for it. – Szabolcs May 16 '12 at 10:50
  • @Szabolcs thank you. I am using Windows – magma May 16 '12 at 11:11
  • WindowOpacity affects all elements of a window, not just its content area. – howard May 16 '12 at 11:12
  • 1
    I think this is the SO question Szabolcs is referring to. – kglr May 16 '12 at 11:17
  • @kguler yes these two questions are very similar – magma May 16 '12 at 18:28

0 Answers0