onMainEvent is thrown whenever the main event of the specific object is thrown. The action that will throw this event is different for each control class.
Control class - trigger action
onClose | onDblClick | onEvent | onGetFocus | onHeaderSelect | onKeyDown | onKeyUp | onMainEvent | onMouseDown | onMouseMove | onMouseUp | onRedraw | onResize