Skip to main content
Solved

Default selection in "Question Messages"

  • October 20, 2021
  • 2 replies
  • 82 views

Dasuni Samarakoon
Hero (Employee)
Forum|alt.badge.img+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?

Best answer by Janitha Jinarajadasa

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.

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+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.


Dasuni Samarakoon
Hero (Employee)
Forum|alt.badge.img+10

Thank you very much @Janitha Jinarajadasa