Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » StyledText - problems with Background
StyledText - problems with Background [message #467247] Thu, 26 January 2006 22:33 Go to next message
Eclipse UserFriend
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 04:13 Go to previous messageGo to next message
Eclipse UserFriend
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 10:49 Go to previous message
Eclipse UserFriend
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: Sat Aug 30 19:41:25 EDT 2025

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

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

Back to the top