Use border style consistently in the widgets sample
Use GetAttrs().m_defaultFlags everywhere when creating the widgets, it was done for some but not all of them before, without any apparent reason. This should make setting various border styles work (for the widgets supporting them).
This commit is contained in:
@@ -68,7 +68,6 @@ class SearchCtrlWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
SearchCtrlWidgetsPage(WidgetsBookCtrl *book, wxImageList *imaglist);
|
||||
virtual ~SearchCtrlWidgetsPage(){};
|
||||
|
||||
virtual wxWindow *GetWidget() const wxOVERRIDE { return m_srchCtrl; }
|
||||
virtual wxTextEntryBase *GetTextEntry() const wxOVERRIDE { return m_srchCtrl; }
|
||||
@@ -176,7 +175,7 @@ void SearchCtrlWidgetsPage::CreateControl()
|
||||
if (m_srchCtrl)
|
||||
m_srchCtrl->Destroy();
|
||||
|
||||
int style = 0;
|
||||
long style = GetAttrs().m_defaultFlags;
|
||||
|
||||
m_srchCtrl = new wxSearchCtrl(this, -1, wxEmptyString, wxDefaultPosition,
|
||||
wxSize(150, -1), style);
|
||||
|
Reference in New Issue
Block a user