Persönlich finde ich, sowohl die WinAPI MessageBox und Application.MessageBox und MessageDlg Funktionen cludgy und immer fügen Sie die folgende Funktion zu jedem App.

Funktion MsgBox (const Msg: string;
MsgType: Integer = MB_OK oder MB_ICONSTOP): Integer;
beginnen
Result: = MessageBox (Application.Handle, PChar (MSG),
PChar (Application.Title), MsgType);
end;

setzt voraus, dass Forms.pas ist in der Klausel verwendet.

Average rating: