Solved

Default selection in "Question Messages"

  • 20 October 2021
  • 2 replies
  • 71 views

Userlevel 5
Badge +10

Is it possible to select the default selection in a “Question Message” as “No” so that if they press Enter key “No” is validated rather than the current default value “Yes”?

Can the customer configure the default selected button by themselves?

icon

Best answer by Janitha Jinarajadasa 21 October 2021, 17:21

View original

This topic has been closed for comments

2 replies

Userlevel 6
Badge +14

Hi @Dasuni Samarakoon ,

 

Requested functionality can not be archive by the configurations.

But It’s possible to do programmatically using the following method:

public static SalNumber MessageBox(SalString text, SalString title, SalNumber flags)

using the flags Sys.MB_DefButton1, 2, 3

Normal parameters are Sys.MB_IconInformation | Sys.MB_Ok

 

Hope this helps.

Userlevel 5
Badge +10

Thank you very much @Janitha Jinarajadasa