Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Textalignment in ColumnGroupHeader
Textalignment in ColumnGroupHeader [message #63135] Tue, 28 April 2009 14:38 Go to next message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

Hi,

i'd like to implement TextAlignment in ColumnGroupHeader (for now it's
just left aligned if i am correct). Where is the best location to
implement that?

I realised the code

if (!isWordWrap())
{
gc.drawString(TextUtils.getShortString(gc, group.getText(),
width), getBounds().x + x,
getBounds().y + topMargin);
}

in DefaultColumnGroupHeaderRenderer (row 82-86). Is this the best way to
react to the SWT.LEFT,RIGHT,CENTER styles?

Cheers,

Thomas E.-E.
Re: Textalignment in ColumnGroupHeader [message #63471 is a reply to message #63135] Mon, 04 May 2009 15:07 Go to previous message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

Hi,

could somebody please give me hint/tipp where to hook the Text-Alignment
for ColumnGroupHeader?

Cheers,

Thomas E.-E.



> i'd like to implement TextAlignment in ColumnGroupHeader (for now it's
> just left aligned if i am correct). Where is the best location to
> implement that?

> I realised the code

> if (!isWordWrap())
> {
> gc.drawString(TextUtils.getShortString(gc, group.getText(),
> width), getBounds().x + x,
> getBounds().y + topMargin);
> }

> in DefaultColumnGroupHeaderRenderer (row 82-86). Is this the best way to
> react to the SWT.LEFT,RIGHT,CENTER styles?

> Cheers,

> Thomas E.-E.
Re: Textalignment in ColumnGroupHeader [message #594720 is a reply to message #63135] Mon, 04 May 2009 15:07 Go to previous message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

Hi,

could somebody please give me hint/tipp where to hook the Text-Alignment
for ColumnGroupHeader?

Cheers,

Thomas E.-E.



> i'd like to implement TextAlignment in ColumnGroupHeader (for now it's
> just left aligned if i am correct). Where is the best location to
> implement that?

> I realised the code

> if (!isWordWrap())
> {
> gc.drawString(TextUtils.getShortString(gc, group.getText(),
> width), getBounds().x + x,
> getBounds().y + topMargin);
> }

> in DefaultColumnGroupHeaderRenderer (row 82-86). Is this the best way to
> react to the SWT.LEFT,RIGHT,CENTER styles?

> Cheers,

> Thomas E.-E.
Previous Topic:extremely mysterious problem with GridTableViewer and setInput
Next Topic:CompositeTable: Modifying the content of a row
Goto Forum:
  


Current Time: Tue Apr 23 07:14:58 GMT 2024

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

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

Back to the top