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

Description

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

Syntax

elementInstance.MouseMove(anyClass handleInstance, string signature)

Arguments

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

Return value

ClassDescription
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 = "mouseMoveHandler(elementeventargs)"; // signature of handler.

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

Notes

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)

...

endmethod


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

Links for reference

Copyright © Rice All rights reserved.