Please tell me how to make a window with a header pop up when checking the password on the SpeedButton button, for example, “System error”, and in the window itself, for example, “Wrong password”. I have so
procedure TForm1.SpeedButton1Click(Sender: TObject); begin if edit1.Text='123' then PostMessage(FindWindow(Nil, 'test.exe'), WM_QUIT, 0, 0) else ShowMessage('Неверный пароль'); end; end.
How to make the header of the "Error" window instead of the file name?