TTMSMCPClientToolsDialog.OnInitListBox Event
Occurs while the window is built, to obtain the tool catalog it should list.
API unit family: TMS.MCP.Client.ToolsDialog
Declaring type: TTMSMCPClientToolsDialog
Inherited from: TTMSMCPCustomClientToolsDialog
Syntax
OnInitListBox: TTMSMCPClientToolsDialogInitListboxEvent;
Remarks
Raised once per build, after the controls exist and before the window is shown. Without a handler, or when the handler supplies nothing, the window opens empty. When the supplied catalog is not empty the first tool is selected and its description shown.
Parameters
| Name | Description |
|---|---|
Sender |
Window that is being built and is asking for the catalog. |
AArray |
Set by the handler to the array of tool descriptions to show; each element is expected to be an object carrying a name and, optionally, a description. It is nil on entry, and leaving it unassigned keeps the current contents of the list. The window does not take ownership of the array and keeps referring to its elements while it is open. |