SPAS 3.0 Forums: General

You have been banned from this forum. If you have any questions, please contact the Administrator.

Sign in or create an account

You are logged in as:

Window component - Background transparency

Page : 1

Reply New topic
Author Message
Community Member
Join Date: 2012-01-23
Posts: 24
Post date 03-13-2012, 13:48
#1
Is it possible to manipulate alpha for background of inner container in Window Component?

How to do this for border and title bar of window?

Content attached to window should stay with its own alpha setting.

Administrator
Join Date: 2008-12-01
Location: French Riviera
Posts: 47
Post date 03-15-2012, 13:43
#2
Yes it is.

You can manipulate 3 different properties to set the window opacity:
- windowOpacity, which sets the chrome opcacity,
- backgroundAlpha, which sets the background opcacity,
- innerPanelOpacity, which sets the inner panel opcacity.

So, the you code need is:
var w:Window = new Window("My Window", 400, 300) ;
w.windowOpacity = .25;
w.backgroundAlpha = w.innerPanelOpacity = 0;
w.display() ;




Creator of SPAS 3.0
Community Member
Join Date: 2012-01-23
Posts: 24
Post date 03-20-2012, 14:30
#3
thanks! it works!

Page : 1