[wxPython-users] RE: SpinCtrl and forward tab-cycle

Robin Dunn robin at alldunn.com
Thu Jan 3 09:51:13 PST 2008


Mike Driscoll wrote:
> Matthias 
> 
>> -----Original Message-----
>> From: mawe [mailto:mawe at typeofundefined.com] 
>> Sent: Wednesday, January 02, 2008 3:32 PM
>> To: wxPython-users at lists.wxwidgets.org
>> Subject: Re: [wxPython-users] RE: SpinCtrl and forward tab-cycle
>>
>> Mike, thanks for the reply.
>>
>> You're right, it's just that the demo is using a Panel 
>> instead of a BoxSizer.
>>
>> Strange enough that it works if I cycle backwards through the 
>> widgets (SHIFT + TAB).
>>
>> Regards,
>> Matthias
>>
> 
> <snip>
> 
> That is weird. Just an FYI though: I left the BoxSizer in your code alone.
> I decided that maybe I should just include the code too, so it's attached.
> I have noticed that other people on this list have had odd things happen
> to them when they use only a frame as the parent of the widgets. Robin
> will hopefully weigh in and explain all.

Some of the native widgets on Windows do some tab traversal behavior 
internally.  It's probably just left over code from before the tab 
traversal was handled by a platform API and the controls had to 
implement it themselves.


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




More information about the wxpython-users mailing list