Bernie07 Posted November 28, 2016 Share Posted November 28, 2016 Hello, is it possible to lock all Key and Mouse Operations? I want to do this during my application does any internal operations. For the moment the user can click on the form during the application does any important operations which should first done before the user can work. It would help If I can disable a form for the Duration of some internal work. Best wishes Bernhard Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2016 Share Posted November 28, 2016 Hi, Can you try to use for this?!: MainForm.ShowMask('Please ....'); Best regards. Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2016 Share Posted November 28, 2016 And after ... to use: MainForm.HideMask; Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2016 Share Posted November 28, 2016 Hi, Primarily, I recommend using a more simple way, for example: to use ScreenMask property of Button: UniButton1 -> ScreenMask -> Enabled = True procedure TMainForm.UniButton1Click(Sender: TObject); begin // "long operations" end; What I recommended above works only when used with SynchronizeYou can analyze this case with demos: \FMSoft\Framework\uniGUI\Demos\Desktop\SyncClientUpdate... Best regards. 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