Search the Community
Showing results for tags 'unitimer'.
-
Good afternoon! In general, such a task. On Pagecontrol , I dynamically create UniTabSheet1 . On the created UniTabSheet1, my UniFrame1 is dynamically loaded. The essence of the task: according to a certain condition, using UniTimer1, delete both UniFrame1 and UniTabSheet1, and not just delete, but with the destruction of components so that there are no AV errors later. Currently, so far, I'm going this way: In the OnClick event in UniButton, it is written like this: procedure TUniFrame1.Uni Button1Click(Sender: TObject); begin Free; end; I call the code above via UniTimer1: procedure TUniFrame1.UniTimer1Timer(Sender: TObject); begin if N = 0 then begin UniButton1.OnClick(Sender); end; end; As a result, my UniFrame1 disappears, I understand that it is deleted, but UniTabSheet1 remains. Actually, the question is, how to also completely destroy UniTabSheet1? Or how to register the destruction code in the button event at once UniFrame1?
- 5 replies
-
- uniframe
- unitabsheet
-
(and 1 more)
Tagged with:
-
Good evening! What is the fundamental difference between UniTimer and UniThreadTimer? The fact is that if you put a UniTimer on a form that simply displays the current time or performs some action, and, for example, switch to another tab in the browser, at that moment UniTimer stops working, until you return back to the tab with the project. Why is this happening? What is the difference between these components? Is it possible to make the timer work, regardless of which tab I am on in the browser?
-
Hi! Added a unitimer and verified that the session does not expire anymore. That's a bug or have a way to avoid this, because I need to continue the session expiring even using unitimer. Please can someone confirm if it's a bug or have a means of configuring? Grateful.
-
unitimer do not work in UniMainModule and UniServerModule? i put a unitimer in UniMainModule , but it doesn't work. why?