Controls trigger a set of mouse-related events -
obj.onControlMouseOver = function(event){...};
obj.onControlMouseOut = function(event){...};
obj.onControlMouseDown = function(event){...};
obj.onControlMouseUp = function(event){...};
obj.onControlClicked = function(event){...};
obj.onControlDoubleClicked = function(event){...};
event (object) - DOM event
obj.onControlClicked = function(event){
alert(this.getControlText());
}
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