Re: CEdit Question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



>I have created a CEdit object (Mutli-Line & Read only) that is updated
>with information from a worker thread. When it is updated, I would like
>it to automatically scroll to the bottom, that way the user get
>up-to-date information about the current processing. I have tried to do
>a GetScrollRange, SetScrollPos combo buts its not working quite right.

Chris,

Use SetSel to set the insertion position to the end of the string in
the edit control.

If your data is line oriented, it might be neater to use a listbox
instead.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.



Relevant Pages

  • Re: looking JScrollPane method to default to bottom of list
    ... I would like the JScrollPane to automatically scroll to the bottom so ... public JViewport getViewport; ...
    (comp.lang.java.programmer)
  • Re: End of smit screen shortcut?
    ... "The notion that we can dismiss the views of all previous thinkers surely leaves no basis for the hope that our own work will prove of any value to others." ... Does anyone know how to scroll to the bottom of a long smit screen, like after many installp messages when the screen status changes to OK when it's done. ... How to I automatically scroll to the bottom of the page, is there a key sequence for this? ...
    (AIX-L)
  • looking JScrollPane method to default to bottom of list
    ... I have a JScrollPane that holds a JPanel which I am appending items to. ... I would like the JScrollPane to automatically scroll to the bottom so ...
    (comp.lang.java.programmer)
  • Re: Scrolling while typing
    ... Word will automatically scroll up when you get to the bottom of the window, ... Mac Word FAQ: ... > Is there a way to make the page scroll up automatically while typing? ...
    (microsoft.public.mac.office.word)