added and documented wxTE_NOHIDESEL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-10-18 00:53:35 +00:00
parent 4fcf087dda
commit 5a8f04e382
3 changed files with 20 additions and 7 deletions

View File

@@ -200,21 +200,27 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id,
msStyle |= WS_VSCROLL;
m_windowStyle |= wxTE_PROCESS_ENTER;
}
else
else // !multiline
{
// there is really no reason to not have this style for single line
// text controls
msStyle |= ES_AUTOHSCROLL;
}
if (m_windowStyle & wxHSCROLL)
msStyle |= (WS_HSCROLL | ES_AUTOHSCROLL);
if ( m_windowStyle & wxHSCROLL )
msStyle |= WS_HSCROLL | ES_AUTOHSCROLL;
if (m_windowStyle & wxTE_READONLY)
if ( m_windowStyle & wxTE_READONLY )
msStyle |= ES_READONLY;
if (m_windowStyle & wxTE_PASSWORD) // hidden input
if ( m_windowStyle & wxTE_PASSWORD )
msStyle |= ES_PASSWORD;
if (m_windowStyle & wxTE_AUTO_SCROLL)
msStyle |= ES_AUTOHSCROLL;
if ( m_windowStyle & wxTE_AUTO_SCROLL )
msStyle |= ES_AUTOHSCROLL;
if ( m_windowStyle & wxTE_NOHIDESEL )
msStyle |= ES_NOHIDESEL;
// we always want the characters and the arrows
m_lDlgCode = DLGC_WANTCHARS | DLGC_WANTARROWS;