Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Limitation of SWT.MeasureItem for SWT tables resizing ?
Limitation of SWT.MeasureItem for SWT tables resizing ? [message #774999] Thu, 05 January 2012 04:50 Go to next message
Jagruth P is currently offline Jagruth PFriend
Messages: 6
Registered: December 2011
Junior Member
Hello,

In the following article - http://www.eclipse.org/articles/article.php?file=Article-CustomDrawingTableAndTreeItems/index.html , Three constraints were given ,

" Note that attempts to change a cell's width or height in SWT.MeasureItem events are subject to the following constraints:

1) As of Eclipse 3.2 cell heights are not allowed to shrink, only to grow.

2)All items in a table have the same height, so increasing the height of a cell will result in the height of all items in the table growing accordingly.

3)If the cell is within a table column then its width is determined by the column's width. However, the SWT.MeasureItem event's width field should still always be set to the cell's desired content width because this value will be used if the table has no columns or if its column is being packed."

Can some one please tell me whether any advancements/bug fixes/updates have been made recently that can overcome the first and second constraints ??

[Updated on: Thu, 05 January 2012 06:18]

Report message to a moderator

Re: Limitation of SWT.MeasureItem while custom drawing SWT tables [message #775051 is a reply to message #774999] Thu, 05 January 2012 08:11 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Am 05.01.12 05:50, schrieb Jagruth P:
> Hello,
>
> In the following article -
> http://www.eclipse.org/articles/article.php?file=Article-CustomDrawingTableAndTreeItems/index.html
> , Three constraints were given ,
>
> " Note that attempts to change a cell's width or height in
> SWT.MeasureItem events are subject to the following constraints:
>
> 1) As of Eclipse 3.2 cell heights are not allowed to shrink, only to grow.
>
> 2)All items in a table have the same height, so increasing the height of
> a cell will result in the height of all items in the table growing
> accordingly.
>
> 3)If the cell is within a table column then its width is determined by
> the column's width. However, the SWT.MeasureItem event's width field
> should still always be set to the cell's desired content width because
> this value will be used if the table has no columns or if its column is
> being packed."
>
> Can some one please tell me whether any advancements/bug fixes/updates
> have been made recently that can overcome the first and second
> constraints ??
>

No. You have to use a custom drawn grid like Nebula Grid or NatTable
(soon part of Nebula).

Tom
Previous Topic:org.eclipse.swt.SWTException: Failed to execute runnable
Next Topic:set gray background for modal dialog
Goto Forum:
  


Current Time: Fri Dec 19 04:10:15 GMT 2014

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

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