Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » KTable scroll to focus(Letting KTable scroll after selecting rows)
KTable scroll to focus [message #990979] Sun, 16 December 2012 01:55 Go to next message
ashish mahamuni is currently offline ashish mahamuni
Messages: 1
Registered: December 2012
Junior Member
I am developing eclipse plugin and using KTable (de.kupzog.ktable.KTable).

		table = new KTable(parent, 
				SWT.V_SCROLL |
				SWT.H_SCROLL |
				SWTX.FILL_WITH_LASTCOL |
				SWT.MULTI
				);


I am also using:


	table.addCellSelectionListener( new KTableSortOnClick(table, comparator) );


Whenever I select rows and columns using mouse right click and selection goes beyond the focus, vertical scroll bar doesn't move.

I want focus to be changed otherwise I am not able to select further rows.

I know there is protected method "scrollToFocus" implemented for class KTable.
How to invoke that ?

Do I have to add any listener for this ?

--Ashish
Re: KTable scroll to focus [message #991036 is a reply to message #990979] Mon, 17 December 2012 07:09 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5327
Registered: July 2009
Senior Member
Ask at a KTable forum. This control is not coming from eclipse.org

Tom
Am 16.12.12 21:01, schrieb ashish mahamuni:
> I am developing eclipse plugin and using KTable (de.kupzog.ktable.KTable).
>
> table = new KTable(parent, SWT.V_SCROLL |
> SWT.H_SCROLL |
> SWTX.FILL_WITH_LASTCOL |
> SWT.MULTI
> );
>
>
> I am also using:
>
>
>
> table.addCellSelectionListener( new KTableSortOnClick(table,
> comparator) );
>
>
> Whenever I select rows and columns using mouse right click and selection
> goes beyond the focus, vertical scroll bar doesn't move.
>
> I want focus to be changed otherwise I am not able to select further rows.
>
> I know there is protected method "scrollToFocus" implemented for class
> KTable.
> How to invoke that ?
> Do I have to add any listener for this ?
>
> --Ashish
Previous Topic:Dynamicly sizing scrolled content
Next Topic:NSImage invalid memory access
Goto Forum:
  


Current Time: Fri Sep 19 03:56:44 GMT 2014

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

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