diff options
| author | nyamatongwe <unknown> | 2000-04-28 12:56:21 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2000-04-28 12:56:21 +0000 | 
| commit | 5fb7b35e1ceb058b5af25eb324cd7c79a51b0d70 (patch) | |
| tree | 490ca2d638a06d56d1cb51e374224c7eb3950b32 | |
| parent | 1258038f9f1988a01c092579e27c992574b5c3b4 (diff) | |
| download | scintilla-mirror-5fb7b35e1ceb058b5af25eb324cd7c79a51b0d70.tar.gz | |
Added zoom set and zoom get.
| -rw-r--r-- | src/Editor.cxx | 8 | ||||
| -rw-r--r-- | src/KeyMap.cxx | 1 | 
2 files changed, 9 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index bccddf160..2dd329fa3 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3858,6 +3858,14 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {  		Redraw();  		break; +	case SCI_SETZOOM: +		vs.zoomLevel = wParam; +		InvalidateStyleRedraw(); +		break; + +	case SCI_GETZOOM: +		return vs.zoomLevel; +	  	case SCI_GETEDGECOLUMN:  		return theEdge; diff --git a/src/KeyMap.cxx b/src/KeyMap.cxx index 0dd4ec088..3a6a31f97 100644 --- a/src/KeyMap.cxx +++ b/src/KeyMap.cxx @@ -107,6 +107,7 @@ KeyToCommand KeyMap::MapDefault[] = {      {VK_RETURN, 	SCI_NORM,	SCI_NEWLINE},      {VK_ADD, 		SCI_CTRL,	SCI_ZOOMIN},      {VK_SUBTRACT,	SCI_CTRL,	SCI_ZOOMOUT}, +    {VK_DIVIDE,	SCI_CTRL,	SCI_SETZOOM},      //'L', 			SCI_CTRL,		SCI_FORMFEED,      {'L', 			SCI_CTRL,	SCI_LINECUT},      {'L', 			SCI_CSHIFT,	SCI_LINEDELETE},  | 
