Take a look at the textBoxDialog function in mprompt.e
Here's a sample.
_str initalValue = 'Change this';
int checkValue = 1;
int res = textBoxDialog("Sample Title", 0, 0, '', '', '', 'Sample Prompt:'initalValue, '-CHECKBOX Sample Check:'checkValue);
if(res == 1)
{
message('The user chose ['_param1'] and checkbox state is '_param2);
}