Home > Back-end >  Not achieve the refresh to add data richEdit/Memo?
Not achieve the refresh to add data richEdit/Memo?

Time:09-21

To write a small program reads a serial port, serial port to a large amount of data continuously added to the richEdit or memo for display in the
In order to maintain the integrity of the original data, cannot use lines. The add function, because will add a carriage return, so have been use
Richedit. Text=richedit. Texts + $STR way, each additional STR, richedit will refresh time, flash screen, particularly uncomfortable
Consult everybody a great god, how can not refresh richedit/memo to increase data

CodePudding user response:

The screen refresh is necessary, otherwise the, incomplete, and this is automatically refresh,
If you want to force refresh, try closing news,

Suggest you use the background characters, and processing, only 10 seconds or a minute on the desktop, refresh (to join the background character) is used to display at a time,

CodePudding user response:

reference 1st floor lyhoo163 response:
refresh is necessary, otherwise the screen, according to not complete, and it is automatically refresh,
If you want to force refresh, try closing news,

Suggest you use the background characters, and processing, only 10 seconds or a minute on the desktop, refresh once (add background character) is used to display,


Now I have to get 10 package or reach 100 ms, which first come to refresh
once aIn addition, close the refresh messages, please comment

CodePudding user response:

With a memo components, double buffer against the flashing,
 
Memo1. DoubleBuffered:=True;
Memo1. Lines. BeginUpdate;
Try
Memo1. Text:=STR;
The finally
Memo1. Lines. EndUpdate;
end;
  • Related