Frederick Posted February 26, 2020 Share Posted February 26, 2020 I have a login form whose BorderStyle is bsSingle. I do not want users to be able to click the Close button at the top right of the form to close the application and display the page where the "Restart Application" link is shown. How do I hide the Close button? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1523) 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 26, 2020 Share Posted February 26, 2020 1 hour ago, Frederick said: How do I hide the Close button? Hello, One possible solution: procedure TUniLoginForm1.UniLoginFormCreate(Sender: TObject); begin Self.WebForm.JSInterface.JSConfig('closable', [False]); end; Quote Link to comment Share on other sites More sharing options...
Frederick Posted February 26, 2020 Author Share Posted February 26, 2020 Thank you. This works. 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.