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: Integer iWindowNumber Integer iPosition

ParameterDescription
iWindowNumberthe window item (1-based)
iPositionthe 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


Note:This event does not apply to the Codejock Grid controls. See OnComMouseDown and OnComMouseUp for cCJGrid and its subclasses.