I have a Delphi (studio 10.1 Berlin) application where a TListBox component is on a TForm
When I click a button on the form, the process is to analyse data coming from some source, line by line. The result of the processing of each line is reflected with a line (a kind of "log" in fact) "written" in the TListBox (TListBox.Items.Add(...).
During the process, the form is visible on the screen but the TListBox remains empty until the process is completed.
I tried a TForm.Refresh each time a line is written in the TListBox, but the behavior remains the same.
How can I have the TlistBox showing all lines after each Items.Add call ?
Our community of experts have been thoroughly vetted for their expertise and industry experience.