///////////////////////////////////////////////////////////////////////////////
-// Name: common/pickerbase.cpp
+// Name: src/common/pickerbase.cpp
// Purpose: wxPickerBase class implementation
// Author: Francesco Montorsi
// Modified by:
#pragma hdrstop
#endif
+#if wxUSE_COLOURPICKERCTRL || \
+ wxUSE_DIRPICKERCTRL || \
+ wxUSE_FILEPICKERCTRL || \
+ wxUSE_FONTPICKERCTRL
+
#include "wx/pickerbase.h"
+#ifndef WX_PRECOMP
+ #include "wx/textctrl.h"
+#endif
// ============================================================================
// implementation
// remove any border style from our style as wxPickerBase's window must be
// invisible (user styles must be set on the textctrl or the platform-dependent picker)
style &= ~wxBORDER_MASK;
- if (!wxControl::Create(parent, id, pos, size, style | wxNO_BORDER | wxTAB_TRAVERSAL,
+ if (!wxControl::Create(parent, id, pos, size, style | wxNO_BORDER | wxTAB_TRAVERSAL,
validator, name))
return false;
wxASSERT(m_text);
// don't leave the textctrl empty
- if (m_text->GetValue().IsEmpty())
+ if (m_text->GetValue().empty())
UpdateTextCtrlFromPicker();
}
return ret;
}
+
+void wxPickerBase::SetInternalMargin(int newmargin)
+{
+ m_margin = newmargin;
+}
+
+#endif // Any picker in use