Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Image as Background
Image as Background [message #451032] Tue, 22 February 2005 08:05 Go to next message
Eclipse UserFriend
Originally posted by: danny.g2k.es

hi list.

Can i use a image (.gif) like a shell or composite background?. I can´t
find any snippet with this.

Thank in advanced
Danny
Re: Image as Background [message #451102 is a reply to message #451032] Wed, 23 February 2005 00:13 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="serif">That's an interesting question.&nbsp; My best guess is to
use a Canvas and add a PaintListener.&nbsp; Draw your image using that, and
then create your components with the canvas as their parent.&nbsp; Because
Canvas is a direct subclass of Composite, it should work just fine.&nbsp;
(theoretically)<br>
<br>
Daniel<br>
<br>
</font>Danny Garcia Hernandez wrote:
<blockquote cite="midcvep4h$n2i$1@www.eclipse.org" type="cite">hi list.
<br>
<br>
Can i use a image (.gif) like a shell or composite background?. I can&acute;t
find any snippet with this.
<br>
<br>
Thank in advanced
<br>
Danny
<br>
</blockquote>
</body>
</html>
Previous Topic:Dialog Box
Next Topic:{*WRONG THREAD*} problem
Goto Forum:
  


Current Time: Sat Sep 21 23:07:30 GMT 2024

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

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

Back to the top