Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text selection color of StyledText
Text selection color of StyledText [message #508242] Mon, 18 January 2010 03:49 Go to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Hi.

A StyledText seems to use the selection color of operating system theme by default.
Is there a way to change the color explicitly for the StyledText?

Regards,
Kai
Re: Text selection color of StyledText [message #508390 is a reply to message #508242] Mon, 18 January 2010 15:59 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
setSelectionBackground()/Foreground() should do this

Grant


"Kai Schlamp" <schlamp@gmx.de> wrote in message
news:hj0los$gtf$1@build.eclipse.org...
> Hi.
>
> A StyledText seems to use the selection color of operating system theme by
default.
> Is there a way to change the color explicitly for the StyledText?
>
> Regards,
> Kai
Previous Topic:problem with virtual table
Next Topic:How to serialize an SWT Image
Goto Forum:
  


Current Time: Fri Nov 28 04:44:19 GMT 2014

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

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