Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30503
    Patrick C
    Participant

    prompt Method (Window Object)
    Displays a dialog box to enter a string.
    strAnswer = prompt(strMessage, strDefault, flags);

    The prompt box currently cannot display multiline messages.
    Example:

    let strMessage = ’● Line 1/3
    ● Line 2/3
    ● Line 3/3’;
    prompt(strMessage, "");

    Results in
    Prompt box clips all but the first line of any message

    I would massively appreciate an updated prompt box that could display multiline messages.

    #30505
    Yutaka Emura
    Keymaster

    Hello, did you try eePromptMultiline flag?

    https://www.emeditor.org/en/macro/window/window_prompt.html

    #30506
    Patrick C
    Participant

    Yes, the result is the same as eePromptMultiline only applies to the string input box.

    prompt(“● Line 1/3\n● Line 2/3\n● Line 3/3”, “”, eePromptMultiline);

    Prompt with eePromptMultiline: Message still only on one line

    As before, the message’s
    ● Line 2/3
    ● Line 3/3
    are not visible.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Enhancement Suggestions about Macros’ is closed to new topics and replies.