From 166850362916e67a5fe9809690c52490d02b1660 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 1 Jul 2000 13:59:22 +0000 Subject: Added print magnification and print light invert. --- doc/ScintillaDoc.html | 10 ++++++++++ include/Scintilla.iface | 13 +++++++++++++ 2 files changed, 23 insertions(+) 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
 EM_FORMATRANGE
+SCI_SETPRINTMAGNIFICATION(int magnification)
+SCI_GETPRINTMAGNIFICATION
+SCI_SETPRINTINVERTLIGHT(bool invert)
+SCI_GETPRINTINVERTLIGHT
 

On Windows EM_FORMATRANGE can be used to draw the text onto a display context which can include a printer display context.

+

+ 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. +

Multiple Views

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) -- cgit v1.2.3