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:
parent
0acb119ccb
commit
7e8fb1e294
13 changed files with 83 additions and 78 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue