in wxWindowX11.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14825
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !(style & (wxLB_MULTIPLE | wxLB_EXTENDED)) )
style |= wxLB_SINGLE;
if ( !(style & (wxLB_MULTIPLE | wxLB_EXTENDED)) )
style |= wxLB_SINGLE;
- if ( !wxControl::Create(parent, id, pos, size, style | wxVSCROLL , wxDefaultValidator, name) )
+#if wxUSE_TWO_WINDOWS
+ style |= wxVSCROLL|wxHSCROLL;
+ if ((style & wxBORDER_MASK) == 0)
+ style |= wxBORDER_SUNKEN;
+#endif
+
+ if ( !wxControl::Create(parent, id, pos, size, style,
+ wxDefaultValidator, name) )
return FALSE;
SetWindow(this);
return FALSE;
SetWindow(this);
// create data object for single line controls
m_data.sdata = new wxTextSingleLineData;
}
// create data object for single line controls
m_data.sdata = new wxTextSingleLineData;
}
+
+#if wxUSE_TWO_WINDOWS
+ if ((style & wxBORDER_MASK) == 0)
+ style |= wxBORDER_SUNKEN;
+#endif
if ( !wxControl::Create(parent, id, pos, size, style,
validator, name) )
if ( !wxControl::Create(parent, id, pos, size, style,
validator, name) )
+ {
+ // char *crash = NULL;
+ // *crash = 0;
wxFAIL_MSG(_T("unknown border type"));
// fall through
wxFAIL_MSG(_T("unknown border type"));
// fall through
case wxBORDER_DEFAULT:
case wxBORDER_NONE:
case wxBORDER_DEFAULT:
case wxBORDER_NONE: