I agree wih Bruce the addition of some options to DISPLAY MESSAGE, DISPLAY QUESTION and REPORT ERROR would be nice.
Until that happens we embed the script below in the actual action text. This works for all 3 actions.
<script>
/* Title Icon, Text and Width */
$('#aw-msgbox_wnd_title').html('<i class=\'fas fa-info-circle\'></i> MY WINDOW TITLE');
$('#aw-msgbox_wnd_title').parent().css('width','900px');
/* Window Width - should be same as previous Title Width */
$('#aw-msgbox').parent().css('width','900px');
/* Window Height */
$('#aw-msgbox').parent().css('height','250px');
</script>
So for example in the DISPLAY QUESTION action.
DISPLAY QUESTION `
This is my very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long Question
<script>
/* Title Icon, Text and Width */
$('#aw-msgbox_wnd_title').html('<i class=\'fas fa-info-circle\'></i> MY WINDOW TITLE');
$('#aw-msgbox_wnd_title').parent().css('width','900px');
/* Window Width - should be same as previous Title Width */
$('#aw-msgbox').parent().css('width','900px');
/* Window Height */
$('#aw-msgbox').parent().css('height','250px');
</script>
`
results in
Sometimes we store and it and/or its variable bits in business objects to manage repeated use.