1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-22 09:12:19 -05:00
Simba/Tests/PS/messagebox.simba

23 lines
778 B
Plaintext
Raw Normal View History

2010-09-11 08:01:33 -04:00
program new;
2010-09-11 08:05:28 -04:00
var
Value : string;
2010-09-11 08:01:33 -04:00
begin
ShowMessage('ShowMessage!');
Writeln('MessageBox -> ');
case MessageBox('This is the text','My Caption', mbYesNoCancel) of
mrYes : Writeln('Pressed yes!');
mrNo : Writeln('Pressed no!');
mrCancel : Writeln('Pressed Cancel!');
end;
Writeln('MessageDlg -> ');
case MessageDlg('Caption','Press a button!',mtError, [mbAbort,mbYes,mbIgnore]) of
mrAbort : Writeln('Pressed abort!');
mrYes : Writeln('Pressed Yes');
mrIgnore: Writeln('Pressed Ignore');
mrCancel: Writeln('pressed Cancel');
end;
2010-09-11 08:05:28 -04:00
Writeln('InputQuery -> ');
Value := 'Edit.. or not?';
Writeln(format('Result of inputquery = [%s] the value = [%s]',[booltostr(InputQuery('Enter something funny','ENTER HERE',value)),value]));
2010-09-11 08:01:33 -04:00
end.