Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions mainform1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ TMainForm = class(TForm)

implementation

uses msgbox;

{ TMainForm }

const
Expand Down Expand Up @@ -865,10 +867,16 @@ procedure TMainForm.ShowTrayMessage(Msg: string);
end;

procedure TMainForm.ShowDoneMessage(Msg: string);
var MsgboxForm : TMsgBoxForm;
begin
// http://msdn.microsoft.com/en-us/library/ms645505(VS.85).aspx
Windows.MessageBox(GetHandle(), pChar(msg), 'Done',
MB_SYSTEMMODAL or MB_SETFOREGROUND or MB_TOPMOST or MB_ICONINFORMATION);
//Windows.MessageBox(GetHandle(), pChar(msg), 'Done',
// MB_SYSTEMMODAL or MB_SETFOREGROUND or MB_TOPMOST or MB_ICONINFORMATION);
// Custom MessageBox
MsgboxForm := TMsgBoxForm.Create(Self);
MsgBoxForm.SetText(Msg);
MsgboxForm.ShowModal;
MsgboxForm.Release;
StopAudio();
end;

Expand Down
Loading