| 
| Grid selection background color when not in focus [message #47074] | Fri, 18 January 2008 15:39  |  | 
| Eclipse User  |  |  |  |  | I'm converting from Table to Grid and noticed a difference in the color of selection background when the control loses focus.  In the Table, the
 selection color changes from blue to gray (on my machine).  In the Grid, the
 selection color stays the same regardless of focus.  Is there a setting to
 turn this behavior on?  Do I have to try to manage the background colormy
 self via a listener?  Is this a bug?
 
 I am using the Grid in multiple views in an RCP application.  It's obvious
 that Table is losing focus when I activate a different view, however, that's
 not the case with Grid and presents a usability problem for our users.
 
 Thanks,
 -Ryan Norris
 |  |  |  | 
| 
| Re: Grid selection background color when not in focus [message #47533 is a reply to message #47074] | Sun, 27 January 2008 09:51  |  | 
| Eclipse User  |  |  |  |  | Hi Ryan, 
 Grid does not have this behavior.  SWT currently doesn't provide a color
 that corresponds to the unfocused selection color.  I've added an SWT
 feature request here:
 https://bugs.eclipse.org/bugs/show_bug.cgi?id=216700
 
 You can't easily change this color yourself.  You could do this if you
 wrote your own cell renderer but (depending on your grid) its not a
 particularly easy task.  Also, you would have to hard code some
 unfocused color that would work for you until SWT adds the system color
 lookup.
 
 Regards,
 -Chris
 
 Ryan Norris wrote:
 > I'm converting from Table to Grid and noticed a difference in the color of
 > selection background when the control loses focus.  In the Table, the
 > selection color changes from blue to gray (on my machine).  In the Grid, the
 > selection color stays the same regardless of focus.  Is there a setting to
 > turn this behavior on?  Do I have to try to manage the background colormy
 > self via a listener?  Is this a bug?
 >
 > I am using the Grid in multiple views in an RCP application.  It's obvious
 > that Table is losing focus when I activate a different view, however, that's
 > not the case with Grid and presents a usability problem for our users.
 >
 > Thanks,
 > -Ryan Norris
 >
 >
 |  |  |  | 
| 
| Re: Grid selection background color when not in focus [message #587966 is a reply to message #47074] | Sun, 27 January 2008 09:51  |  | 
| Eclipse User  |  |  |  |  | Hi Ryan, 
 Grid does not have this behavior.  SWT currently doesn't provide a color
 that corresponds to the unfocused selection color.  I've added an SWT
 feature request here:
 https://bugs.eclipse.org/bugs/show_bug.cgi?id=216700
 
 You can't easily change this color yourself.  You could do this if you
 wrote your own cell renderer but (depending on your grid) its not a
 particularly easy task.  Also, you would have to hard code some
 unfocused color that would work for you until SWT adds the system color
 lookup.
 
 Regards,
 -Chris
 
 Ryan Norris wrote:
 > I'm converting from Table to Grid and noticed a difference in the color of
 > selection background when the control loses focus.  In the Table, the
 > selection color changes from blue to gray (on my machine).  In the Grid, the
 > selection color stays the same regardless of focus.  Is there a setting to
 > turn this behavior on?  Do I have to try to manage the background colormy
 > self via a listener?  Is this a bug?
 >
 > I am using the Grid in multiple views in an RCP application.  It's obvious
 > that Table is losing focus when I activate a different view, however, that's
 > not the case with Grid and presents a usability problem for our users.
 >
 > Thanks,
 > -Ryan Norris
 >
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04484 seconds