Hello everyone,
I have a series of wx.TextCtrl's. Some of them are wx.TE_READONLY,
some are not.
If I open up the window, my focus is brought to the first textCtrl
(which is read-only). But if I start pressing Tab, all read-only
textCtrl's which are not wx.TE_MULTILINE (including this first one!)
are skipped and are not focusable in any way.
Is this intended behavior? If so, is there a way to make them
focusable besides turning them into multiline controls (which I
actually wouldn't like to)?
Windows 7, WxPython 2.9.
Thanks!
One question… if the TextCtrls aren’t editable, what purpose would tabbing into them have? You can’t do anything in them… so this may be the default/native behavior. There may be some custom ways around this, by catching the TAB in the active control, then having a custom handler (i.e. event.GetEventObject().GetNextSibling().SetFocus() )
------------ Original message ------------
From: Nathan McCorkle <nmz787@gmail.com>
To: wxpython-users@googlegroups.com
Date created: , 12:20:05 AM
Subject: [wxPython-users] Re: Single line read-only wx.TextCtrl is not focusable
One question... if the TextCtrls aren't editable, what purpose would
tabbing into them have? You can't do anything in them... so this may be the
default/native behavior. There may be some custom ways around this, by
catching the TAB in the active control, then having a custom handler (i.e.
event.GetEventObject().GetNextSibling().SetFocus() )
On Monday, October 6, 2014 9:51:21 AM UTC-7, Andre Polykanine wrote:
Hello everyone,
I have a series of wx.TextCtrl's. Some of them are wx.TE_READONLY,
some are not.
If I open up the window, my focus is brought to the first textCtrl
(which is read-only). But if I start pressing Tab, all read-only
textCtrl's which are not wx.TE_MULTILINE (including this first one!)
are skipped and are not focusable in any way.
Is this intended behavior? If so, is there a way to make them
focusable besides turning them into multiline controls (which I
actually wouldn't like to)?
Windows 7, WxPython 2.9.
Thanks!
--
With best regards from Ukraine,
Andre
Skype: Francophile
Twitter: x.com
Facebook: Menelion Elensúlë
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.