workaround, see #14856
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9fbbb8b38b
commit
96943967a5
@ -378,10 +378,17 @@ public:
|
|||||||
if ( !(style & (wxHSCROLL | wxVSCROLL)) )
|
if ( !(style & (wxHSCROLL | wxVSCROLL)) )
|
||||||
style |= wxHSCROLL | wxVSCROLL;
|
style |= wxHSCROLL | wxVSCROLL;
|
||||||
|
|
||||||
|
#ifdef __WXOSX__
|
||||||
|
bool retval = T::Create(parent, winid, pos, size, style, name);
|
||||||
|
if ( retval && (style & wxALWAYS_SHOW_SB) )
|
||||||
|
ShowScrollbars(wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS);
|
||||||
|
return retval;
|
||||||
|
#else
|
||||||
if ( style & wxALWAYS_SHOW_SB )
|
if ( style & wxALWAYS_SHOW_SB )
|
||||||
ShowScrollbars(wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS);
|
ShowScrollbars(wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS);
|
||||||
|
|
||||||
return T::Create(parent, winid, pos, size, style, name);
|
return T::Create(parent, winid, pos, size, style, name);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// we need to return a special WM_GETDLGCODE value to process just the
|
// we need to return a special WM_GETDLGCODE value to process just the
|
||||||
|
Loading…
Reference in New Issue
Block a user