andyhill Posted October 10, 2017 Share Posted October 10, 2017 Please advise how I can Enable / Disable Form (fNewAccount) - Thanks in advance. fNewAccount.Enabled:= False; fMain.EmailRequestFlag:= SendMail(); fNewAccount.Enabled:= True; Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2017 Share Posted October 10, 2017 Hi, Sorry, can you clarify..? Best regards, Link to comment Share on other sites More sharing options...
andyhill Posted October 10, 2017 Author Share Posted October 10, 2017 I have two UniForms (fMain / fNewAccount): fMain via a ButtonClick shows fNewAccount.ShowModal which via a ButtonClick sends an email (this takes about 10 seconds) then fNewAccount closes and returns to fMain. I want to Disable the fNewAccount form preventing closing (in Delphi this disables all components on the form preventing the [X] and Cancel button from working) till my email has been sent. Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2017 Share Posted October 10, 2017 Hi, ... shows fNewAccount.ShowModal which via a ButtonClick sends an email (this takes about 10 seconds) then fNewAccount closes and returns to fMain. I want to Disable the fNewAccount form preventing closing (in Delphi this disables all components on the form preventing the [X] and Cancel button from working) till my email has been sent. Can you use fNewAccount -> Button -> ScreenMask property for this ?! Best regards, Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 10, 2017 Administrators Share Posted October 10, 2017 Please use ScreenMask property for this purpose. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now