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:
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "wx/xrc/xh_scwin.h"
|
#include "wx/xrc/xh_scwin.h"
|
||||||
#include "wx/scrolwin.h"
|
#include "wx/scrolwin.h"
|
||||||
|
#include "wx/frame.h" // to get wxNO_3D
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
|
IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
|
||||||
|
|
||||||
@@ -29,6 +30,12 @@ wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler()
|
|||||||
{
|
{
|
||||||
XRC_ADD_STYLE(wxHSCROLL);
|
XRC_ADD_STYLE(wxHSCROLL);
|
||||||
XRC_ADD_STYLE(wxVSCROLL);
|
XRC_ADD_STYLE(wxVSCROLL);
|
||||||
|
|
||||||
|
// wxPanel styles
|
||||||
|
XRC_ADD_STYLE(wxNO_3D);
|
||||||
|
XRC_ADD_STYLE(wxTAB_TRAVERSAL);
|
||||||
|
XRC_ADD_STYLE(wxWS_EX_VALIDATE_RECURSIVELY);
|
||||||
|
|
||||||
AddWindowStyles();
|
AddWindowStyles();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "wx/xrc/xh_scwin.h"
|
#include "wx/xrc/xh_scwin.h"
|
||||||
#include "wx/scrolwin.h"
|
#include "wx/scrolwin.h"
|
||||||
|
#include "wx/frame.h" // to get wxNO_3D
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
|
IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
|
||||||
|
|
||||||
@@ -29,6 +30,12 @@ wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler()
|
|||||||
{
|
{
|
||||||
XRC_ADD_STYLE(wxHSCROLL);
|
XRC_ADD_STYLE(wxHSCROLL);
|
||||||
XRC_ADD_STYLE(wxVSCROLL);
|
XRC_ADD_STYLE(wxVSCROLL);
|
||||||
|
|
||||||
|
// wxPanel styles
|
||||||
|
XRC_ADD_STYLE(wxNO_3D);
|
||||||
|
XRC_ADD_STYLE(wxTAB_TRAVERSAL);
|
||||||
|
XRC_ADD_STYLE(wxWS_EX_VALIDATE_RECURSIVELY);
|
||||||
|
|
||||||
AddWindowStyles();
|
AddWindowStyles();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user