The Application.ProcessMessages does the job. Thanks for all
Ricardo At 10:55 3/5/2006, you wrote:
Try a Application.ProcessMessages; between the using of the components (setting the label caption, or filling the combobox) and the TProcess.Execute. Good luck! Horacio Jamilis [EMAIL PROTECTED] ----- Original Message ----- From: "Arí Ricardo Ody" <[EMAIL PROTECTED]> Subject: [lazarus] Screen updating during TProcess execution > I mounted a listbox with a list of files. In a > For loop that treat each file in the listbox I > execute a TProcess that runs an external program > that do some processing over this file. After the > TProcess.Execute I call TProcess.WaitOnExit method. > > Before TProcess.Execute I switch the selected > property of the listbox item to true. In this > way, the items that are still processed will > appear selected in the listbox. The listbox > appears with all items selected only after the > For loop ends. I create a 2nd listbox and try to > add the item I will process just before call the > Execute method. The same thing occurs: The second > listbox appears filled only after the For loop > ends(or the method where the For loop is, ends > itself). Finally I try to alter the caption > property of a TLabel just after call Execute Method. Again it didn't run ok... > > May someone explain me how to solve this trouble? > > Greetings from São Paulo - Brazil > > Ricardo > _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives