How do I get the form to update correctly?

Asked

Viewed 149 times

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.

inserir a descrição da imagem aqui

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.

Follow picture: inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.