K
K
kzmzhz2014-11-04 17:39:26
Pascal
kzmzhz, 2014-11-04 17:39:26

Pascal abc windows message loop how does it work?

I write in c#. I studied Pascal and noticed that there the animation is simply drawn (even in an infinite loop), and at this time the window adequately responds to resizing and movement. How it works?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2014-11-04
@GavriKos

Depending on where you start this cycle. If not in the interface processing thread, then it will work fine in c# as well.

V
Viktor Koltcov, 2014-11-05
@Vityarik

Apparently in Pascal inside the infinite loop there is a message processing call, so the move and resize work. In C#, to handle messages, you can call Application.DoEvents();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question