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 #594592] Tue, 28 April 2009 14:38
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.
Previous Topic:Synchronise TreeListener-Events between two Grids
Next Topic:[Grid] cellSelection and rowSelection
Goto Forum:
  


Current Time: Fri Apr 26 19:19:51 GMT 2024

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

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

Back to the top