Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Listener for resize and moving of columns in grid view
Listener for resize and moving of columns in grid view [message #42895] Wed, 07 November 2007 07:16 Go to next message
Supreetha H R is currently offline Supreetha H R
Messages: 24
Registered: July 2009
Junior Member
Hello,

I have to get the width of a column in the grid veiwer, whenever user
resizes it. And also i need to know the order of columns when the columns
are moved.

For column order I tried with dragdetect listener but it is fired when
there is a drag of column, not when there is a drop after drag! I need the
order of columns after the drop not on drag.

Can anyone please tell me how or what type of event I could get on resize
and move operation done on columns?

Thanks,
Supreetha H R
Re: Listener for resize and moving of columns in grid view [message #42928 is a reply to message #42895] Wed, 07 November 2007 07:54 Go to previous messageGo to next message
Chris Gross is currently offline Chris Gross
Messages: 253
Registered: July 2009
Senior Member
Hi Supreetha,

Just listen for SWT.Move and SWT.Resize on each column.

Regards,
-Chris

Supreetha H R wrote:
> Hello,
>
> I have to get the width of a column in the grid veiwer, whenever user
> resizes it. And also i need to know the order of columns when the
> columns are moved.
>
> For column order I tried with dragdetect listener but it is fired when
> there is a drag of column, not when there is a drop after drag! I need
> the order of columns after the drop not on drag.
>
> Can anyone please tell me how or what type of event I could get on
> resize and move operation done on columns?
>
> Thanks,
> Supreetha H R
>
Re: Listener for resize and moving of columns in grid view [message #500258 is a reply to message #42928] Wed, 25 November 2009 09:14 Go to previous messageGo to next message
Andre Ribeiro is currently offline Andre Ribeiro
Messages: 58
Registered: July 2009
Member
Hi Chris,

The problem is that SWT.Move is also fired when the column is resized.

So is there a way to listen only to the drop (actual move) of the column?

thks,
André
Re: Listener for resize and moving of columns in grid view [message #586218 is a reply to message #42895] Wed, 07 November 2007 07:54 Go to previous messageGo to next message
Chris Gross is currently offline Chris Gross
Messages: 471
Registered: July 2009
Senior Member
Hi Supreetha,

Just listen for SWT.Move and SWT.Resize on each column.

Regards,
-Chris

Supreetha H R wrote:
> Hello,
>
> I have to get the width of a column in the grid veiwer, whenever user
> resizes it. And also i need to know the order of columns when the
> columns are moved.
>
> For column order I tried with dragdetect listener but it is fired when
> there is a drag of column, not when there is a drop after drag! I need
> the order of columns after the drop not on drag.
>
> Can anyone please tell me how or what type of event I could get on
> resize and move operation done on columns?
>
> Thanks,
> Supreetha H R
>
Re: Listener for resize and moving of columns in grid view [message #598702 is a reply to message #42928] Wed, 25 November 2009 09:14 Go to previous message
Andre Ribeiro is currently offline Andre Ribeiro
Messages: 58
Registered: July 2009
Member
Hi Chris,

The problem is that SWT.Move is also fired when the column is resized.

So is there a way to listen only to the drop (actual move) of the column?

thks,
André
Previous Topic:Rich text editor widget
Next Topic:Grid - using the Selection Service
Goto Forum:
  


Current Time: Thu Jul 31 20:02:59 EDT 2014

Powered by FUDForum. Page generated in 0.06815 seconds