Jump to content

Disable Key and Mouse Operations


Bernie07

Recommended Posts

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

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 Synchronize
You can analyze this case with demos:

\FMSoft\Framework\uniGUI\Demos\Desktop\SyncClientUpdate...

Best regards.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...