JADE Environment Development Ideas

What's new in the upcoming JADE release?


The JADE 2022 release meets tomorrow’s business demands.

Start your update to JADE's latest release

Message boxes with custom button captions

The Application msgBox function has a restricted set of button captions in predetermined groups: 0 OK, 1 OK Cancel, 2 Abort Retry Ignore, 3 Yes No Cancel, 4 Yes No, 5 Retry Cancel. Being able to specify arbitrary captions for up to three buttons would let us keep the user interaction simple.
  • Chris Power
  • May 1 2019
  • Shipped (2020)
Brian Johnstone 29/11/2017 10:37:08 AM
Further to Ty's comment, you could do this by implementing app.msgBox at your own schema level, so all the existing referencing code doesn't need changing. You can then, within the limitations of the integer bit-mask, extend it to have some additional built-in button caption options using the remainder of the lower bits. You still won't be able to do 'arbitrary' captions, for that you'd need a new method rather than over-riding app.msgBox, but with values 6 through 15 to play with that gives you another 10 possible button caption combinations using the remaining lower bits of the bit-mask.

Ty Baen-Price 28/11/2017 11:46:03 AM
The app::messageBox method is essentially just a wrapper for the Windows MessageBox function, which does not allow such customisation. It has a fairly limited set of use-cases, by design. If you want a fully customisable form, you should make one yourself.
  • Attach files
  • Guest commented
    27 Jul, 2019 10:13am

    We have re-implemented app.msgBox to 
    - display our own Form (nicer icons etc)
    - catch any msgBox in Transaction State scenario that would cause locking issues

    We have also implemented app.msgBoxWithGotIt to
    - allow the User to tick a checkbox and not see the msgBox again

    and app.msgBoxWithLabels(msg: String; title: String; flags: Integer; pLabel1, pLabel2, pLabel3 : String): Integer; to
    - achieve what has been requested on this thread.

  • +4