Community
Participate
Working Groups
Please take a look at the attached snippet. It should draw a diagonal line for testing purposes using the values in the event. Unfortunately, this does not work as expected. I would have expected that event.width will contain the width of the cell/column, but this obviously is not the case. Is my expectation wrong?
Created attachment 278739 [details] Snippet
Created attachment 278740 [details] Screenshot on Windows 10
When debugging in Table.sendPaintItemEvent I noticed, that itemRect.right does not contain a useful value - maybe because it is an owner drawn table? But then the correct cellWidth and cellHeight are calculated for setting the clipping. Unfortunately, event.width and event.height aren't updated.
Created attachment 278741 [details] Screenshot on Linux (CentOS 7.6.1810)
Created attachment 278742 [details] Screenshot on macOS 10.14 At least the platforms seem to be consistent - though useless in ownerdrawn tables. For performance reasons I'd like to avoid to call TableItem#getBounds(int) if this information already is available while sending the PaintItem event.
I have not used the "[Win32]" prefix, because on other platforms the value is also set to an unexpected value.
(In reply to Thomas Singer from comment #6) > I have not used the "[Win32]" prefix, because on other platforms the value > is also set to an unexpected value. Oops, sorry about that.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Bug is still present.