Skip to main content


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 12:16 Go to next message
Supreetha H R is currently offline Supreetha H RFriend
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 12:54 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
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 14:14 Go to previous messageGo to next message
Andre Ribeiro is currently offline Andre RibeiroFriend
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 12:54 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
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 14:14 Go to previous message
Andre Ribeiro is currently offline Andre RibeiroFriend
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: Tue Apr 23 10:35:22 GMT 2024

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

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

Back to the top