Skip to content

Mouse_Down - cUIObject

Sent whenever the first button of the mouse is pressed down while on an item or in the edit window of the object

Type: Event

Parameters

Parameter Type Description
iWindowNumber Integer the window item (1-based)
iPosition Integer the position within the window

Syntax

Procedure Mouse_Down Integer iWindowNumber Integer iPosition

Description

Mouse_Down is sent whenever the first mouse button is pressed down while on an item or in the edit window of the object. The parameters indicate the position of the mouse cursor within the object. The mouse messages perform no action in the definition of cUIObject; their actions are always defined in higher-level classes.

Mouse_Down can be augmented to do something when the mouse button is clicked when the user is in a specific object.

Sample

This sample will first complete the Mouse_Down event as defined in the superclass (via forward send) and then fire the DoSomething method of object oMyObject.

Procedure Mouse_Down integer iWindowNumber integer iPosition
    forward send Mouse_Down iWindowNumber iPosition
    send DoSomething of oMyObject
End_Procedure
Col 1 Col 2
Note: This event does not apply to the Codejock Grid controls. See OnComMouseDown and OnComMouseUp for cCJGrid and its subclasses.