[openbeos] Re: A fault in the current TabView (?)

> >I was looking at the source for TabView and I noticed that AddTab does not
> add 
> >the target view to the TabView's ContainerView. This a problem because the
> >BeBook example code reads paraphrased ...
> >
> >   tabView->AddTab( new TView( ... ), aTab );

How silly of me not to say.

Don't worry I tracked down where it is added. But it seems a bit risky.

void BTab::Select(BView *owner)
{       
        if (!owner)
                return;

        if (!View())
                return;

        if (!owner->Window())
                return;

        owner->AddChild(fView);
        //fView->Show();

        fSelected = true;
}

I will send my app later. When I reboot into BeOS and copy it to my data
partition, reboot into windows, connect to the net and log into yahoo.


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

Other related posts: