InfoBox (Function)

image\trumpet2.gif Disclaimer

The InfoBox function is used to display a popup window that shows a message specified by the calling analysis technique or strategy. The form is closed by clicking the OK button. The location of the InfoBox popup will be relative to the upper left corner (X pixels over and Y pixels down) of the platform window containing the analysis technique that calls the function.

Syntax

InfoBox(Message, Caption, Pos_XPixels, Pox_YPixels)

Returns (Number)

Always returns a 1.

Parameters

Name

Type

Description

Message

String

Specifies the info message to display to the user.

Caption

String

Specifies the caption to display at the top of the info box popup window.

Pos_XPixels

Integer

Specifies the X location to plot the info box popup relative to the upper left cornerof the calling window (pixels to the right) .

Pos_YPixels

Integer

Specifies the Y location to plot the info box popup relative to the upper left corner of the calling window (pixels down).

Remarks

EasyLanguage code continues to run even when this form is visible. This function can be called, and will create an info box, on historical bars, but calling it on every bar in history will cause the code to run more slowly than it would otherwise. Because it takes longer to run, the Abort button may appear on the chart. See notes within the InfoBox function code for additional details.

No attempt should be made to make the InfoBox form modal, as this will interrupt EasyLanguage processing. Also, the caller should not attempt to delay continuation of the code pending user response to the dialog.

Example

Displays a warning message to the user based on a condition in the calling analysis technique.

Value1  = InfoBox("Invalid operation","My Warning",50, 50);

Reference

The InfoBox function was developed by TradeStation Technologies, Inc.