sparafucile17
Programmer
Does anyone know why a Rich Edit box would scroll past the last line of text? What's happening in my program is that if the user clicks on the 'down arrow' of the vertical scroll bar, the Rich Edit box will scroll down past the last line of text until the last line of text is on the very top of the edit box.
Using the vertical 'scroll box' and not the arrows will not scroll past the last line of text. Which doesn't make much sense to me.
I'm trying to keep the edit box always scrolling when new text is added (i.e. a log) with SetWindowText(). But it seems like when I try to move the cursor with the LineScroll() function that it moves it past the end of the last line of text. (Similar to what's happening with the down arrow scroll button) I even tried offsetting the LineScroll like below:
main_log_ctrl->LineScroll((main_log_ctrl->GetLineCount() - 65), 0);
Assuming that there is 64 lines of text in my Edit Box. But of course, this did not work either.
Is there something that needs to be setup for Rich Edit Boxes? I must admit that I have never had much experience with Rich Edit's, so I am a little clueless.
Regards,
Jeff Tackett
Software Engineer
Using the vertical 'scroll box' and not the arrows will not scroll past the last line of text. Which doesn't make much sense to me.
I'm trying to keep the edit box always scrolling when new text is added (i.e. a log) with SetWindowText(). But it seems like when I try to move the cursor with the LineScroll() function that it moves it past the end of the last line of text. (Similar to what's happening with the down arrow scroll button) I even tried offsetting the LineScroll like below:
main_log_ctrl->LineScroll((main_log_ctrl->GetLineCount() - 65), 0);
Assuming that there is 64 lines of text in my Edit Box. But of course, this did not work either.
Is there something that needs to be setup for Rich Edit Boxes? I must admit that I have never had much experience with Rich Edit's, so I am a little clueless.
Regards,
Jeff Tackett
Software Engineer