Forum Discussion

ekiza23's avatar
ekiza23
Contributor
12 years ago

How to move the scrollbar position on a TcxMemo object programatically?

Hi all,



I have created a UserForm with a TcxMemo object within it

http://support.smartbear.com/viewarticle/26835/



UserForms.myUserForm.myTcxMemo



I
 have set the Properties.ScrollBars to “ssVertical” and it displays the vertical scrollbar.



What I want to do is to move the scrollbar to the bottom position programatically.



Can anybody help me?



Thanks

4 Replies

  • I think I may not have explained myself.



    I do not want the horizontal bar, I want the vertical bar.



    But as I am appending text to it, the content grows longer than the memo control real estate. 



    What I want is that whenever I append text to the content, the vertical bar scrolls to the bottom of the memo control so that I can see the latest additions.



    Generally, scroll bars would have some kind of variable to determine the current position of the scroll (eg. from 0 (beginning) to 100 (end)). In this example, what I would like is that whenever I append some text, I could call something like vbScrollbar.setPosition(100) or similar.
  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 2 rankChampion Level 2
    Hi Christian,



    As a possible workaround: what if you add new lines not to the end, but to the beginning?