2
I have a screen in Delphi that is constantly updated, is used along with a ratchet, every time a person puts the digital or enters the password, this screen is updated with the information of this person.
The update call comes from a Tthread.Synchronize. Before I was using the Tform.Repaint after the upgrade so he could redesign the updated components. The problem is that using the repaint straight from the form, it redesigned the entire form, including the components that were not updated, and presented an error of GDI I couldn’t find a solution.
So I took that function and I’m using the repaint components that are updated.
After clearing the screen, or updating the information, I’m using:
pnlVencimento.Repaint
pnlAluno.Repaint
pnlStatus.Repaint
All of these are panels contain Abels within them. All are updated normally at the beginning, but after a few hours, the panels stay black and are no longer updated.