[bugs:#2159] SCI_SETPRINTWRAPMODE and SC_WRAP_CHAR
Status: open
Group: Bug
Created: Sat Mar 14, 2020 12:16 PM UTC by Antonio Scuri
Last Updated: Sat Mar 14, 2020 12:16 PM UTC
Owner: nobody
The SCI_SETPRINTWRAPMODE set code is:
case SCI_SETPRINTWRAPMODE: view.printParameters.wrapState = (wParam == SC_WRAP_WORD) ? eWrapWord : eWrapNone; break;
So SC_WRAP_CHAR is ignored.
I checked in Scintilla version 3.11.2 and in 4.3.2.
If printing does not support SC_WRAP_CHAR it should be mentioned in the documentation.
Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Committed documentation fix with [97b76d].
[bugs:#2159] SCI_SETPRINTWRAPMODE and SC_WRAP_CHAR
Status: open-fixed
Group: Bug
Labels: scintilla documentation
Created: Sat Mar 14, 2020 12:16 PM UTC by Antonio Scuri
Last Updated: Sat Mar 14, 2020 12:16 PM UTC
Owner: nobody
The document seems not accurate: there is only on reference for printParameters.wrapState (in EditView::FormatRange) which is used to indicate whether word wrapping for printing is enabled or not.
the line breaking is made by EditView::LayoutLine() which uses document's word wrapping settings (SCI_SETWRAPMODE, SCI_SETWRAPINDENTMODE, etc.) to break lines, so SC_WRAP_CHAR is supported.
[bugs:#2159] SCI_SETPRINTWRAPMODE and SC_WRAP_CHAR
Status: open-fixed
Group: Bug
Labels: scintilla documentation
Created: Sat Mar 14, 2020 12:16 PM UTC by Antonio Scuri
Last Updated: Sat Mar 14, 2020 09:13 PM UTC
Owner: nobody
That would be a bug as it means you can't set wrap on printing without wrap on screen. printParameters.wrapState should be copied into vsPrint.wrapState.
[bugs:#2159] SCI_SETPRINTWRAPMODE and SC_WRAP_CHAR
Status: open-fixed
Group: Bug
Labels: scintilla documentation
Created: Sat Mar 14, 2020 12:16 PM UTC by Antonio Scuri
Last Updated: Sat Mar 14, 2020 11:36 PM UTC
Owner: nobody
Printing actually implements its own wrapping mode which isn't word or char wrapping but instead wrapping just on space and tab. This is an accident of the implementation.
SC_WRAP_CHAR and SC_WRAP_WORD should be implemented instead. This is low priority.
[bugs:#2159] SCI_SETPRINTWRAPMODE and SC_WRAP_CHAR
Status: open-fixed
Group: Bug
Labels: scintilla documentation
Created: Sat Mar 14, 2020 12:16 PM UTC by Antonio Scuri
Last Updated: Sun Mar 15, 2020 10:11 PM UTC
Owner: nobody
[bugs:#2159] SCI_SETPRINTWRAPMODE and SC_WRAP_CHAR
Status: open
Group: Bug
Labels: scintilla documentation
Created: Sat Mar 14, 2020 12:16 PM UTC by Antonio Scuri
Last Updated: Sun Mar 22, 2020 10:17 PM UTC
Owner: nobody