DisableExtendedMouseEvents

int DisableExtendedMouseEvents (int panel, int ctrl);

Purpose

This function stops a control from receiving the extended mouse events.

Parameters

Input
Name Type Description
panel integer The specifier for a particular panel that is currently in memory.

This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function.
ctrl integer Pass the ID of the control for which to disable extended mouse events.

The ID is the defined constant (located in the UIR header file) which was assigned to the control in the User Interface Editor, or the ID returned by the NewCtrl or DuplicateCtrl function.

Return Value

Name Type Description
status integer Returns zero if the extended mouse events were disabled for the control, or a negative error code if the function failed.

If extended mouse events have not been enabled for the control by a previous call to EnableExtendedMouseEvents, then the error code UIEInvalidControlType (–45) is returned.

The possible negative error codes are:

–1 to –999 A User Interface Library error code. (constants are available in userint.h)

A description of any of these error codes can be obtained using the GetGeneralErrorString function in the toolbox.fp instrument driver.