EmEditor (text editor) Forum Index
   EmEditor Core Enhancement Suggestions
     Help file improvements
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
Yutaka
Posted on: 10/13/2008 1:42 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: Help file improvements
Quote:

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!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Stefan
Posted on: 10/4/2008 4:04 am
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 261
Re: Help file improvements
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
-------------------- --------------------
Stefan
Posted on: 10/4/2008 2:22 am
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 261
Help file improvements
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)
Threaded | Oldest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文