Forum Discussion

denioflavio's avatar
denioflavio
Occasional Contributor
12 years ago

Buttons on MessageDlg


Hi,


 


I have a script coded like this:


 



  1.    texto := 'Confirma?';


  2.    btn := MkSet(mrOk, mrCancel);


  3.    btn := MessageDlg(texto, mtConfirmation, btn, 0);



 


When the messagedlg appears, I expected that Ok button come first (at the left) on the window, but the opposite happens. See image attached.


 


 


Does anyone knows a way to configure the buttons sequence appears?



Best regards,
  • Try to specify buttons using mbOk and mbCancel constants:

      btn := MkSet(mbOk, mbCancel);

    Constants starting with "mr" are result values.

    You can see details here: MessageDlg Method
  • Try to specify buttons using mbOk and mbCancel constants:

      btn := MkSet(mbOk, mbCancel);

    Constants starting with "mr" are result values.

    You can see details here: MessageDlg Method