TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int MessageBox ( string  text = null,
string  caption = null,
int  flags = EMPTY 
)

Creates and shows a message box and manages it. A message box contains a message and header, any combination of predefined signs and command buttons.

Parameters
textText, containing message to output.
captionOptional text to be displayed in the box header. If the parameter is empty, Expert Advisor name is shown in the box header.
flagsOptional flags defining appearance and behavior of a message box. Flags can be a combination of a special group of flags:
MB_OKMessage window contains only one button: OK. Default
MB_OKCANCELMessage window contains two buttons: OK and Cancel
MB_ABORTRETRYIGNOREMessage window contains three buttons: Abort, Retry and Ignore
MB_YESNOCANCELMessage window contains three buttons: Yes, No and Cancel
MB_YESNOMessage window contains two buttons: Yes and No
MB_RETRYCANCELMessage window contains two buttons: Retry and Cancel
MB_CANCELTRYCONTINUEMessage window contains three buttons: Cancel, Try Again, Continue
Returns
If the function is successfully performed, the returned value is one of values of MessageBox() return codes:
IDOK"OK" button has been pressed
IDCANCEL"Cancel" button has been pressed
IDABORT"Abort" button has been pressed
IDRETRY"Retry" button has been pressed
IDIGNORE"Ignore" button has been pressed
IDYES"Yes" button has been pressed
IDNO"No" button has been pressed
IDTRYAGAIN"Try Again" button has been pressed
IDCONTINUE"Continue" button has been pressed

Note: The function can't be called from custom indicators, because indicators are executed in the interface thread and shouldn't slow it down.