Widget.onLeave

This event will be performed when the mouse moves out to this widget (“leaves” the widget’s territory).

Prototype


Example

This example prints the name of the widget when the mouse is out of it.

1
2
3
4
5
 local function onLeaveHandler ( this )
    print ( 'the cursor is out of the widget "'.. this:getSender():getName() ..'"' )
 end4

 myForm.onLeaveHandler:setHandler(onLeaveHandler)