Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Empty table row height.
Empty table row height. [message #806046] Fri, 24 February 2012 08:33 Go to next message
Eclipse UserFriend
Hello,

I need to set o custom height to my tables. Listening to SWT.MeasureItem events works when i have items in my table, but when I have an empty table it doesn't work.
Any ideas?
Thanks in advance.

      
viewer.getTree().addListener(SWT.MeasureItem, new Listener() {
         public void handleEvent(Event event) {
            event.height = 30;
         }
      });
Re: Empty table row height. [message #808185 is a reply to message #806046] Mon, 27 February 2012 09:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

SWT.MeasureItem is sent before an item is drawn and setting event.height sets the height of the tree items. In an empty table, there are no items, so what height are you trying to set?

Here is a detailed article on Custom Drawing in Table and Tree Items

[Updated on: Mon, 27 February 2012 09:18] by Moderator

Re: Empty table row height. [message #809188 is a reply to message #808185] Tue, 28 February 2012 10:25 Go to previous message
Eclipse UserFriend
Hi Lakshmi Shanmugam and thanks for the response.

Although i have an empty table/tree the grid lines are still drawn, so I still need to be able to change the row height.

I found a bug report regarding this problem https://bugs.eclipse.org/bugs/show_bug.cgi?id=134454
Previous Topic:Browser.setUrl(arg0,arg1,arg2)
Next Topic:New widget and user defined styles
Goto Forum:
  


Current Time: Wed Jul 23 01:52:31 EDT 2025

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

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

Back to the top