ComboBox

Hi,

I have a class that subclasses wxFrame and contains a wxPanel which
contains a couple of wxTextCtrls and a wxComboBox. By specifying
wxTAB_TRAVERSAL as the wxPanel's style, the tab key switches the focus
to the next control nicely, when a wxTextCtrl has the focus. It does
not do this when the wxComboBox has the focus.

Why is this?

What can I do to make tab send the focus to the next control when the
wxComboBox has the focus?

Oh, and this only happens when run on Linux, under windows the tab key
has the same affect when the wxComboBox has the focus as when the
wxTextCtrls do.

With thanks,

Jon.

···

--
Jonathan Stoneman - Programmer - Frontier Internet Services Limited
Tel: 02920 820000 Fax: 02920 820038 http://www.frontier.net.uk
All statements made are subject to Frontier's Terms and Conditions
of Business which are available upon request.

Further debugging has shown that this is not a wxComboBox problem, but
the fact that the control that I want the focus to switch to is a
wxTextCtrl with the wxTE_MULTILINE style. With that style removed, the
tab key switches the focus to the wxTextCtrl nicely.

Could anyone tell me why the wxTE_MULTILINE style stops a wxTextCtrl
receiving the focus automatically?

Thanks,

Jon.

···

On Thu, 2003-09-04 at 15:24, Jonathan Stoneman wrote:

Hi,

I have a class that subclasses wxFrame and contains a wxPanel which
contains a couple of wxTextCtrls and a wxComboBox. By specifying
wxTAB_TRAVERSAL as the wxPanel's style, the tab key switches the focus
to the next control nicely, when a wxTextCtrl has the focus. It does
not do this when the wxComboBox has the focus.

Why is this?

What can I do to make tab send the focus to the next control when the
wxComboBox has the focus?

Oh, and this only happens when run on Linux, under windows the tab key
has the same affect when the wxComboBox has the focus as when the
wxTextCtrls do.

With thanks,

Jon.

--
Jonathan Stoneman - Programmer - Frontier Internet Services Limited
Tel: 02920 820000 Fax: 02920 820038 http://www.frontier.net.uk
All statements made are subject to Frontier's Terms and Conditions
of Business which are available upon request.

Jonathan Stoneman wrote:

Further debugging has shown that this is not a wxComboBox problem, but
the fact that the control that I want the focus to switch to is a
wxTextCtrl with the wxTE_MULTILINE style. With that style removed, the
tab key switches the focus to the wxTextCtrl nicely.

Could anyone tell me why the wxTE_MULTILINE style stops a wxTextCtrl
receiving the focus automatically?

There shouldn't be a reason. Please enter a bug report about this.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!