Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Cusomtizing TreeViewer
Cusomtizing TreeViewer [message #453791] Sat, 09 April 2005 08:29 Go to next message
Eclipse UserFriend
Originally posted by: david.mckenna7.ntlworld.ie

Hi,

Is it possible to change the color / font of a label in a TreeViewer so that
it displays text in multi-colors and fonts. For example I did the following
in a JTree by setting the label text to return HTML tags (see attached).

Is it possible to do some thing similar in a TreeViewer?

Thanks,
M


Re: Cusomtizing TreeViewer [message #453797 is a reply to message #453791] Sat, 09 April 2005 19:00 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060901050900090202000406
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!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">Hmm, an intriguing idea.&nbsp; Unfortunately, it's not
supported on every platform (if it is supported on any of them).&nbsp;
Therefore, SWT doesn't support it either.&nbsp; You might have some luck
with an emulated tree or even including a JTree in your application
using SWT_AWT.<br>
<br>
Daniel<br>
</font><br>
Michael Eavis wrote:
<blockquote cite="midd38438$b98$1@news.eclipse.org" type="cite">
<pre wrap="">Hi,

Is it possible to change the color / font of a label in a TreeViewer so that
it displays text in multi-colors and fonts. For example I did the following
in a JTree by setting the label text to return HTML tags (see attached).

Is it possible to do some thing similar in a TreeViewer?

Thanks,
M


</pre>
<center><img src="cid:part1.06040806.02010702@hotpop.com"></center>
</blockquote>
</body>
</html>

--------------060901050900090202000406
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <part1.06040806.02010702@hotpop.com>

R0lGODdhKAEXAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8EAg AGAgAIAgAKAg
AMAgAOAgAABAACBAAEBAAGBAAIBAAKBAAMBAAOBAAABgACBgAEBgAGBgAIBg AKBgAMBgAOBg
AACAACCAAECAAGCAAICAAKCAAMCAAOCAAACgACCgAECgAGCgAICgAKCgAMCg AOCgAADAACDA
AEDAAGDAAIDAAKDAAMDAAODAAADgACDgAEDgAGDgAIDgAKDgAMDgAODgAAAA QCAAQEAAQGAA
QIAAQKAAQMAAQOAAQAAgQCAgQEAgQGAgQIAgQKAgQMAgQOAgQABAQCBAQEBA QGBAQIBAQKBA
QMBAQOBAQABgQCBgQEBgQGBgQIBgQKBgQMBgQOBgQACAQCCAQECAQGCAQICA QKCAQMCAQOCA
QACgQCCgQECgQGCgQICgQKCgQMCgQOCgQADAQCDAQEDAQGDAQIDAQKDAQMDA QODAQADgQCDg
QEDgQGDgQIDgQKDgQMDgQODgQAAAgCAAgEAAgGAAgIAAgKAAgMAAgOAAgAAg gCAggEAggGAg
gIAggKAggMAggOAggABAgCBAgEBAgGBAgIBAgKBAgMBAgOBAgABggCBggEBg gGBggIBggKBg
gMBggOBggACAgCCAgECAgGCAgICAgKCAgMCAgOCAgACggCCggECggGCggICg gKCggMCggOCg
gADAgCDAgEDAgGDAgIDAgKDAgMDAgODAgADggCDggEDggGDggIDggKDggMDg gODggAAAwCAA
wEAAwGAAwIAAwKAAwMAAwOAAwAAgwCAgwEAgwGAgwIAgwKAgwMAgwOAgwABA wCBAwEBAwGBA
wIBAwKBAwMBAwOBAwABgwCBgwEBgwGBgwIBgwKBgwMBgwOBgwACAwCCAwECA wGCAwICAwKCA
wMCAwOCAwACgwCCgwECgwGCgwICgwKCgwMCgwOCgwADAwCDAwEDAwGDAwIDA wKDAwP/78KCg
pICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAAAAAAALAAAAAAoARcAAAj/ AKX8szfwn0F7
CBEOTEhwIcOEBw1GfFgw4sKLDSUeVMjxYUaGGx1KVKgRZEmNFjeSRMmypcuX MGPKnEmzps2b
OCUKbG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zC83YEtms/B8zP2L7Uomg8QCIPqtIHb7GRaCzi PwcpRHgSMr2T
3KJdq3A7JF6BjSxFqR4tmshKWliQL50tiQn8Tw0b8nld04j7VMITvXnuPgax nN9elzOgbK54
Q8ZK5exWOs5BDGQpS53oplw6gmTwXNxjStA0sjiD9szIB+GcwQy2moJo7W0c wTHmFHLRwink
oB7mZSdQXnfmVVIRKyujCPiQZ1Efd25n20KVzXoGEx/fTWS/rQnr/Nbb3MEN 0UsrXG9p1uiJ
4PglbwPb3g4Ns7BpBHwFQwnvCC2ugZwObJn+NKHnMmadFCSoU8Mz1mZiL7pp 2meeNlmqZbK2
W8OkZlz79a5ZXWmcrBorRqvLsPH16FBv7NnQjra0p03talv72tjOtra3ze1u e/vb4N5LQAAA
Ow==
--------------060901050900090202000406--
Previous Topic:What can ControlEditor do?
Next Topic:Browser Widget on IE, scrollbar even if not needed
Goto Forum:
  


Current Time: Mon Apr 12 17:07:55 GMT 2021

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

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

Back to the top