Dinkin Posted July 4, 2020 Share Posted July 4, 2020 Добрый день. На TUniMainModule лежит таймер, который обновляет данные на главной форме //--------------------------------------------------------------------------- //MF это указатель на форму который лежит в public void __fastcall TUniMainModule::UniThreadTimer1Timer(TObject *Sender) { static_cast<TTargetWood*>(MF)->UniLabel1->Caption = "AAA" + IntToStr(Random(99999)); } //--------------------------------------------------------------------------- Но данный обновляются только если делаю ресайз формы, я как понимаю есть какая то функция принудительной прорисовки или обновления на форме? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 4, 2020 Share Posted July 4, 2020 4 hours ago, Dinkin said: UniThreadTimer1Timer // *Important *// // Thread Timer event should not call any GUI related code // It runs in a separate thread, so it will fail if you interact with GUI components here... \FMSoft\Framework\uniGUI\Demos\Desktop\ThreadTimer Quote Link to comment Share on other sites More sharing options...
Dinkin Posted July 4, 2020 Author Share Posted July 4, 2020 Понял, но если я делаю через обычный таймер, то он в обще не чего не меняет в GUI Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.