Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Higlighting letters of selected entry in a table?
Higlighting letters of selected entry in a table? [message #857295] Thu, 26 April 2012 12:29 Go to next message
Marcel Bruch is currently offline Marcel BruchFriend
Messages: 289
Registered: July 2009
Senior Member

https://bugs.eclipse.org/bugs/attachment.cgi?id=213949 shows a screenshot of the java completion engine in Eclipse. It highlights some characters in a proposal in dependence of the completion prefix (the blue letters for example in proposal #2).

Proposal #1 actually has the same highlighting as proposal #2 but these are not rendered properly since the first entry has the active selection.

My question: Can a *selected* table item have highlights? If so, how?

Thanks, Marcel
Re: Higlighting letters of selected entry in a table? [message #857404 is a reply to message #857295] Thu, 26 April 2012 13:59 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
In the screenshot the "highlighted" text just looks like it's drawn with
a different foreground colour, which should not be affected by the item
being selected or not. The snippet at
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet236.java
draws text with several colours, and is not affected by item selection
(verified on Windows and GTK). Is this what you're looking for?

Grant


On 4/26/2012 8:29 AM, Marcel Bruch wrote:
> https://bugs.eclipse.org/bugs/attachment.cgi?id=213949 shows a
> screenshot of the java completion engine in Eclipse. It highlights some
> characters in a proposal in dependence of the completion prefix (the
> blue letters for example in proposal #2).
>
> Proposal #1 actually has the same highlighting as proposal #2 but these
> are not rendered properly since the first entry has the active selection.
>
> My question: Can a *selected* table item have highlights? If so, how?
> Thanks, Marcel
Re: Higlighting letters of selected entry in a table? [message #857409 is a reply to message #857404] Thu, 26 April 2012 14:07 Go to previous message
Marcel Bruch is currently offline Marcel BruchFriend
Messages: 289
Registered: July 2009
Senior Member

Yes, exactly. Thanks!
Previous Topic:XML and SWT Browser with IE
Next Topic:Need to get the genuine xml data (not the html interpreted one)
Goto Forum:
  


Current Time: Fri Apr 26 07:58:47 GMT 2024

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

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

Back to the top