From d2c7abab397926735f5a41ca17fd280a409e2940 Mon Sep 17 00:00:00 2001 From: Tse Kit Yam Date: Wed, 23 Nov 2016 10:46:28 +1100 Subject: Implementation of MarginRightClick event. --- doc/ScintillaDoc.html | 67 ++++++++++++++++++++++++++++++++++++++++------- doc/ScintillaHistory.html | 5 ++++ 2 files changed, 62 insertions(+), 10 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 53bf4e794..19d351ccb 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3173,7 +3173,8 @@ struct Sci_TextToFind { a visible margin will be displayed as changes in background colour in the text. A width in pixels can be set for each margin. Margins with a zero width are ignored completely. You can choose if a mouse click in a margin sends a SCN_MARGINCLICK notification to the container or + href="#SCN_MARGINCLICK">SCN_MARGINCLICK or SCN_MARGINRIGHTCLICK notification to the container or selects a line of text.

Using a margin number outside the valid range has no @@ -3283,7 +3284,8 @@ struct Sci_TextToFind { SCI_GETMARGINSENSITIVEN(int margin) → bool
Each of the five margins can be set sensitive or insensitive to mouse clicks. A click in a sensitive margin sends a SCN_MARGINCLICK SCN_MARGINCLICK or SCN_MARGINRIGHTCLICK notification to the container. Margins that are not sensitive act as selection margins which make it easy to select ranges of lines. By default, all margins are insensitive.

@@ -5255,15 +5257,58 @@ struct Sci_TextToFind {

Popup edit menu

- SCI_USEPOPUP(bool allowPopUp)
+ SCI_USEPOPUP(int displayPopUpMode)
-

SCI_USEPOPUP(bool allowPopUp)
+

SCI_USEPOPUP(int popUpMode)
Clicking the wrong button on the mouse pops up a short default editing menu. This may be - turned off with SCI_USEPOPUP(0). If you turn it off, context menu commands (in + turned off with SCI_USEPOPUP(SC_POPUP_NEVER). If you turn it off, context menu commands (in Windows, WM_CONTEXTMENU) will not be handled by Scintilla, so the parent of the Scintilla window will have the opportunity to handle the message.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueMeaning
SC_POPUP_NEVER0x01Never show default editing menu.
SC_POPUP_ALL0x02Show default editing menu if clicking on scintilla.
SC_POPUP_TEXT0x04Show default editing menu only if clicking on text area.
+

Macro recording

Start and stop macro recording mode. In macro recording mode, actions are reported to the @@ -6804,9 +6849,9 @@ struct SCNotification { struct Sci_NotifyHeader nmhdr; Sci_Position position; /* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, */ - /* SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, */ - /* SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, */ - /* SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */ + /* SCN_MARGINRIGHTCLICK, SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, */ + /* SCN_CALLTIPCLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, */ + /* SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */ /* SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */ int ch; @@ -6828,7 +6873,7 @@ struct SCNotification { Sci_Position line; /* SCN_MODIFIED */ int foldLevelNow; /* SCN_MODIFIED */ int foldLevelPrev; /* SCN_MODIFIED */ - int margin; /* SCN_MARGINCLICK */ + int margin; /* SCN_MARGINCLICK, SCN_MARGINRIGHTCLICK */ int listType; /* SCN_USERLISTSELECTION */ int x; /* SCN_DWELLSTART, SCN_DWELLEND */ int y; /* SCN_DWELLSTART, SCN_DWELLEND */ @@ -6873,6 +6918,7 @@ struct SCNotification { SCN_FOCUSIN
SCN_FOCUSOUT
SCN_AUTOCCOMPLETED
+ SCN_MARGINRIGHTCLICK

The following SCI_* messages are associated with these notifications:

@@ -7432,7 +7478,8 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber);

SCN_MARGINCLICK
- This notification tells the container that the mouse was clicked inside a SCN_MARGINRIGHTCLICK
+ These notifications tell the container that the mouse was clicked or right clicked inside a
margin that was marked as sensitive (see SCI_SETMARGINSENSITIVEN). This can be used to perform folding or to place breakpoints. The following SCNotification fields are diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index adfa4f278..fee05b5c4 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -553,6 +553,11 @@ with SCI_FOLDDISPLAYTEXTSETSTYLE.

  • + A mouse right-click over the margin may send an SCN_MARGINRIGHTCLICK event. + This only occurs when popup menus are turned off. + SCI_USEPOPUP now has three states: SC_POPUP_NEVER, SC_POPUP_ALL, or SC_POPUP_TEXT. +
  • +
  • INDIC_POINT and INDIC_POINTCHARACTER indicators added to display small arrows underneath positions or characters.
  • -- cgit v1.2.3