Hi,
It does not seem to be true that the forward tab ALWAYS changes the focus to
the next control in a dialog or panel (with tab traversal style). This is
easily observed (I hope!) when using the wxCalendarCtrl. Back tab seems to
always work fine; forward tabbing stops in the calendar control itself.
I have also observed this when tabbing between controls on a panel with tab
traversal style.
Has anyone else seen this, or am I missing something?
Hi,
It does not seem to be true that the forward tab ALWAYS changes the focus to
the next control in a dialog or panel (with tab traversal style). This is
easily observed (I hope!) when using the wxCalendarCtrl. Back tab seems to
always work fine; forward tabbing stops in the calendar control itself.
I have also observed this when tabbing between controls on a panel with tab
traversal style.
The controls can use styles and events to allow the navigation keys to be captured...
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
The controls can use styles and events to allow the navigation keys to
be captured...
If you create an XML dialog resource, put the calendar control in it, and
display it, you cannot use forward tab to move around the dialog properly.
This just doesn't seem right.
Do you mean that to get the forward tab to work properly in this simple
example I have to hook keyboard events and check for a tab, get the next
control and change focus? The wxCalendarCtrl creates several controls: a
calendar, a month selector, a year selector - it's not even obvious to me
how to get at those controls to hook any events or change focus in the first
place.
Sorry if I'm just confused. Maybe sometimes the obvious isn't so obvious.
The controls can use styles and events to allow the navigation keys to
be captured...
If you create an XML dialog resource, put the calendar control in it, and
display it, you cannot use forward tab to move around the dialog properly.
This just doesn't seem right.
Do you mean that to get the forward tab to work properly in this simple
example I have to hook keyboard events and check for a tab, get the next
control and change focus? The wxCalendarCtrl creates several controls: a
calendar, a month selector, a year selector - it's not even obvious to me
how to get at those controls to hook any events or change focus in the first
place.
No I just meant to say that it is possible for individual controls to override the Panel/Dialog and get the navigation keys themselves. Most don't though, and I don't think that the wxCalendarCtrl does as it seems to work for me.
What platform and version are you using? Can you make a small sample that shows the problem?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I've attached a small sample that demonstrates the problem on my system.
Some general Information from SiSoft's Sandra:
Windows System : Microsoft Windows 98 Ver 4.10.1998 Enhancement Pack Version : IE 5 6.0.2800.1106
DOS Sub-System : Microsoft MS-DOS Ver 7.10 A
Python info:
Python version (2, 2, 1, 'final', 0)
wxPython version 2.3.3.1
It does "sorta" work here, but not real well. If I put several other controls on the dialog then it works better but still not perfect. Part of the problem may be that the calenadar is composed of several native controls, but not all of them are wx widgets...
Please enter a bug report about it.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!