How does one make the text displayed by Dialog.message + Dialog.show() selectable (for copying)?
Ex:
function OnClick(clickData) {
...
dlg = clickData.func.Dlg;
dlg.message = "Some string";
dlg.show(); // not selectable "Some string" appears
...
}
Note: I have tried using an Edit Control and setting the value. However, this does not work (for some odd reason) for showing multiline text--the dlg.message method, however, does.
Unfortunately, that doesn't work (properly) for multi-line strings.
However, it turns out my Edit Control method works, I just need to use Windows line-endings (e.g. I needed a .replace(/\n/g,"\r\n")). I just wish I could get the auto-sizing to work like dlg.message = ...; dlg.show();
With Edit Control you end up with a scroll bar.
Scripts can have completely custom dialogs if you need that, although it's a bit more work than the simple method you're using now, so it may not be worth it, depending on what you need and how often you'll use it.
With a custom dialog, make sure the edit control's type is set to multi-line: