]> git.saurik.com Git - wxWidgets.git/commit
Use generic spin control itself as parent for its children.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Mar 2013 15:08:31 +0000 (15:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Mar 2013 15:08:31 +0000 (15:08 +0000)
commit29cc4cc9bcfd25f9b586e3f1b52a2168802616fc
treeb5429ff027e610629dff7c3f05b69613c9fd8eaf
parentbde7eee92ecf2f55965639013c5e872ba5500d9e
Use generic spin control itself as parent for its children.

This fixes a problem with using wxSpinCtrlGeneric in toolbars under wxOSX,
using the toolbar itself (i.e. the parent of the spin control) as parent for
the children didn't work there and no windows were visible at all.

Also use wxNavigationEnabled as base class of wxSpinCtrlGeneric to fix
keyboard navigation.

And override SetBackgroundColour() to set it for the text control part of the
spin control only.

Closes #15016.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/spinctlg.h
src/generic/spinctlg.cpp