Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to make a canvas widget to be transparent?
How to make a canvas widget to be transparent? [message #1037026] Tue, 09 April 2013 05:08 Go to next message
Song David is currently offline Song DavidFriend
Messages: 190
Registered: April 2011
Senior Member
Hi all,
How to make a canvas widget to be transparent?
index.php/fa/14290/0/

[Updated on: Tue, 09 April 2013 06:15]

Report message to a moderator

Re: How to make a canvas widget to be transparent? [message #1037157 is a reply to message #1037026] Tue, 09 April 2013 08:21 Go to previous messageGo to next message
Song David is currently offline Song DavidFriend
Messages: 190
Registered: April 2011
Senior Member
got it, using composite css
Re: How to make a canvas widget to be transparent? [message #1037162 is a reply to message #1037026] Tue, 09 April 2013 08:26 Go to previous message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 387
Registered: July 2009
Senior Member
Hi.

> How to make a canvas widget to be transparent?

You can either set INHERIT_FORCE as the *parents* background mode[1], or
you can give the Canvas a custom variant[2] and add[3] a CSS rule for
*Composite* like this to your RWT theme:

Composite.yourCustomVariant {
background-color: transparent;
}


Greetings,
Tim


[1]
http://download.eclipse.org/rt/rap/doc/2.0/guide/reference/api/org/eclipse/swt/widgets/Composite.html#setBackgroundMode%28int%29
[2]
http://eclipse.org/rap/developers-guide/devguide.php?topic=theming.html&version=2.0#variants
[3]
http://eclipse.org/rap/developers-guide/devguide.php?topic=theming.html&version=2.0#rwt

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:How disable output exception in browser?
Next Topic:Single-Sourcing RAP and RCP in Juno SR2
Goto Forum:
  


Current Time: Thu Dec 18 12:36:31 GMT 2014

Powered by FUDForum. Page generated in 0.13122 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software