wxScrolledWindow should allow the same styles as wxPanel, especially wxTAB_TRAVERSAL.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-08-25 22:09:01 +00:00
parent ae5aafdc71
commit ffdf1b4903
2 changed files with 14 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_scwin.h"
#include "wx/scrolwin.h"
#include "wx/frame.h" // to get wxNO_3D
IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
@ -29,6 +30,12 @@ wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler()
{
XRC_ADD_STYLE(wxHSCROLL);
XRC_ADD_STYLE(wxVSCROLL);
// wxPanel styles
XRC_ADD_STYLE(wxNO_3D);
XRC_ADD_STYLE(wxTAB_TRAVERSAL);
XRC_ADD_STYLE(wxWS_EX_VALIDATE_RECURSIVELY);
AddWindowStyles();
}

View File

@ -21,6 +21,7 @@
#include "wx/xrc/xh_scwin.h"
#include "wx/scrolwin.h"
#include "wx/frame.h" // to get wxNO_3D
IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
@ -29,6 +30,12 @@ wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler()
{
XRC_ADD_STYLE(wxHSCROLL);
XRC_ADD_STYLE(wxVSCROLL);
// wxPanel styles
XRC_ADD_STYLE(wxNO_3D);
XRC_ADD_STYLE(wxTAB_TRAVERSAL);
XRC_ADD_STYLE(wxWS_EX_VALIDATE_RECURSIVELY);
AddWindowStyles();
}