| 
| Vertical text alignment in Grid (table viewer)? [message #58923] | Sat, 06 September 2008 04:23  |  | 
| Eclipse User  |  |  |  |  | Hi, 
 I need vertical text alignment in a column which has large images (~3 x
 height of font) so that the text appears aligned with the middle of the
 image.
 
 Can't see standard provision for this, right?
 
 I can achieve this by copying & editing DefaultCellRenderer, however I
 would've thought other folks might also like a
 setVerticalAlignment(SWT.TOP/CENTER/BOTTOM) method on GridColumn, no?!
 
 Thanks,
 Justin
 |  |  |  | 
|  | 
|  | 
|  | 
| 
| Re: Vertical text alignment in Grid (table viewer)? [message #592163 is a reply to message #58923] | Sat, 06 September 2008 07:32  |  | 
| Eclipse User  |  |  |  |  | Hi, 
 File a bugzilla and in the ideal case you provide a patch for
 DefaultCellRenderer which has this feature.
 
 Tom
 
 Justin schrieb:
 > Hi,
 >
 > I need vertical text alignment in a column which has large images (~3 x
 > height of font) so that the text appears aligned with the middle of the
 > image.
 >
 > Can't see standard provision for this, right?
 >
 > I can achieve this by copying & editing DefaultCellRenderer, however I
 > would've thought other folks might also like a
 > setVerticalAlignment(SWT.TOP/CENTER/BOTTOM) method on GridColumn, no?!
 >
 > Thanks,
 > Justin
 >
 >
 
 
 --
 B e s t S o l u t i o n . at
 ------------------------------------------------------------ --------
 Tom Schindl                                          JFace-Committer
 ------------------------------------------------------------ --------
 |  |  |  | 
| 
| Re: Vertical text alignment in Grid (table viewer)? [message #592189 is a reply to message #58950] | Mon, 08 September 2008 11:14  |  | 
| Eclipse User  |  |  |  |  | Hi Tom, 
 Sure will do, can supply a patch too. Guess I should raise an enhancement
 request rather than a bug?
 
 Justin
 
 Tom Schindl wrote:
 
 > Hi,
 
 > File a bugzilla and in the ideal case you provide a patch for
 > DefaultCellRenderer which has this feature.
 
 > Tom
 
 > Justin schrieb:
 >> Hi,
 >>
 >> I need vertical text alignment in a column which has large images (~3 x
 >> height of font) so that the text appears aligned with the middle of the
 >> image.
 >>
 >> Can't see standard provision for this, right?
 >>
 >> I can achieve this by copying & editing DefaultCellRenderer, however I
 >> would've thought other folks might also like a
 >> setVerticalAlignment(SWT.TOP/CENTER/BOTTOM) method on GridColumn, no?!
 >>
 >> Thanks,
 >> Justin
 >>
 >>
 |  |  |  | 
|  | 
Powered by 
FUDForum. Page generated in 0.05707 seconds