Skip to main content


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 mahamuniFriend
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 SchindlFriend
Messages: 6651
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: Thu Apr 25 02:03:36 GMT 2024

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

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

Back to the top