From d2c7abab397926735f5a41ca17fd280a409e2940 Mon Sep 17 00:00:00 2001
From: Tse Kit Yam SCN_MARGINCLICK or 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 or 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.
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.
+
+
+
+ Symbol
+
+ Value
+
+ Meaning
+
+
+
+
+
+
+ SC_POPUP_NEVER
+
+ 0x01
+
+ Never show default editing menu.
+
+
+
+
+ SC_POPUP_ALL
+
+ 0x02
+
+ Show default editing menu if clicking on scintilla.
+
+
+
+
+ SC_POPUP_TEXT
+
+ 0x04
+
+ Show 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 {
+
The following SCI_* messages are associated with these notifications:
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 ). 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.