:: Home >>

control mouse events

Controls trigger a set of mouse-related events -

Syntax

obj.onControlMouseOver = function(event){...};
obj.onControlMouseOut = function(event){...};
obj.onControlMouseDown = function(event){...};
obj.onControlMouseUp = function(event){...};
obj.onControlClicked = function(event){...};
obj.onControlDoubleClicked = function(event){...};

Parameters

event (object) - DOM event

Example

obj.onControlClicked = function(event){
    alert(this.getControlText());
}

Remarks

If any of the Ctrl-, Alt- or Shift- button is pressed then onControlClicked and onControlDoubleClicked events will not fire. Instead the event name will include the combination of the control characters - for example, onControlShiftDoubleClicked or onControlCtrlClicked

Comments

24 May 06
onCtrlControlClicked event does not fire Frank Olson (1)

Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData