[Lazarus] Inconsistent result from MessageDlg

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sat Aug 20 18:48:07 CEST 2011


Felipe Monteiro de Carvalho schrieb:
> I think it should return mrCancel in case of ESC or X button click,
> regardless of the existing buttons.
> 
> If the buttons are No and Yes, you cannot simply map that to either No
> or Yes. Which one is cancel? That depends on the question.

That's quite an easy example: Yes=Default, No=Cancel. When the user 
shall have a chance for an explicit Cancel, mbYesNoCancel is the right 
choice instead.

DoDi





More information about the Lazarus mailing list