Skip to main content


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
David Song is currently offline David SongFriend
Messages: 217
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
David Song is currently offline David SongFriend
Messages: 217
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: 396
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:Hybrid RAP based target plateform to share
Next Topic:IE8 double click on tree/table problem.
Goto Forum:
  


Current Time: Fri Apr 19 02:24:53 GMT 2024

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

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

Back to the top