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:
@@ -195,7 +195,11 @@ void TimePickerWidgetsPage::CreateTimePicker()
|
||||
|
||||
delete m_timePicker;
|
||||
|
||||
m_timePicker = new wxTimePickerCtrl(this, TimePickerPage_Picker, value);
|
||||
long style = GetAttrs().m_defaultFlags;
|
||||
|
||||
m_timePicker = new wxTimePickerCtrl(this, TimePickerPage_Picker, value,
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
style);
|
||||
|
||||
m_sizerTimePicker->Add(0, 0, 1, wxCENTRE);
|
||||
m_sizerTimePicker->Add(m_timePicker, 1, wxCENTRE);
|
||||
|
Reference in New Issue
Block a user