Hi,
I
am unable to set Tab Index for the controls present on a frame. All the
controls(text control, buttons, bitmap, Checklist box) have been added to
sizers. I have developed the GUI in BOA Constructor. Is there something where
we can mention the Tab Index to each control(which are added to sizers)?
Any help is
much appreciated!!!.
Regards,
Rajendra
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
Hi,
I am unable to set Tab Index for the controls present on a
frame. All the controls(text control, buttons, bitmap, Checklist box) have
been added to sizers. I have developed the GUI in BOA Constructor. Is there
something where we can mention the Tab Index to each control(which are added
to sizers)?
As far as I remember, the tab order in wxWidgets/wxPython is the same
as the order of creation of the controls. So, for example, if you
create a button, a list and a tree the tab order is button => list =>
tree. If you want to change the tab order, you may take a look at the
two methods:
"""
wxWindow::MoveAfterInTabOrder
void MoveAfterInTabOrder(wxWindow *win)
Moves this window in the tab navigation order after the specified win.
This means that when the user presses TAB key on that other window,
the focus switches to this window.
"""
"""
wxWindow::MoveBeforeInTabOrder
void MoveBeforeInTabOrder(wxWindow *win)
Same as MoveAfterInTabOrder except that it inserts this window just
before win instead of putting it right after it
"""
The exception, obviously, is for controls which cannot receive focus
from keyboard.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
ยทยทยท
On Tue, Oct 14, 2008 at 9:28 AM, Rajendra Arvind Gai wrote:
I am unable to set Tab Index for the controls present on a
frame.
I didn't carefully read this sentence... do not put controls directly
on a frame, it looks weird on Windows and it may screw up your tab
indexing (not sure about it though...). I'd suggest you to use a
structure like:
wx.Frame => wx.Panel => your controls
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/