Attach control event handlers.
Namespace: MindFusion.Common
File: Control.js
JavaScript Copy Code |
---|
function attach () |
The attach method attaches the event handlers of a UI element. It is used when creating UI controls dynamically in code.
The following code uses the attach method in a method that creates a ToolStrip programmatically:
JavaScript Copy Code |
---|
function loadChatWindow(sender) button = new ui.ToolStripItem(ui.ToolStripItemType.Icon); |