Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  LostFocus(any,string)
element class : LostFocus(any,string) method


Sets the event handler for the LostFocus event of the element.


elementInstance.LostFocus(anyClass handleInstance, string signature)


Any user defined class.handleInstanceAn instance with a handler to invoke as a member.
stringsignatureSignature of the handler to call.

Return value

ehswitchA switch that controls the execution of the handler.

Sample code

//The anyElement is any instance of element class.

//The anyInstance is an instance of any user defined class. It have a handler as a member.

string signature = "lostFocusHandler(elementeventargs)"; // signature of handler.

ehswitch handlerSwitch = anyElement.LostFocus(anyInstance, signature);


The handler for this event must be an open method with one argument of the elementeventargs class.

In other words, if the method name of the handler is "handlerName", the definition of the handler is as follows.

open method void handlerName(elementeventargs eea)



In this case, the signature of the handler specify by the second argument is "handlerName(elementeventargs)".

Links for reference

Copyright © Rice All rights reserved.