X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f6475c145b713efc0c3d8b482338438e927b763..e960c20e389061c0db09e03fdaf9ffe3a418779b:/samples/widgets/combobox.cpp diff --git a/samples/widgets/combobox.cpp b/samples/widgets/combobox.cpp index 4d2e59e1c6..933864004c 100644 --- a/samples/widgets/combobox.cpp +++ b/samples/widgets/combobox.cpp @@ -250,6 +250,7 @@ void ComboboxWidgetsPage::CreateContent() m_chkSort = CreateCheckBoxAndAddToSizer(sizerLeft, _T("&Sort items")); m_chkReadonly = CreateCheckBoxAndAddToSizer(sizerLeft, _T("&Read only")); m_chkFilename = CreateCheckBoxAndAddToSizer(sizerLeft, _T("&File name")); + m_chkFilename->Disable(); // not implemented yet sizerLeft->Add(5, 5, 0, wxGROW | wxALL, 5); // spacer sizerLeft->Add(m_radioKind, 0, wxGROW | wxALL, 5); @@ -334,8 +335,6 @@ void ComboboxWidgetsPage::CreateContent() Reset(); SetSizer(sizerTop); - - sizerTop->Fit(this); } // ---------------------------------------------------------------------------- @@ -357,8 +356,6 @@ void ComboboxWidgetsPage::CreateCombo() flags |= wxCB_SORT; if ( m_chkReadonly->GetValue() ) flags |= wxCB_READONLY; - if ( m_chkFilename->GetValue() ) - flags |= wxCB_FILENAME; switch ( m_radioKind->GetSelection() ) { @@ -396,6 +393,11 @@ void ComboboxWidgetsPage::CreateCombo() 0, NULL, flags); +#if 0 + if ( m_chkFilename->GetValue() ) + ; +#endif // TODO + unsigned int count = items.GetCount(); for ( unsigned int n = 0; n < count; n++ ) {