Hi Derrell,

On Wed, 16 Jun 2010, Derrell Lipman wrote:

> On Wed, Jun 16, 2010 at 15:50, Fritz Zaucker <[email protected]>wrote:
>
>> Hi,
>>
>> is it possible to insert a tabview.Page into a tabview at a certain
>> position
>> (instead of adding it to the end)?
>>
>
> Try adding it normally, followed by this code, which should move it to the
> new position:
>
> tabView.getChildControl("pane").addAt(page.getButton(), newPosition);

Hmm, this puts the button into the page part of the tabview. Looking at the
source I tried

    tabView.getChildControl("bar")._addAt(page.getButton(), newPosition);

which almost works, except that

newPosition = 0 or 1 puts the button to the very left
newPosition >= 2 puts the button to the very right (having initially 2
                                                     pages)

Cheers,
Fritz

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to