Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2549
Scrollbar jumping up and down when adding text to a UltraTextEditor and scrolling to bottom
posted

Hi all,

I am currently experiencing the following problem.

I am adding text to an UltraTextEditor and afterwards scroll to its bottom.
Doing this in a loop causes the scroll-bar to jump up and then down all the time resulting in a blinking/flickering experience that is kind of "unwanted" ;)

I added a sample for a better explanation.

If you have any questions just let me know.

Thanks for your time and best regards
Andy 

EditorAutoscrollProblem1.zip
Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    I tried this out and I get the same results. But I don't think there's anything we can do about this. You have your UltraTextEditor set to AlwaysInEditMode. This means that the control has a child control in it which is an inbox TextBox control. And it is this TextBox control which is showing the scrollbar and the text and displaying this scrollbar flickering.

    I tried using a regular TextBox control and doing the same thing you are doing and I get the same results as with UltraTextEditor.

    I'm guessing that you are using this UltraTextEditor as some sort of status update, similar to the Output window in Visual Studio where you display the status of some ongoing process. I had a similar problem with an application I wrote in-house here - not only with the scrollbar flickering but also with performance. In my case, I found that appending text to the TextBox really started to slow down significantly once the text got large.

    To solve that problem, I replaced my TextBox with a WinGrid. That way, I could add each element of the status as a line in the grid instead of updating one large string. So you might want to consider taking an approach like that using a grid or maybe a ListView or ListBox.

Children