Tab navigation on a Notebook

>C. Iacob wrote:
>
> > Hi folks,
> >
> > I bother you again; this time I have a wxFrame containing a wxNotebook
> > with a single page. On this page are two buttons. Why the focus can't
> > be switched from button2 to button1 when pressing "Tab" (or from
> > button1 to button 2 with "Shift-Tab")? Is there any workaround for this?
> >
> > It has to do with the notebook because for a simple panel it works.

I found the source of the problem: the notebook was placed directly on a wxFrame. Looks like one should never place anything but a wxPanel directly to a wxFrame. Then, on this wxPanel, anything can be placed. E.g.

NOT
         wxFrame
                 +--wxNotebook
BUT
         wxFrame
                 +--wxPanel
                         +--wxNotebook

Cristina.