Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Aligning TableEditor on Linux(Problems when setting Images or TableEditors to cells of specified column)
icon5.gif  Aligning TableEditor on Linux [message #652291] Thu, 03 February 2011 13:50 Go to next message
Albert Pikus is currently offline Albert PikusFriend
Messages: 70
Registered: October 2009
Member
Hi,

I have a question regarding TableEditors' horizontal alignment. Namely, I'm setting checkbox buttons OR images to TableItems inside a specified column, depending on some condition. I have a requirement that TableEditors are horizontally aligned inside a cell. So I'm using TableEditor.horizontalAlignment = SWT.CENTER to achieve this. But when running my application with SWT for GTK, TableEditors are not center aligned if I'm setting images too, while on Mac and Windows, editors stay center aligned. On Linux it seems that TableEditors' left side is put on the right side of the Image, as if I would be setting an Image to a cell AND an TableEditor right next to it, which is not the case. My code looks like this:

Table table = new Table(...);

if (condition)
{
	Button button = new Button(table, SWT.CHECK);

	TableEditor editor = new TableEditor(Table table);
	editor.horizontalAlignment = SWT.CENTER;            
	editor.setEditor(button, row, column);
}
else
{
	row.setImage(column, someImage);
}


The resulting table looks like this:
http://i51.tinypic.com/21r1aw.png


Is it possible to circumvent this unwanted alignment of TableEditors on GTK?


Best regards,

Albert

Re: Aligning TableEditor on Linux [message #657528 is a reply to message #652291] Thu, 03 March 2011 08:08 Go to previous message
Albert Pikus is currently offline Albert PikusFriend
Messages: 70
Registered: October 2009
Member
Hi,

I submitted a bug report, plase see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338774


Best regards,

Albert
Previous Topic:SWT TableItem and TreeItem
Next Topic:Preventing resize of a popup with a resize border
Goto Forum:
  


Current Time: Tue Jan 19 19:57:55 GMT 2021

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

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

Back to the top