diff options
| author | nyamatongwe <unknown> | 2000-05-10 11:53:11 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2000-05-10 11:53:11 +0000 |
| commit | 9548dec5e36fb3b4c2e844da6d0c7b119940ad70 (patch) | |
| tree | 722bc4ebdab9d5e760b31d87854695c25fecc294 /src/Editor.cxx | |
| parent | 756bcf30b6ce43e604a91d946bf9baafd6c4e564 (diff) | |
| download | scintilla-mirror-9548dec5e36fb3b4c2e844da6d0c7b119940ad70.tar.gz | |
Added underline attribute to styles.
Added diagonal and strike-through indicators.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 11 |
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(); |
