Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Changing selection color in table?
Changing selection color in table? [message #462606] Fri, 14 October 2005 20:17 Go to next message
scb  is currently offline scb Friend
Messages: 43
Registered: July 2009
Member
I've got a tableviewer with SWT.FULL_SELECTION set.

when I select a row, it's selected in blue. the problem is some rows have
yellow backgrounds already based on their data (if a certain field has a
certain value, it's yellow). if i select one of these yellow rows, it's
then shown as a blue row (selection color). the user is given no
indication that this row is a "yellow" row, since it's now selected and
blue

i'm thinking maybe i can change the selection color when these "yellow"
rows are selected, but i don't know how. what's the best way to change
the color of a selected row?

Thanks
Re: Changing selection color in table? [message #462644 is a reply to message #462606] Sun, 16 October 2005 13:25 Go to previous message
Emil van Galen is currently offline Emil van GalenFriend
Messages: 12
Registered: July 2009
Junior Member
This blue selection color is standard Windows behavior, so I don't think it's wise to fiddle around with that.

However it's possible to create a Canvas similar to a Table Cursor that grabs the focus from the table. If you set the style SWT.HIDE_SELECTION to the table, this will prevent a selection from being show at all. Now you can set you own selection column but you also need to handle or redirect the mouse and keyboard handling. So that simply to much effort and simply not worth it. Sometimes it just easier to say to a client that it simply can not be done.
Previous Topic:tab between columns in a table tree
Next Topic:Changing Datatype on DnD in a plattform agnostic way
Goto Forum:
  


Current Time: Fri Apr 26 22:44:29 GMT 2024

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

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

Back to the top