|
|
Re: ITableColorProvider [message #94988 is a reply to message #94975] |
Mon, 30 June 2008 08:16 |
NkD Missing name Messages: 61 Registered: July 2009 |
Member |
|
|
Hmm, sorry but there are mistake. Background color appears unpredictable
in various columns. Sometime whole row of table have background color
from first column. Sometime table work well. Ussually it is wrong if I
use red background color (Graphics.getColor(255,0,0)) for first column
and for other column use white background color (255,255,255) or null,
then whole row have red color.
I have test table with three columns and some combination color work
well (for example Red, Green Blue). I dont know if this mistake depend
on color value... I know, it's strange. But some combination works and
some don't.
It's seems to me that white color is same as null, and background color
is hold from previous call ITableColotProvider.
Michal NkD Nikodím napsal(a):
> Ouch, sorry. I made few other test and background color works well. I
> dont know where I did mistake. My apologies.
>
> Michal NkD Nikodím napsal(a):
>> ITableColorProvider have bug in background color (wrong showing on
>> wrong columns). Foreground color seem that work well.
|
|
|
Re: ITableColorProvider [message #95166 is a reply to message #94988] |
Mon, 30 June 2008 15:43 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Michal,
if you have some standalone code that reproduces the problem, you
could file a bugzilla.
I assume that the actual error source is the Table widget. In order
to reproduce it, you might be better off to set the colors directly
on the widget.
Cheers,
Rüdiger
Michal NkD Nikodím wrote:
> Hmm, sorry but there are mistake. Background color appears unpredictable
> in various columns. Sometime whole row of table have background color
> from first column. Sometime table work well. Ussually it is wrong if I
> use red background color (Graphics.getColor(255,0,0)) for first column
> and for other column use white background color (255,255,255) or null,
> then whole row have red color.
>
> I have test table with three columns and some combination color work
> well (for example Red, Green Blue). I dont know if this mistake depend
> on color value... I know, it's strange. But some combination works and
> some don't.
> It's seems to me that white color is same as null, and background color
> is hold from previous call ITableColotProvider.
>
>
>
> Michal NkD Nikodím napsal(a):
>> Ouch, sorry. I made few other test and background color works well. I
>> dont know where I did mistake. My apologies.
>>
>> Michal NkD Nikodím napsal(a):
>>> ITableColorProvider have bug in background color (wrong showing on
>>> wrong columns). Foreground color seem that work well.
|
|
|
Re: ITableColorProvider [message #96275 is a reply to message #95166] |
Thu, 03 July 2008 09:43 |
Tiago Messages: 55 Registered: July 2009 |
Member |
|
|
I've also found this problem, there is a snippet in bug 237134 that
reproduces the problem. I intend to move it to a new bug, but haven't
got the time.
In the meantime if you replace the following code of line 201 in
TableItem.js (org.eclipse.rwt.q07 bundle):
if( this._backgrounds && this._backgrounds[ i ] ) {
background
= org.eclipse.swt.widgets.TableItem.BACKGROUND
+ this._backgrounds[ i ]
+ ";";
}
with
if( this._backgrounds && this._backgrounds[ i ] ) {
background
= org.eclipse.swt.widgets.TableItem.BACKGROUND
+ this._backgrounds[ i ]
+ ";";
} else {
background
= org.eclipse.swt.widgets.TableItem.BACKGROUND
+ "#f8f8ff"
+ ";";
}
solves the problem. This was done using the latest CVS head.
Tiago
Rüdiger Herrmann wrote:
> Michal,
>
> if you have some standalone code that reproduces the problem, you could
> file a bugzilla.
>
> I assume that the actual error source is the Table widget. In order to
> reproduce it, you might be better off to set the colors directly on the
> widget.
>
> Cheers,
> Rüdiger
>
> Michal NkD Nikodím wrote:
>> Hmm, sorry but there are mistake. Background color appears
>> unpredictable in various columns. Sometime whole row of table have
>> background color from first column. Sometime table work well. Ussually
>> it is wrong if I use red background color (Graphics.getColor(255,0,0))
>> for first column and for other column use white background color
>> (255,255,255) or null, then whole row have red color.
>>
>> I have test table with three columns and some combination color work
>> well (for example Red, Green Blue). I dont know if this mistake depend
>> on color value... I know, it's strange. But some combination works and
>> some don't.
>> It's seems to me that white color is same as null, and background
>> color is hold from previous call ITableColotProvider.
>>
>>
>>
>> Michal NkD Nikodím napsal(a):
>>> Ouch, sorry. I made few other test and background color works well. I
>>> dont know where I did mistake. My apologies.
>>>
>>> Michal NkD Nikodím napsal(a):
>>>> ITableColorProvider have bug in background color (wrong showing on
>>>> wrong columns). Foreground color seem that work well.
|
|
|
Powered by
FUDForum. Page generated in 0.03449 seconds