Jump to content

Recommended Posts

Posted

Добрый день.

На TUniMainModule лежит таймер, который обновляет данные на главной форме

//---------------------------------------------------------------------------

//MF это указатель на форму который лежит в public

void __fastcall TUniMainModule::UniThreadTimer1Timer(TObject *Sender)
{
    static_cast<TTargetWood*>(MF)->UniLabel1->Caption = "AAA" + IntToStr(Random(99999));
}
//---------------------------------------------------------------------------


Но данный обновляются только если делаю ресайз формы, я как понимаю есть какая то функция принудительной прорисовки или обновления на форме?

Posted
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

 

Posted

Понял, но если я делаю через обычный таймер, то он в обще не чего не меняет в GUI 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...