Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » TableViewer column divider click to resize(Excel like functionality when user click on divider twice resize the column to preferred size.)
TableViewer column divider click to resize [message #1100694] Tue, 03 September 2013 09:03 Go to next message
László Erős is currently offline László Erős
Messages: 5
Registered: September 2013
Junior Member
Hello!

I would like to detect click on TableViewer column header edge.
(The place where the mouse change to a column divider and where the user can
resize the columns).

My problem is i cant find it how is it possible. I think there is no event for that.
Is there a way that i can detect that the mouse is changed to a divider if hover on the column header edge? Or there is some other way i am not think on it at the moment?

I am using TableColumnLayout and my goal is an Excel like functionality when
the user clicks on the divider twice call a column.pack() on it to resize to
the preffered size.

Thanks for any help how to achieve this functionality.

László

Re: TableViewer column divider click to resize [message #1100764 is a reply to message #1100694] Tue, 03 September 2013 11:01 Go to previous message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1794
Registered: July 2009
Senior Member
Hi,
we already have a bug opened about it:
207055: [Tree][Table] doubleclick does not pack columns
https://bugs.eclipse.org/bugs/show_bug.cgi?id=207055
Did you try to add double click listener to TableComlun?
Best,
Ivan

On 9/3/2013 5:49 PM, László Erős wrote:
> Hello!
>
> I would like to detect click on TableViewer column header edge.
> (The place where the mouse change to a column divider and where the
> user can
> resize the columns).
>
> My problem is i cant find it how is it possible. I think there is no
> event for that.
> Is there a way that i can detect that the mouse is changed to a
> divider if hover on the column header edge? Or there is some other way
> i am not think on it at the moment?
>
> I am using TableColumnLayout and my goal is an Excel like
> functionality when the user clicks on the divider twice call a
> column.pack() on it to resize to
> the preffered size.
>
> Thanks for any help how to achieve this functionality.
>
> László
>
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Error occur when using Drog&Drop in tableViewer
Next Topic:(Download-)Links in Table- and TreeViewer
Goto Forum:
  


Current Time: Thu Aug 28 03:26:26 EDT 2014

Powered by FUDForum. Page generated in 0.03558 seconds