Nadya Posted August 19, 2020 Share Posted August 19, 2020 Hi! In my application I have some nonmodal forms and a UniPageControl on MainForm. For every nonmodal form I dynamically create a page, a UniPanel on the page, and then create required form on the panel. In one of nonmodal forms I need to call a movable modal form (border style is Sizable, biSystemMenu border icon enabled). When I drag this modal form - I can accidentally move it beyond application work area in browser. After that I can't move the form back and can't close it any more Is there any way to restrict moving? By main form area maybe? I've made a testcase. Testcase Press button "Show nonmodal form 1" on MainForm, then in page "NonModalForm1" press button "Show modal test form" and move this modal form so it's title hides. Please, help! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 19, 2020 Share Posted August 19, 2020 11 minutes ago, Nadya said: Is there any way to restrict moving? By main form area maybe? Hi Nadya, UniMainModule.ConstrainForms = True 1 Quote Link to comment Share on other sites More sharing options...
Nadya Posted August 19, 2020 Author Share Posted August 19, 2020 6 minutes ago, Sherzod said: Hi Nadya, UniMainModule.ConstrainForms = True Thank you very-very much, it works! You're an angel, Sherzod! 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 19, 2020 Share Posted August 19, 2020 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.