• Post Reply Bookmark Topic Watch Topic
  • New Topic

Modify the height of rows in swt Table

 
lok lok
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am fetching how can i modify the height of rows in swt Table.

I used this code :

table.addListener(SWT.MeasureItem, new Listener() {
public void handleEvent(Event event) {
event.gc.setLineWidth(varWidth);
event.height = varHeight;
}


but the problem is that i can just increase the height of rows but not decreasing it.

Can someone help me!


Thanks
 
Campbell Ritchie
Marshal
Posts: 52574
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read the important administrative private message I just sent you.
 
lok mpl
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This problem is cited as bug in Eclipse:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154341

Below the source code of the method org.eclipse.swt.widgets.Table#sendMeasureItemEvent



if (event.height > getItemHeight ()) setItemHeight (event.height);


In my opinion, we can only increase the size of the cell.


For more information, see the link below:

http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg43861.html
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the private message Campbell sent you again. The issue is still not resolved.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!