Textalignment in ColumnGroupHeader [message #63135] |
Tue, 28 April 2009 14:38 |
|
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 |
|
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 |
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03026 seconds