Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableViewer Painting CellEditor One Cell To High
TableViewer Painting CellEditor One Cell To High [message #447416] Tue, 14 December 2004 16:19 Go to next message
Preston Lee is currently offline Preston LeeFriend
Messages: 25
Registered: July 2009
Junior Member
I'm making use of TableViewers for almost all of my tables. In one
particular case, the editor (be it a Text, Combo etc) is *always* drawn
exactly one cell above where it should be. For example, if you click a
cell in the first row, the editor is drawn on top of the table header. If
there is no header, it still gets drawn one cell height above, which in
this case is completely outside the table area.

It seems like there's an off-by-one error somewhere, but since my code
isn't the one calculating where to paint to control, I'm stumped as to
what the problem is. Aside from this problem, everything in the table is
functional normally (including the CellModifier, LabelProvider, and
ContentProvider). Thanks!

Preston

Linux and Win32
Eclipse 3.0.1
Java 1.5
Re: TableViewer Painting CellEditor One Cell To High [message #447568 is a reply to message #447416] Tue, 14 December 2004 21:04 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You should enter a bug report against Platform SWT with code showing the
error.

Please specify which platform you are running on. If it is Linux GTK,
please give the exact version (e.g. rpm -q gtk2)

"Preston Lee" <plee@unicon.net> wrote in message
news:pan.2004.12.14.16.19.27.109170@unicon.net...
> I'm making use of TableViewers for almost all of my tables. In one
> particular case, the editor (be it a Text, Combo etc) is *always* drawn
> exactly one cell above where it should be. For example, if you click a
> cell in the first row, the editor is drawn on top of the table header. If
> there is no header, it still gets drawn one cell height above, which in
> this case is completely outside the table area.
>
> It seems like there's an off-by-one error somewhere, but since my code
> isn't the one calculating where to paint to control, I'm stumped as to
> what the problem is. Aside from this problem, everything in the table is
> functional normally (including the CellModifier, LabelProvider, and
> ContentProvider). Thanks!
>
> Preston
>
> Linux and Win32
> Eclipse 3.0.1
> Java 1.5
Previous Topic:Having fun with SWT UnsatisfiedLinkError...
Next Topic:Changing the border on a Group
Goto Forum:
  


Current Time: Wed Oct 28 05:38:52 GMT 2020

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

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

Back to the top