artem_niko Posted November 22, 2022 Share Posted November 22, 2022 Hello! How, when clicking on the button, to trigger the onClose event in UniTabSheet? It doesn't work that way: procedure TUniFrame1.UniFSButtonCloseClick( Sender: TObject); begin // (Parent as TUniTabSheet).OnClose(Sender,caNone); TUniTabSheet(Parent as TUniTabSheet).OnClose(Sender,True); end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 22, 2022 Share Posted November 22, 2022 Hello, Just use the Close method. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted November 22, 2022 Author Share Posted November 22, 2022 Just now, Sherzod said: Hello, Just use the Close method. Close=OnClose? This is equivalent? 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.