Topic: best way to do a "ok / cancel" pop up message

hi, i want to do a "ok / cancel" popup message box, that allows me to either "cancel a command, or continue with what i am doing.
For example: when i press delete, it asks me if i am sure, i want this on other features of my program.
What's the easiest way to do this ? with a new form? or is there any other way?

Re: best way to do a "ok / cancel" pop up message

Hello VascoMorais

Can this be a clue for you ?

procedure Grille_Button1_OnClick (Sender: string; var Cancel: boolean);         // mbYes is 6 - mbNo is 7 - mbCancel is 2
Begin               
    if 6 = MessageDlg('Really?', mtConfirmation, mbYes + mbNo + mbCancel, 0) then
           ShowMessage('Yes')
           else ShowMessage('No');
end;

JB

Re: best way to do a "ok / cancel" pop up message

only saw this one now.
Thanks