Thank you.

Finally I found that the best way seems to be to create a panel as a child of 
the frame, create the notebook as a child of the panel, and create panels with 
fields for each notebook page.

This way if I press Control+Tab or Control+Shift+Tab the focus moves to the 
next/previous page, and when doing this, by default the focus is set to the 
title of the page.

Then I can move the cursor to the next item in the page using tab and when the 
last page element got the focus, the focus moves back to the first page 
element. And when the focus is on the first element and I press Shift+Tab, the 
focus moves to the page label.

If I put the notebook as a child of the frame, when the focus reaches the last 
page element and I press tab, the focus doesn't move and this is not very nice.

Octavian

----- Original Message ----- 
From: "bungsuputra linan" <[EMAIL PROTECTED]>
To: "wxperl-users" <[email protected]>
Sent: Thursday, July 31, 2008 5:26 AM
Subject: Re: Wx::Notebook


>I usually create a notebook with a frame as its parent, then create a
> panel for each notebook page.
> 
> It's a little bit complicated to move the cursor from a control inside a
> notebook to the notebook title. When one of the controls in the notebook
> has the focus, you have to move the focus out of the notebook area, then
> when you press Shift + Tab, the focus will move to the notebook title. I
> hope there is an easier method to move focus in a notebook. 
> 
> By the way, I think it is also possible to set an accelerator to move
> cursor focus to the notebook title.
> 
> Regards,
> bungsu
> 
> On Wed, 2008-07-30 at 17:47 +0300, Octavian Rasnita wrote:
>> Hi,
>> 
>> I want to create a window with a multipage notebook, and in each page of the 
>> notebook to have more controls.
>> 
>> I don't know how to make it in order to be possible to move the cursor with 
>> the tab key among all the fields from a page and the title of the current 
>> page.
>> 
>> Do I need to create a panel and use it as the parent of the notebook? Or I 
>> need to create the notebook as a child of the frame directly?
>> 
>> And I guess I need to put all the fields I want to appear in a certain page 
>> in a panel, and use that panel as the object of that page tab.
>> But in that case it seems that I can't move the focus out of that page by 
>> using the tab key.
>> 
>> Please help.
>> 
>> Octavian
>> 
>

Reply via email to