Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Vertical text alignment in Grid (table viewer)?
Vertical text alignment in Grid (table viewer)? [message #58923] Sat, 06 September 2008 08:23 Go to next message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 68
Registered: July 2009
Member
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 #58950 is a reply to message #58923] Sat, 06 September 2008 11:32 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 #59029 is a reply to message #58950] Mon, 08 September 2008 15:14 Go to previous messageGo to next message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 68
Registered: July 2009
Member
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
>>
>>
Re: Vertical text alignment in Grid (table viewer)? [message #59055 is a reply to message #59029] Mon, 08 September 2008 16:30 Go to previous message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 68
Registered: July 2009
Member
Enhancement raised and patch added:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=246608

Justin
Re: Vertical text alignment in Grid (table viewer)? [message #592163 is a reply to message #58923] Sat, 06 September 2008 11:32 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 15:14 Go to previous message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 68
Registered: July 2009
Member
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
>>
>>
Re: Vertical text alignment in Grid (table viewer)? [message #592199 is a reply to message #59029] Mon, 08 September 2008 16:30 Go to previous message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 68
Registered: July 2009
Member
Enhancement raised and patch added:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=246608

Justin
Previous Topic:Header-Controls available in CVS
Next Topic:Grid Row Groups
Goto Forum:
  


Current Time: Thu Apr 25 09:29:44 GMT 2024

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

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

Back to the top