Jason Haslam:

When I step through it in the debugger I notice that that value is
being reset later on by the call to ViewStyle::Refresh() here:

  OK, you are correct. I think it doesn't show up in SciTE because
under Windows the resolution of the printer is much higher than the
screen so a screen margin width of around 40 pixels makes little
difference when the line number may be 300 pixels wide on the printer.
I have changed the code to call vsPrint.Refresh(*surfaceMeasure) after
setting the line number margin width so fixedColumnWidth is set
correctly and lineNumberWidth is then only used for the drawing of the
line number. This made a slightly narrower gap between line numbers
and text on my printer.

  Committed to CVS.

I should also mention that I'm using my own Qt port of scintilla so
that might have something to do with the difference.  By the way, I'm
a little surprised that the documentation for the printing functions
indicates that they are windows specific.  In my experience they have
proven quite portable.

  It doesn't work on GTK+ since at the time the code was written,
GTK+ didn't have any printing ability. gnome-print was part of GNOME
and making Scintilla depend on GNOME made it less portable.

  Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to