Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Resize columns in a Table w/o headers
Resize columns in a Table w/o headers [message #883031] Thu, 07 June 2012 17:25 Go to next message
Joaquin Morcate is currently offline Joaquin MorcateFriend
Messages: 52
Registered: March 2010
Member
Te question is just that: Is it possible to resize the columns in a table without headers? I've googling about it but I could not find an answer.

Thank you very much.


Joaquin Morcate
Re: Resize columns in a Table w/o headers [message #886390 is a reply to message #883031] Thu, 14 June 2012 20:56 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
They can be resized programatically, but without the headers there's
nothing for the user to drag. If you really want to make this possible
then you can do the work to open a Tracker whenever a MouseDrag happens
close to the dividing line between two columns (give the Tracker a width
of 1 to simulate moving the line), and when the Tracker is done you can
programatically resize the column based on the Tracker's final location.

Example Tracker snippet (though not directly related to your case):
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet23.java

Grant


On 6/7/2012 1:25 PM, Joaquin Morcate wrote:
> Te question is just that: Is it possible to resize the columns in a
> table without headers? I've googling about it but I could not find an
> answer.
>
> Thank you very much.
>
>
> Joaquin Morcate
Re: Resize columns in a Table w/o headers [message #886667 is a reply to message #886390] Fri, 15 June 2012 11:46 Go to previous message
Joaquin Morcate is currently offline Joaquin MorcateFriend
Messages: 52
Registered: March 2010
Member
Thank you very much Grant. I will give it a try.
Previous Topic:SWT Browser and PDF
Next Topic:Page Settings in Visio through SWT
Goto Forum:
  


Current Time: Wed Apr 10 06:39:27 GMT 2024

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

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

Back to the top