Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » swt - CTabFolder
swt - CTabFolder [message #464840] Wed, 30 November 2005 16:05 Go to next message
Joachim Schreibmaier is currently offline Joachim SchreibmaierFriend
Messages: 89
Registered: July 2009
Member
hi,

in my IRC chat I've a tabfolder which represents the container for my
chatrooms. When I connect to the IRC-server the tabitem has not the focus
and I only see the tabitem when I click on the tab or when I give the focus
to another view or item.

As a solution I've tried to but the cursor into a text-field, but how? The
method setFocus() isn't the solution.

--
Joachim
Re: swt - CTabFolder [message #464852 is a reply to message #464840] Wed, 30 November 2005 17:58 Go to previous messageGo to next message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 48
Registered: July 2009
Member
I've been using the setSelection method for this:

tabfolder.setSelection(int) or
tabfolder.setSelection(tabitem)

if the tab shows up empty, you may need to call layout



Joachim Schreibmaier wrote:
> hi,
>
> in my IRC chat I've a tabfolder which represents the container for my
> chatrooms. When I connect to the IRC-server the tabitem has not the focus
> and I only see the tabitem when I click on the tab or when I give the focus
> to another view or item.
>
> As a solution I've tried to but the cursor into a text-field, but how? The
> method setFocus() isn't the solution.
>
Re: swt - CTabFolder [message #464854 is a reply to message #464852] Wed, 30 November 2005 18:30 Go to previous message
Joachim Schreibmaier is currently offline Joachim SchreibmaierFriend
Messages: 89
Registered: July 2009
Member
hi,
"Jeremy Dowdall" <dev@myriadfinancial.com wrote:
> I've been using the setSelection method for this:
>
> tabfolder.setSelection(int) or
> tabfolder.setSelection(tabitem)

wow. thanks, the second method was the solution for my problem

--
Joachim
Previous Topic:Text Color
Next Topic:How to flash the icon in the Windows taskbar?
Goto Forum:
  


Current Time: Thu Mar 28 19:04:20 GMT 2024

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

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

Back to the top