CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    3

    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


  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: automatic scrolling in Edit Box

    Use a multi-line edit control (style ES_MULTILINE).

    Regards,

    Paul McKenzie


  3. #3
    Join Date
    May 1999
    Posts
    6

    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
  •  





Click Here to Expand Forum to Full Width

Featured