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:
@@ -227,11 +227,14 @@ void FileCtrlWidgetsPage::CreateFileCtrl()
|
||||
{
|
||||
wxWindowUpdateLocker noUpdates( this );
|
||||
|
||||
const int style =
|
||||
( m_radioFileCtrlMode->GetSelection() == FileCtrlMode_Open ?
|
||||
wxFC_OPEN : wxFC_SAVE ) |
|
||||
( m_chkMultiple->IsChecked() ? wxFC_MULTIPLE : 0 ) |
|
||||
( m_chkNoShowHidden->IsChecked() ? wxFC_NOSHOWHIDDEN : 0 );
|
||||
long style = GetAttrs().m_defaultFlags;
|
||||
style |= m_radioFileCtrlMode->GetSelection() == FileCtrlMode_Open
|
||||
? wxFC_OPEN
|
||||
: wxFC_SAVE;
|
||||
if ( m_chkMultiple->IsChecked() )
|
||||
style |= wxFC_MULTIPLE;
|
||||
if ( m_chkNoShowHidden->IsChecked() )
|
||||
style |= wxFC_NOSHOWHIDDEN;
|
||||
|
||||
wxFileCtrl *fileCtrl = new wxFileCtrl(
|
||||
this,
|
||||
|
Reference in New Issue
Block a user