Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » active CTabItem
active CTabItem [message #902603] Sat, 18 August 2012 19:17 Go to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
Hi,
what is the right incantation to get the index of the currently active
CTabItem?
Alternatively to get the CTabItem itself is ok.

I can show what I want with tabFolder.ShowItem(tabItem), but I couldn't
find a way to do the reverse.

Using tabFolder.getSelectionIndex() always returns "-1" in my tests.

Tia
Mauro
Re: active CTabItem [message #902606 is a reply to message #902603] Sat, 18 August 2012 21:53 Go to previous message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
Sorry for the noise.

tabFolder.getSelectionIndex() does indeed work... if used correctly.

My bad.
Mauro

On 18/08/2012 21:17, Mauro Condarelli wrote:
> Hi,
> what is the right incantation to get the index of the currently active
> CTabItem?
> Alternatively to get the CTabItem itself is ok.
>
> I can show what I want with tabFolder.ShowItem(tabItem), but I couldn't
> find a way to do the reverse.
>
> Using tabFolder.getSelectionIndex() always returns "-1" in my tests.
>
> Tia
> Mauro
>
Previous Topic:SWT shell disposed ?
Next Topic:Adding other controls to a ToolBar
Goto Forum:
  


Current Time: Tue Apr 23 16:23:53 GMT 2024

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

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

Back to the top