Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » How to do fast Append & scroll in LineEdit with MT?
Re: How to do fast Append & scroll in LineEdit with MT? [message #45705 is a reply to message #45646] Sat, 26 December 2015 12:55 Go to previous message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Generally in this scenario I use Append to string then Paste it to LineEdit. ( Paste append the text to LineEdit );

	LineEdit le1;
	
	String s;
	
	loop { s << "Your values and text\n" ;}
	le1.Paste(s.ToWString()),


Even if we append the LineEdit with 100000 line in 100 sec.
This scroll speed also is fast to read and comprehend the values as it scrolls.

When value generation is very fast then I use 2 strings. And pasting to Line edit from another thread.

String s0,s1;

Start with putting values to s0
When s0 is full start filling s1. Paste s0 to LineEdit.
When s1 is full swith filling the s0. Paste s1 to LineEdit.


It is possible to switch strings on time basis or on Number of lines in a string basis. Probably both together.

depends on requirement.

This works for me. I work with real fast data capture.


Warm Regards

Deepak

[Updated on: Sat, 26 December 2015 13:35]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What do you think about this approach to making CodeEditor more user extendable?
Next Topic: NotNull can be fooled
Goto Forum:
  


Current Time: Sat Apr 27 15:59:36 CEST 2024

Total time taken to generate the page: 0.02955 seconds