artem_niko Posted January 15, 2023 Share Posted January 15, 2023 Good afternoon! Does UniPageControl have some kind of property, event, with which it would be possible to track the moment of closing of some tab? For example, if there are 3 tabs on UniPageControl now, then if some tab is closed, then execute the code. I don't mean the onClose event in UniTabSheet. I need to track, at the UniPageControl level, the moment that some tab closed. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 15, 2023 Share Posted January 15, 2023 Hello, Please see the related demos. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 15, 2023 Author Share Posted January 15, 2023 27 minutes ago, Sherzod said: Hello, Please see the related demos. What name of demo? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 15, 2023 Author Share Posted January 15, 2023 procedure TMainForm.UniPageControl1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin ShowToast('+++'); end; How to execute the code in UniPageControl for the event: "closing some tab"? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 15, 2023 Share Posted January 15, 2023 This post may help you: Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 15, 2023 Author Share Posted January 15, 2023 6 minutes ago, Sherzod said: This post may help you: The code on this link is good, by the way, yes, it will be useful to me later now. But! My question is not about the tab closing event, namely when the tab was already closed, after it was closed. I need to unload the DLL package simply. If I put the upload code in the tab closing event, the application freezes, because the tab is created dynamically and destroyed by clicking on the button. How to execute the code exactly after closing the tab? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 15, 2023 Share Posted January 15, 2023 26 minutes ago, artem_niko said: If I put the upload code in the tab closing event, the application freezes, because the tab is created dynamically and destroyed by clicking on the button. Sorry, your case is not clear to me. 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.