Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » CTabItem selection in a CTabFolder
CTabItem selection in a CTabFolder [message #454797] Fri, 29 April 2005 01:40 Go to next message
Eclipse UserFriend
Originally posted by: Parthasarathy.Ramachandran.siebel.com

Hi,

I have a number of CTabItems for my CTabFolder - as expected, a menu
shows up at the end with the CTabItems that are not displayed on the
folder currently.

For example, lets say that items 1,2,3,4,5 are visible, and items 6 - 15
are not visible, and show up in the popup.

Now lets say that I choose item 15 from the popup for display, I notice
that the CTabFolder shows 11,12,13,14, and 15, and selects 15 (which is
the RIGHT), and items 1-10 are in the popup. Now when I choose 1, it
puts 1-5 on the visible list, and selects 1, (on the LEFT side).
Internaly, It seems to be maintaining the relative ordering of the CTabItems

Is there a way where I can always make sure that the items picked from
the popup will show up as the right most selection? Therefore, what I am
looking for is - say, you have 1,2,3,4,5 in the example above, and I
pick 15, it should change to 1,2,3,4,15. After this if I pick 8, it
should change to 1,2,3,4,8

Is this possible?

--Partha
Re: CTabItem selection in a CTabFolder [message #454830 is a reply to message #454797] Fri, 29 April 2005 17:11 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Not exactly, but there is something similar called MRU.

The CTabFolder can work in two different modes. The default mode is that
the tabs are like a strip and the strip can be scrolled back and forth.
When you select an item from the list, the strip is scrolled the minimum
amount required to get the item into view. This is very similar to most
native tab folders. There is a second mode which you can activate using
CTabFolder.setMRUVisible(true). MRU is short for Most Recently Used. In
MRU mode, the tabs that are visible are based on which tabs were most
recently selected. For example, suppose only 4 tabs can be shown and the
rest are in the list. If you select 1, then 2, then 3, then 4 you will see
1 2 3 (4). Then choose 15 from the list and you will see 2 3 4 (15). Then
choose 8 from the list and you will see 3 4 (8) 15. The item in brackets ()
is the selected item.


"Partha Ramachandran" <Parthasarathy.Ramachandran@siebel.com> wrote in
message news:d4s3h9$s0i$1@news.eclipse.org...
> Hi,
>
> I have a number of CTabItems for my CTabFolder - as expected, a menu shows
> up at the end with the CTabItems that are not displayed on the folder
> currently.
>
> For example, lets say that items 1,2,3,4,5 are visible, and items 6 - 15
> are not visible, and show up in the popup.
>
> Now lets say that I choose item 15 from the popup for display, I notice
> that the CTabFolder shows 11,12,13,14, and 15, and selects 15 (which is
> the RIGHT), and items 1-10 are in the popup. Now when I choose 1, it puts
> 1-5 on the visible list, and selects 1, (on the LEFT side). Internaly, It
> seems to be maintaining the relative ordering of the CTabItems
>
> Is there a way where I can always make sure that the items picked from the
> popup will show up as the right most selection? Therefore, what I am
> looking for is - say, you have 1,2,3,4,5 in the example above, and I pick
> 15, it should change to 1,2,3,4,15. After this if I pick 8, it should
> change to 1,2,3,4,8
>
> Is this possible?
>
> --Partha
Previous Topic:SWT and mySQL - how?
Next Topic:Professional SWT The Standard Widget Toolkit Volume 2, when?
Goto Forum:
  


Current Time: Fri Apr 19 19:36:21 GMT 2024

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

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

Back to the top