aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-05-10 11:53:11 +0000
committernyamatongwe <devnull@localhost>2000-05-10 11:53:11 +0000
commit256989e8407879dbacdfb618c2cad67de160ac00 (patch)
tree722bc4ebdab9d5e760b31d87854695c25fecc294 /src/Editor.cxx
parent8d20ab7b6e45c33d073b53638c60d4348712be09 (diff)
downloadscintilla-mirror-256989e8407879dbacdfb618c2cad67de160ac00.tar.gz
Added underline attribute to styles.
Added diagonal and strike-through indicators.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 7827c84a4..37400f9ba 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -889,6 +889,12 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int xStart,
}
}
}
+ if (vsDraw.styles[styleMain].underline) {
+ PRectangle rcUL = rcSegment;
+ rcUL.top = rcUL.top + vsDraw.maxAscent + 1;
+ rcUL.bottom = rcUL.top + 1;
+ surface->FillRectangle(rcUL, textFore);
+ }
}
startseg = i + 1;
}
@@ -3580,6 +3586,11 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {
InvalidateStyleRedraw();
}
break;
+ case SCI_STYLESETUNDERLINE:
+ if (wParam <= STYLE_MAX) {
+ vs.styles[wParam].underline = lParam;
+ InvalidateStyleRedraw();
+ }
case SCI_STYLERESETDEFAULT:
vs.ResetDefaultStyle();