I have a form consisting of first name, last, address, phone, etc. I noticed that tabbing between fields works inside of a wx.Dialog but not a wx.MDIChildFrame. Can I easily get tabbing to work in a MDI window? If not how can I create a wx.Dialog inside of a MDIChildFrame so that the two windows appear as one? IE: the dialog completely overlays the MDIChild, even when the window is being dragged around, etc.
I am using Win XP, Python 2.3.4 and wxPython 2.5.2.8.
Thanks,
John
···
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
John Taylor writes:
I have a form consisting of first name, last, address, phone,
etc. I noticed that tabbing between fields works inside of a
wx.Dialog but not a wx.MDIChildFrame. Can I easily get
tabbing to work in a MDI window? If not how can I create a
wx.Dialog inside of a MDIChildFrame so that the two windows
appear as one? IE: the dialog completely overlays the
MDIChild, even when the window is being dragged around, etc.
I am using Win XP, Python 2.3.4 and wxPython 2.5.2.8.
The easiest way to get tab traversal working is to put all your
objects on a wx.Panel, and then add the wx.Panel to the frame.
If that doesn't work out of the box (IIRC it does), then you
need to set the wx.TAB_TRAVERSAL style on the panel when
creating it.
Additionally, putting your objects on a panel rather than
directly on the frame makes it somewhat easier to move your
controls around in the future, or to allow for display of the
controls on top of multiple host windows. For example, your
name/address info may appear on a frame in one context, but on
a page in a notebook in a different context.
···
--
Paul McNett
Independent Software Consultant
http://www.paulmcnett.com