01/24/2011 8:54 AM
Re: RE: PtOsContainer moving image
PtOSContainer doesn't accepts transparent background -- just like the PtWindow.
I recommend placing your PtOSContainer as the first child of the PtWindow and making the OSContainer as big as the
window -- use anchors if you need too resize both in sync. Then place all of your widgets into the OSContainer.
01/24/2011 9:54 AM
RE: RE: PtOsContainer moving image
Ok, it will never have transparent background, unless we misunderstood
here, we thought you were trying with a solid colour background or a
The reason is that the PtOSContainer uses offscreen memory to composite
the display, before flipping it to the screen, and thus since it is
already pre-composited, it cannot take into account the content behind
Now, you can place the entire contents of the window in a PtOSContainer
(move up the hierarchy).
I am guess what you want is something similar to this:
Window -> pane (solid colour bkgd) -> buttons etc, draw stuff ->
then a PtOSContainer over top with transparent background
well, we would suggest this:
Window -> PtOSContainer (solid colour bkgd) -> buttons, etc draw
stuff -> another transparent pane with content with content
(*) Now with surface memory, it is always possible to do alpha blending,
etc., but that approach is beyond the reach of the PtOSContainer, and on
systems w/o hardware accelerated alpha blend, it is quite slow.
From: Andy Rhind [mailto:email@example.com]
Sent: January 24, 2011 12:59 AM
Subject: Re: RE: PtOsContainer moving image
Sorry about that - I knew exactly what version of the OS I was using :)
Ive put together a simple example that shows the PtOsContainer wont
accept a transparent background. Its attached. This is the simplest
and the preferred solution, it would be perfect if you can get
I am putting a stand along demo together for the Video offscreen