Added check to ensure that style arg to ctor has either wxHORIZONTAL or
wxVERTICAL. Without one of these the slider doesn't display under Motif. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
23e4b7d824
commit
ba7ce6a0b7
@ -52,6 +52,9 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
||||
const wxValidator& validator,
|
||||
const wxString& name)
|
||||
{
|
||||
if ( !((style & wxSL_HORIZONTAL) || (style & wxSL_VERTICAL)) )
|
||||
style |= wxSL_HORIZONTAL;
|
||||
|
||||
SetName(name);
|
||||
SetValidator(validator);
|
||||
m_backgroundColour = parent->GetBackgroundColour();
|
||||
|
Loading…
Reference in New Issue
Block a user