diff options
author | nyamatongwe <devnull@localhost> | 2000-07-01 13:59:22 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-07-01 13:59:22 +0000 |
commit | c5164f693e8468a022e2b67add63b653b889cac9 (patch) | |
tree | b30c54d71430f41b9f4026fb5c5f37617e4f60a7 | |
parent | 7c7c50a602db8e4192071fc2c1b80ddbdfac2140 (diff) | |
download | scintilla-mirror-c5164f693e8468a022e2b67add63b653b889cac9.tar.gz |
Added print magnification and print light invert.
-rw-r--r-- | doc/ScintillaDoc.html | 10 | ||||
-rw-r--r-- | include/Scintilla.iface | 13 |
2 files changed, 23 insertions, 0 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 9aaa71d14..6c652e614 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -748,11 +748,21 @@ SCI_STOPRECORD </h3> <pre> EM_FORMATRANGE +SCI_SETPRINTMAGNIFICATION(int magnification) +SCI_GETPRINTMAGNIFICATION +SCI_SETPRINTINVERTLIGHT(bool invert) +SCI_GETPRINTINVERTLIGHT </pre> <p> On Windows EM_FORMATRANGE can be used to draw the text onto a display context which can include a printer display context. </p> + <p> + To print at a different size than drawing on screen use SCI_SETPRINTMAGNIFICATION with + a value which is the number of points to add to each style. -3 or -4 gives reasonable small print. + If a black background is used on the screen then it is best to invert the light value of all colours + with SCI_SETPRINTINVERTLIGHT when printing to give a white bavkground. + </p> <h3> Multiple Views </h3> diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 5c589390c..28c60f13d 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -496,6 +496,19 @@ set void SetSelectionEnd=2144(position pos,) # Returns the position at the end of the selection. get position GetSelectionEnd=2145(,) +# Sets the print magnification added to the point size of each style for printing. +set void SetPrintMagnification=2146(int magnification,) + +# Returns the print magnification. +get int GetPrintMagnification=2147(,) + +# Set to invert the light value of each style for printing. +# Used to produce reasonable print output when black background used. +set void SetPrintInvertLight=2148(bool invert,) + +# Returns the invert light value property. +get bool GetPrintInvertLight=2149(,) + # Show a call tip containing a definition near position pos. fun void CallTipShow=2200(position pos, string definition) |