I don't know what is wrong, but my memory seems to be troubling me. I need to display a message dialog with a mbYes, mbNo, and mbYesToAll button. So I use the MessageDlg function for that, which is perfect. But somehow this function always uses the mbYes as the default button, and of course I need the mbNo button to be the default one. I thought this was possible, that there was an overloaded function in which you could pass the DefaultButton, but apparently I am wrong.
Does anyone have a simple solution for this ?