On Fri, 1 Jul 2022 03:42:08 -0700 (PDT) Сергей Коныгин wrote:
СК> I have a code that requires very long time. Every iteration I do "pump
СК> messages" (for Cancel button). But this code doesn't work on Linux. Can I
СК> do it by wxWidgets?
Yes, see wxEventLoop class or use wxYield(). But you really shouldn't,
it's a very bad idea to do it like this, so you should rather use porting
to Linux as an opportunity to rewrite your code in a better way.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/