Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » StyledText - problems with Background
StyledText - problems with Background [message #467247] Fri, 27 January 2006 03:33 Go to next message
Adam Kumpf is currently offline Adam KumpfFriend
Messages: 14
Registered: July 2009
Junior Member
I've been looking through the styled text widget a lot and I would like to
set the background image of it if possible. I can nicely set the
background image of a canvas, but when I go to set the background image of
a StyledText (or StyledText2), the image can only be seen for about 1
frame, and is then quickly covered by white...

I think it's probably a flag that is set somewhere that causes the
background of the StyledText to be painted over (the background image gets
covered by the line background? anyway to set it transparent?), but I
cannot find it anywhere. Could someone please help me to understand what
needs to be done to set the backround of a StyledText to an image?

Thanks so much.

Best Regards,
Adam Kumpf
kumpf@mit.edu
Re: StyledText - problems with Background [message #1701969 is a reply to message #467247] Fri, 17 July 2015 08:13 Go to previous messageGo to next message
Piero Campalani is currently offline Piero CampalaniFriend
Messages: 114
Registered: January 2015
Senior Member

Adam,
did you find a way to set a transparent background colour to your StyledText ?
Re: StyledText - problems with Background [message #1704003 is a reply to message #1701969] Thu, 06 August 2015 14:49 Go to previous message
Niraj Modi is currently offline Niraj ModiFriend
Messages: 48
Registered: November 2013
Member
Hi Adam,
SWT does support Transparent background from 4.5 release onwards, refer: https://www.eclipse.org/eclipse/news/4.5/M5/#transparent-bg
Refer Snippet365: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java

- Niraj
Previous Topic:SWT 4.5.0 & xulrunner 31
Next Topic:issue with nested Composites
Goto Forum:
  


Current Time: Tue Mar 19 07:59:26 GMT 2024

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

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

Back to the top