DisableMouse

Description:

baDisableMouse allows you to disable mouse clicks.

Platforms:

Windows

Usage:

Result = baDisableMouse( Disable , WindowHandle )

Arguments:

Integer, integer.
WindowHandle is the handle of the window to disable. To disable clicks on all windows, use 0.
If Disable is true, mouse clicks will be disabled.
If Disable is false, all mouse clicks will be enabled again - the WindowHandle argument is ignored.

Returns:

Integer.
When disabling the mouse, returns 1 if the function was successful, otherwise 0.
When enabling the mouse, will always return 1.

Examples:

Director:
MouseOff = baDisableMouse( true , baWinHandle() )

Authorware:
MouseOff := baDisableMouse( true , baWinHandle() )
 

Notes:

If you disable the mouse using this function, make sure that you enable the function before your application quits.

Note that the cursor will still be visible and movable.