#endif
#include "wx/statline.h"
+#include "wx/settings.h"
#include "wx/generic/choicdgg.h"
// ----------------------------------------------------------------------------
m_listbox->SetSelection(0);
topsizer->
- Add(m_listbox, wxSizerFlags().Expand().TripleBorder(wxLEFT | wxRIGHT));
+ Add(m_listbox, wxSizerFlags().Expand().Proportion(1).TripleBorder(wxLEFT | wxRIGHT));
// 3) buttons if any
wxSizer *
long style,
const wxPoint& pos )
{
+ long styleLbox;
+#if wxUSE_CHECKLISTBOX
+ styleLbox = wxLB_ALWAYS_SB;
+#else
+ styleLbox = wxLB_ALWAYS_SB | wxLB_EXTENDED;
+#endif
+
if ( !wxAnyChoiceDialog::Create(parent, message, caption,
n, choices,
style, pos,
- wxLB_ALWAYS_SB | wxLB_EXTENDED) )
+ styleLbox) )
return false;
return true;
{
checkListBox->Check(selections[n]);
}
-
+
return;
}
#endif
-
+
// first clear all currently selected items
size_t n,
count = m_listbox->GetCount();