Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » table row height
table row height [message #455964] Tue, 24 May 2005 06:44 Go to next message
Eclipse UserFriend
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 10:19 Go to previous messageGo to next message
Eclipse UserFriend
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 13:31 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 08:26:23 EDT 2025

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

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

Back to the top