Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » OwnerDrawLabelProvider and PaintItem events for Grid/GridViewer?
OwnerDrawLabelProvider and PaintItem events for Grid/GridViewer? [message #57255] Wed, 06 August 2008 13:47 Go to next message
Tommy Gustafsson is currently offline Tommy GustafssonFriend
Messages: 12
Registered: July 2009
Junior Member
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 #57279 is a reply to message #57255] Wed, 06 August 2008 13:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 #494924 is a reply to message #57279] Tue, 03 November 2009 09:46 Go to previous messageGo to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
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 #494939 is a reply to message #494924] Tue, 03 November 2009 10:20 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 #494940 is a reply to message #494939] Tue, 03 November 2009 10:34 Go to previous message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
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 13:49 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 #598570 is a reply to message #57279] Tue, 03 November 2009 09:46 Go to previous message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
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 #598572 is a reply to message #494924] Tue, 03 November 2009 10:20 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 10:34 Go to previous message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
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
Previous Topic:Date/Calendar widgets - any validation support?
Next Topic:Date/Calendar widgets - any validation support?
Goto Forum:
  


Current Time: Tue Apr 16 10:46:53 GMT 2024

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

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

Back to the top