CTextBox: Add function getLinesPerPage()

- Add AUTO_LINEBREAK_NO_BREAKCHARS to textbox_modes for
  auto linebreak without '-' and '.' char
This commit is contained in:
Michael Liebmann
2013-10-18 10:47:16 +02:00
committed by Thilo Graf
parent 5323e92a6f
commit 3d404afc7f
2 changed files with 14 additions and 10 deletions

View File

@@ -373,9 +373,11 @@ void CTextBox::refreshTextLineArray(void)
{
//manage auto linebreak,
if(m_nMode & NO_AUTO_LINEBREAK)
pos = m_cText.find_first_of("\n",pos_prev);
pos = m_cText.find_first_of("\n", pos_prev);
else if(m_nMode & AUTO_LINEBREAK_NO_BREAKCHARS)
pos = m_cText.find_first_of("\n/ ", pos_prev);
else
pos = m_cText.find_first_of("\n/-. ",pos_prev);
pos = m_cText.find_first_of("\n/-. ", pos_prev);
//TRACE_1(" pos: %d pos_prev: %d\r\n",pos,pos_prev);