Skip to main content


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 13:03 Go to next message
László Erős is currently offline László ErősFriend
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 15:01 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
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:(Download-)Links in Table- and TreeViewer
Next Topic:Label textsize
Goto Forum:
  


Current Time: Fri Apr 26 19:09:37 GMT 2024

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

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

Back to the top