Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » icons in table cells
icons in table cells [message #452954] Tue, 29 March 2005 04:13 Go to next message
Ramesh Mahalingam is currently offline Ramesh MahalingamFriend
Messages: 6
Registered: July 2009
Junior Member
While displaying icons in table cells it is always shown left-aligned. Is
there a way to center-align the icon in a table cell? It doesn't work if I
use the style SWT.CENTER for the TableColumn containing the icons.
Re: icons in table cells [message #452958 is a reply to message #452954] Tue, 29 March 2005 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hoeggerand.post.ch

the left aligment has no dependence to the icons, the first column of a
table is always left aligned. to avoid this behaviour hang in a dummy
column with width 0. so you are able to align the visual first column.
hope it helps
siambalam

Ramesh Mahalingam schrieb:
> While displaying icons in table cells it is always shown left-aligned. Is
> there a way to center-align the icon in a table cell? It doesn't work if I
> use the style SWT.CENTER for the TableColumn containing the icons.
>
>
>
Re: icons in table cells [message #453224 is a reply to message #452958] Fri, 01 April 2005 08:37 Go to previous message
Ramesh Mahalingam is currently offline Ramesh MahalingamFriend
Messages: 6
Registered: July 2009
Junior Member
This is not the case only with the first column of a table. Any other column
in a table whose cells contain only icons, that column always shows
left-aligned. This looks visually awkward when I set the column header text
(some String)for this column and all the cells in the column contain icons.


"siambalam" <hoeggerand@post.ch> wrote in message
news:424908c5$1@news.post.ch...
> the left aligment has no dependence to the icons, the first column of a
> table is always left aligned. to avoid this behaviour hang in a dummy
> column with width 0. so you are able to align the visual first column.
> hope it helps
> siambalam
>
> Ramesh Mahalingam schrieb:
> > While displaying icons in table cells it is always shown left-aligned.
Is
> > there a way to center-align the icon in a table cell? It doesn't work if
I
> > use the style SWT.CENTER for the TableColumn containing the icons.
> >
> >
> >
Previous Topic:Set font for unicode character
Next Topic:Transparent Windows
Goto Forum:
  


Current Time: Tue Apr 23 11:18:37 GMT 2024

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

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

Back to the top