Message Dialog

How do you manipulate message dialogs?
Example,when you write :
ShowMessage('And what now?');
You get your message with OK option.
I would like something else to happen
when I click on the OK button (apart from closing the dialog as well...).
Example:show another form.
How?
EnejAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
kretzschmarConnect With a Mentor Commented:
hi Enej,

glad to helped you,
good luck again

meikl ;-)
0
 
kretzschmarCommented:
hi Enej,

do you mean something like this?

procedure TForm1.Button2Click(Sender: TObject);
begin
  If MessageDlg('Continue ?',mtConfirmation,[mbYes, mbNo],0) = mrYes then
  Begin
    //WhatEver if pressed yes
    ShowMessage('You pressed Yes');
  end;
end;

meikl
0
 
EnejAuthor Commented:
Meikl hi !
It goes....
Post A.
0
All Courses

From novice to tech pro — start learning today.