Search
Window.headerClick Event
See Also
 






Raised when the Window header is clicked.

Namespace: MindFusion.Common.UI
File: Window.js

 Syntax

JavaScript  Copy Code

EventDispatcher headerClick

 Event Data

The event handler method receives the following arguments:
sender
A Window instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A JavaScript MouseEvent instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code handles the headerClick event of a Window instance and maximizes the Window if the alt key was pressed when the header was clicked:

JavaScript  Copy Code

window.headerClick.addEventListener(windowEventHandler);


function windowEventHandler(sender, args)
{
 if(args.altKey)
 {
     sender.maximize();
 } 
}

 See Also