Home » U++ Library support » LineEdit, EditFields, DocEdit » How to do fast Append & scroll in LineEdit with MT?
How to do fast Append & scroll in LineEdit with MT? [message #45646] |
Fri, 18 December 2015 14:58 |
cbpporter
Messages: 1401 Registered: September 2007
|
Ultimate Contributor |
|
|
Hi!
I have this program that runs other tasks using LocalProcess. The execution can take sometime a lot of time, and can even hang, so I decided to try MT. I used the callback posting mechanism to post a callback to the application with a new output fragment. And I'm using a LineEdit to show the output as it is created.
I saw no obvious way of inserting something to the end of the text in the LineEdit, so I used edit.Set(edit.Get() + t). This was really slow and unresponsive. Now I'm trying to use Insert and some sort of a position returned by LineEdit. But the position system that this control uses isn't the most intuitive and I always had to use a lot of trial and error to get it right. Using Append now is much more responsive (still not enough, I probably need to update it only every 1K of output or something), but the output is mangled, which makes me believe that I am using a wrong position as a parameter to Insert.
So my question is: how to easily and efficiently append something to LineEdit in a MT environment. And should I use GUI lock instead of post-backs?
|
|
|
|
|
How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Fri, 18 December 2015 19:24
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Didier on Mon, 21 December 2015 19:15
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Didier on Wed, 23 December 2015 19:47
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Thu, 24 December 2015 00:03
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Novo on Thu, 24 December 2015 03:11
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Thu, 24 December 2015 05:49
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Novo on Thu, 24 December 2015 06:16
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Novo on Sat, 09 January 2016 04:50
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Tue, 12 January 2016 12:59
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: Novo on Thu, 14 January 2016 04:56
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Thu, 14 January 2016 07:52
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: mirek on Mon, 18 January 2016 10:00
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
|
|
|
Re: How to do fast Append & scroll in LineEdit with MT?
By: deep on Sat, 26 December 2015 12:55
|
Goto Forum:
Current Time: Sun Apr 28 04:23:36 CEST 2024
Total time taken to generate the page: 0.06575 seconds
|