// the checkboxes for styles
wxCheckBox *m_chkSort,
*m_chkReadonly,
- *m_chkFilename;
+ *m_chkProcessEnter;
// the combobox itself and the sizer it is in
wxComboBox *m_combobox;
// init everything
m_chkSort =
m_chkReadonly =
- m_chkFilename = (wxCheckBox *)NULL;
+ m_chkProcessEnter = (wxCheckBox *)NULL;
m_combobox = (wxComboBox *)NULL;
m_sizerCombo = (wxSizer *)NULL;
m_chkSort = CreateCheckBoxAndAddToSizer(sizerLeftTop, wxT("&Sort items"));
m_chkReadonly = CreateCheckBoxAndAddToSizer(sizerLeftTop, wxT("&Read only"));
- m_chkFilename = CreateCheckBoxAndAddToSizer(sizerLeftTop, wxT("&File name"));
- m_chkFilename->Disable(); // not implemented yet
+ m_chkProcessEnter = CreateCheckBoxAndAddToSizer(sizerLeftTop, wxT("Process &Enter"));
sizerLeftTop->Add(5, 5, 0, wxGROW | wxALL, 5); // spacer
sizerLeftTop->Add(m_radioKind, 0, wxGROW | wxALL, 5);
wxSizer *sizerLeft = new wxBoxSizer(wxVERTICAL);
sizerLeft->Add(sizerLeftTop);
sizerLeft->AddSpacer(10);
- sizerLeft->Add(sizerLeftBottom);
+ sizerLeft->Add(sizerLeftBottom, wxSizerFlags().Expand());
// middle pane
wxStaticBox *box2 = new wxStaticBox(this, wxID_ANY,
{
m_chkSort->SetValue(false);
m_chkReadonly->SetValue(false);
- m_chkFilename->SetValue(false);
+ m_chkProcessEnter->SetValue(false);
}
void ComboboxWidgetsPage::CreateCombo()
flags |= wxCB_SORT;
if ( m_chkReadonly->GetValue() )
flags |= wxCB_READONLY;
+ if ( m_chkProcessEnter->GetValue() )
+ flags |= wxTE_PROCESS_ENTER;
+
switch ( m_radioKind->GetSelection() )
{
0, NULL,
flags);
-#if 0
- if ( m_chkFilename->GetValue() )
- ;
-#endif // TODO
-
unsigned int count = items.GetCount();
for ( unsigned int n = 0; n < count; n++ )
{
{
event.Enable( m_chkSort->GetValue() ||
m_chkReadonly->GetValue() ||
- m_chkFilename->GetValue() );
+ m_chkProcessEnter->GetValue() );
}
void ComboboxWidgetsPage::OnUpdateUIInsert(wxUpdateUIEvent& event)