Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » table row height
table row height [message #455964] Tue, 24 May 2005 10:44 Go to next message
Artek is currently offline Artek
Messages: 38
Registered: July 2009
Member
hello

how to change table row height ?

when I place an image (16x16) in row the row becomes higher (better to read)
is there any other way to get higher rows without placing icons ?
there is no such method setRowHeight(int)... (there is only getRowHeight())

is it possible to change the row height ?

im using eclipse 3.02

thanks
Artur
Re: table row height [message #455981 is a reply to message #455964] Tue, 24 May 2005 14:19 Go to previous messageGo to next message
Steve Northover is currently offline Steve Northover
Messages: 1636
Registered: July 2009
Senior Member
Not right now. Windows controls use the hieght of the first image assigned
to the table to control the row height of the table.

"Artur" <artekzx@o2.pl> wrote in message
news:d6v0oo$9ls$1@news.eclipse.org...
> hello
>
> how to change table row height ?
>
> when I place an image (16x16) in row the row becomes higher (better to
read)
> is there any other way to get higher rows without placing icons ?
> there is no such method setRowHeight(int)... (there is only
getRowHeight())
>
> is it possible to change the row height ?
>
> im using eclipse 3.02
>
> thanks
> Artur
>
>
Re: table row height [message #703558 is a reply to message #455981] Wed, 27 July 2011 17:31 Go to previous message
Kevin Mills is currently offline Kevin Mills
Messages: 2
Registered: July 2011
Junior Member
This seems to work for me (I found this someplace the other day from Google):

table.addListener(SWT.MeasureItem, new Listener() {
   public void handleEvent(Event event) {
      // height cannot be per row so simply set
      event.height = 28;
   }
});



That being said, I'm using Steve's rule of letting the first image determine the row size. Just wanted to put this out here as an alternative.

-Kevin
Previous Topic:Custom Widget Not Displaying When Using
Next Topic:How can i catch a message asking if you want to install flash plugins?
Goto Forum:
  


Current Time: Fri Sep 19 13:53:51 GMT 2014

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

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