diff options
| author | nyamatongwe <devnull@localhost> | 2000-05-10 11:53:11 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-05-10 11:53:11 +0000 | 
| commit | 256989e8407879dbacdfb618c2cad67de160ac00 (patch) | |
| tree | 722bc4ebdab9d5e760b31d87854695c25fecc294 /src/Editor.cxx | |
| parent | 8d20ab7b6e45c33d073b53638c60d4348712be09 (diff) | |
| download | scintilla-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.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(); | 
