Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-01

Displaying serial data

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Koenraad Lelong

Hi,

I have an application where I capture data (ascii-text) coming from a serial port. I'm using the 5dpo component. That works fine. I'm trying do display that and there I have a problem. I'm using a memo to contain the serial port data. I add the data to the last line of the memo, until I get a CR and/or LF character, then I add a new line in the memo.
That works fine, except when the lines are longer, then the memo starts to flicker.

Any suggestions how to do this better ?

Thanks,

Koenraad Lelong.

Reply by email

Howard Page-Clark
to Koenraad Lelong
Koenraad Lelong wrote 5 lines
I'm using a memo to contain the serial port data. I add the data to the last line of the memo, until I get a CR and/or LF character, then I add a new line in the memo. That works fine, except when the lines are longer, then the memo starts to flicker.

Is the memo's DoubleBuffered property set to True? This might help (depending on your platform).

Reply by email

Koenraad Lelong
to Howard Page-Clark
Howard Page-Clark wrote 11 lines
On 26/1/12 10:28, Koenraad Lelong wrote: > I'm using a memo to contain the serial port data. I add the data to the > last line of the memo, until I get a CR and/or LF character, then I add > a new line in the memo. > That works fine, except when the lines are longer, then the memo starts > to flicker. Is the memo's DoubleBuffered property set to True? This might help (depending on your platform).

Hi,

Never heard of that property. If it's default set to false, then it was not set ;-) I enabled it now, I'll have to test it (on Windows).

Anyway, thanks

Reply by email