Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6310
    Stefan
    Participant

    What i miss from
    EmEditor Help – EmEditor Macro Reference – Tutorial > Dispaly a Message Box

    Since the MS page tend to disappear, and for quick access, I miss some configuration details directly in the help…

    … like…

    object.Popup(strText,[nSecondsToWait],[strTitle],[nType])

    nType
    Optional. Numeric value indicating the type of buttons and icons you want in the pop-up message box.
    These determine how the message box is used.

    Button Types
    Value Description
    0 Show OK button.
    1 Show OK and Cancel buttons.
    2 Show Abort, Retry, and Ignore buttons.
    3 Show Yes, No, and Cancel buttons.
    4 Show Yes and No buttons.
    5 Show Retry and Cancel buttons.

    Icon Types
    Value Description
    16 Show “Stop Mark” icon.
    32 Show “Question Mark” icon.
    48 Show “Exclamation Mark” icon.
    64 Show “Information Mark” icon.

    The return value intButton denotes the number of the button that the user clicked.
    If the user does not click a button before nSecondsToWait seconds, intButton is set to -1.

    Value Description
    1 OK button
    2 Cancel button
    3 Abort button
    4 Retry button
    5 Ignore button
    6 Yes button
    7 No button

    (from http://msdn2.microsoft.com/en-us/library/x83z1d9f.aspx)

    #6311
    Stefan
    Participant

    EmEditor Help – EmEditor Macro Reference – Directives

    I miss the info that this Directives must be
    on top of the script at the first lines, above the main code.
    (Maybe this is familiar for coders, but not for all people)

    And we need no enclosing the text in quotes ” ”
    because the are then part of the title or tool tip too.

    ——————- ——————–
    I have testet this issue with this little macro:

    #title = Enclose selection with \%…\%
    #tooltip = Tooltip: Select some text and execute this macro to put an \%-sign in front and at the end of the selected text
    ‘// enclose an selection with sign
    mySign = “\%”
    selText = document.selection.Text
    selText = mySign + selText + mySign
    ‘alert selText
    document.selection.Text = selText
    ——————– ——————–

    #6396
    Yutaka Emura
    Keymaster

    Stefan wrote:
    EmEditor Help – EmEditor Macro Reference – Directives

    I miss the info that this Directives must be
    on top of the script at the first lines, above the main code.
    (Maybe this is familiar for coders, but not for all people)

    And we need no enclosing the text in quotes ” ”
    because the are then part of the title or tool tip too.

    ——————- ——————–
    I have testet this issue with this little macro:

    #title = Enclose selection with \%…\%
    #tooltip = Tooltip: Select some text and execute this macro to put an \%-sign in front and at the end of the selected text
    ‘// enclose an selection with sign
    mySign = “\%”
    selText = document.selection.Text
    selText = mySign + selText + mySign
    ‘alert selText
    document.selection.Text = selText
    ——————– ——————–

    I have updated the Help in the next beta. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.