// Created: 27.03.01
// Id: $Id$
// Copyright: (c) 2001 Vadim Zeitlin
-// License: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
bool password;
bool readonly;
+ bool processEnter;
bool filename;
WrapStyle wrapStyle;
TextLines_Multi, // multiline
false, // not password
false, // not readonly
+ true, // do process enter
false, // not filename
WrapStyle_Word, // wrap on word boundaries
#ifdef __WXMSW__
// the checkboxes controlling text ctrl styles
wxCheckBox *m_chkPassword,
*m_chkReadonly,
+ *m_chkProcessEnter,
*m_chkFilename;
// under MSW we test rich edit controls as well here
m_chkPassword =
m_chkReadonly =
+ m_chkProcessEnter =
m_chkFilename = (wxCheckBox *)NULL;
m_text =
m_chkReadonly = CreateCheckBoxAndAddToSizer(
sizerLeft, wxT("&Read-only mode")
);
+ m_chkProcessEnter = CreateCheckBoxAndAddToSizer(
+ sizerLeft, wxT("Process &Enter")
+ );
m_chkFilename = CreateCheckBoxAndAddToSizer(
sizerLeft, wxT("&Filename control")
);
m_chkPassword->SetValue(DEFAULTS.password);
m_chkReadonly->SetValue(DEFAULTS.readonly);
+ m_chkProcessEnter->SetValue(DEFAULTS.processEnter);
m_chkFilename->SetValue(DEFAULTS.filename);
m_radioWrap->SetSelection(DEFAULTS.wrapStyle);
flags |= wxTE_PASSWORD;
if ( m_chkReadonly->GetValue() )
flags |= wxTE_READONLY;
+ if ( m_chkProcessEnter->GetValue() )
+ flags |= wxTE_PROCESS_ENTER;
switch ( m_radioWrap->GetSelection() )
{
#endif // __WXMSW__
(m_chkPassword->GetValue() != DEFAULTS.password) ||
(m_chkReadonly->GetValue() != DEFAULTS.readonly) ||
+ (m_chkProcessEnter->GetValue() != DEFAULTS.processEnter) ||
(m_chkFilename->GetValue() != DEFAULTS.filename) ||
(m_radioWrap->GetSelection() != DEFAULTS.wrapStyle) );
}