Click to See Complete Forum and Search --> : automatic scrolling in Edit Box


MindChild
April 25th, 1999, 07:56 AM
I have output box in my application, made with EDIT BOX.
When data reaches the end of the box, it appends at the end but stays at the first line. I want the box to scroll automaticly with the text.
The checkbox "automatic vertical scroll" works just for input data

Paul McKenzie
April 25th, 1999, 11:35 PM
Use a multi-line edit control (style ES_MULTILINE).

Regards,

Paul McKenzie

Art
April 26th, 1999, 07:15 AM
Hi. if you use MFC.
///////////////////////////////////////////////////////////////////////////////////
CEdit::ReplaceSel

void ReplaceSel( LPCTSTR lpszNewText, BOOL bCanUndo = FALSE );

Parameters
lpszNewText - Points to a null-terminated string containing the replacement text.
bCanUndo - To specify that this function can be undone, set the value of this parameter to TRUE . The default value is FALSE.

Remarks
Call this function to replace the current selection in an edit control with the text specified by lpszNewText.
Replaces only a portion of the text in an edit control. If you want to replace all of the text, use the CWnd::SetWindowText member function.
If there is no current selection, the replacement text is inserted at the current cursor location.



AAvetyan