| OwnerDrawLabelProvider and PaintItem events for Grid/GridViewer? [message #57255] | 
Wed, 06 August 2008 09:47   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi 
 
I'm trying to custom draw some things within the cells of the 
Grid/Gridviewer using the OwnerDrawLabelProvider but it seems that paint 
events doesn't get triggered for the label provider. The same applies to 
SWT.paintItem on the Grid. Are these intended to be included or is there 
another way of doing it? 
 
With regards 
Tommy
 |  
 |  
  | 
 | 
 | 
 | 
| Re: OwnerDrawLabelProvider and PaintItem events for Grid/GridViewer? [message #494940 is a reply to message #494939] | 
Tue, 03 November 2009 05:34   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
done ... 
 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=294035 
 
Regards 
 
Enrico 
 
"Tom Schindl" <tom.schindl@bestsolution.at> schrieb im Newsbeitrag  
news:hcp05l$qb$1@build.eclipse.org... 
> Hi, 
> 
> Well Grid simply works different and you can't apply the concept without 
> investing time into it. 
> 
> Naturally we could add callbacks into our draw CellRenders callback to 
> PaintItem, MeasureItem, ... but frankly at the moment this is not on our 
> list of things so the only possibility is to experiment with writing 
> your own renderer. 
> 
> Please log a feature request so that we don't miss this feature. 
> 
> Tom 
> 
> Enrico Schnepel schrieb: 
>> why don't you use the same concept for the grid as well as for the 
>> native controls. I ran into the same problem. It should be possible to 
>> use the same labelprovider for the grid as well as for a SWT-backended 
>> JFace table. 
>> 
>> Regards, 
>> 
>> Enrico
 |  
 |  
  | 
| Re: OwnerDrawLabelProvider and PaintItem events for Grid/GridViewer? [message #591549 is a reply to message #57255] | 
Wed, 06 August 2008 09:49   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Now owner draw is a concept only part of native swt controls because  
nebula grid is completely custom drawn you can simply replace the  
cell-renderer if you need some custom drawing. 
 
The concept of owner draw can't work in nebula grid. 
 
Tom 
 
Tommy schrieb: 
> Hi 
>  
> I'm trying to custom draw some things within the cells of the 
> Grid/Gridviewer using the OwnerDrawLabelProvider but it seems that paint 
> events doesn't get triggered for the label provider. The same applies to 
> SWT.paintItem on the Grid. Are these intended to be included or is there 
> another way of doing it? 
>  
> With regards 
> Tommy 
>  
>  
 
 
--  
B e s t S o l u t i o n . at 
 ------------------------------------------------------------ -------- 
Tom Schindl                                          JFace-Committer 
 ------------------------------------------------------------ --------
 |  
 |  
  | 
 | 
| Re: OwnerDrawLabelProvider and PaintItem events for Grid/GridViewer? [message #598572 is a reply to message #494924] | 
Tue, 03 November 2009 05:20   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi, 
 
Well Grid simply works different and you can't apply the concept without 
investing time into it. 
 
Naturally we could add callbacks into our draw CellRenders callback to 
PaintItem, MeasureItem, ... but frankly at the moment this is not on our 
list of things so the only possibility is to experiment with writing 
your own renderer. 
 
Please log a feature request so that we don't miss this feature. 
 
Tom 
 
Enrico Schnepel schrieb: 
> why don't you use the same concept for the grid as well as for the 
> native controls. I ran into the same problem. It should be possible to 
> use the same labelprovider for the grid as well as for a SWT-backended 
> JFace table. 
>  
> Regards, 
>  
> Enrico
 |  
 |  
  | 
| Re: OwnerDrawLabelProvider and PaintItem events for Grid/GridViewer? [message #598578 is a reply to message #494939] | 
Tue, 03 November 2009 05:34   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
done ... 
 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=294035 
 
Regards 
 
Enrico 
 
"Tom Schindl" <tom.schindl@bestsolution.at> schrieb im Newsbeitrag  
news:hcp05l$qb$1@build.eclipse.org... 
> Hi, 
> 
> Well Grid simply works different and you can't apply the concept without 
> investing time into it. 
> 
> Naturally we could add callbacks into our draw CellRenders callback to 
> PaintItem, MeasureItem, ... but frankly at the moment this is not on our 
> list of things so the only possibility is to experiment with writing 
> your own renderer. 
> 
> Please log a feature request so that we don't miss this feature. 
> 
> Tom 
> 
> Enrico Schnepel schrieb: 
>> why don't you use the same concept for the grid as well as for the 
>> native controls. I ran into the same problem. It should be possible to 
>> use the same labelprovider for the grid as well as for a SWT-backended 
>> JFace table. 
>> 
>> Regards, 
>> 
>> Enrico
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.09783 seconds