|
-
April 25th, 1999, 07:56 AM
#1
automatic scrolling in Edit Box
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
-
April 25th, 1999, 11:35 PM
#2
Re: automatic scrolling in Edit Box
Use a multi-line edit control (style ES_MULTILINE).
Regards,
Paul McKenzie
-
April 26th, 1999, 07:15 AM
#3
Re: automatic scrolling in Edit Box
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|