Assigns a handler to the "Deactivated" event.
instance.Deactivated(class handleClass, string signature)
|class||handleClass||An instance with the handler as the member.|
|string||signature||Signature of the handler.|
|switch||An instance to control handler execution.|
Suppose you have the following class definition.
open method void DHandler(dictionary dic)
switch sw = dic.Switch;
Handler assignment is as follows.
window w = new window();
handle h = new handle();
switch sw = w.Deactivated(h,"DHandler(dictionary)");
The "Deactivated" event is fired when the window is deactivated.
The handler for the "Deactivated" event must be an open method with one argument of the dictionary 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(dictionary dic)
In this case, the signature of the handler specify by the second argument is "handlerName(dictionary)".
The dictionary passed to the handler has the following key/value pairs.
|key||value - class||value - description|
|Sender||window||The origin of the event.|
|Switch||switch||The switch returned by the handler assignment.|
The handler runs in its own thread.
Links for reference