- AuthorPosts
- October 4, 2008 at 10:22 am #6310StefanParticipant
What i miss from
EmEditor Help – EmEditor Macro Reference – Tutorial > Dispaly a Message BoxSince 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)
October 4, 2008 at 12:04 pm #6311StefanParticipantEmEditor 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
——————– ——————–October 13, 2008 at 9:42 pm #6396Yutaka EmuraKeymasterStefan wrote:
EmEditor Help – EmEditor Macro Reference – DirectivesI 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!
- AuthorPosts
- You must be logged in to reply to this topic.