:: 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

2 Jan 12
Option to prevent DOM events from bubbling up? Thierry Nivelet (FoxInCloud) (0)
5 May 10
sort is not working, when we set the radio button in the column. guest (0)
21 Apr 09
Event "onControlMouseDown" does not fire on AW.UI.Input object (Version 2.0.2) sysadm (6)
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.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5
2.5.0 - 2.5.4
2.5.4
2.5.0 - 2.5.3
2.5.3
2.5.0 - 2.5.2