[scintilla:bugs] #2159 SCI_SETPRINTWRAPMODE and SC_WRAP_CHAR

0 views
Skip to first unread message

Antonio Scuri

unread,
Mar 14, 2020, 8:16:54 AM3/14/20
to scintill...@googlegroups.com

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

Neil Hodgson

unread,
Mar 14, 2020, 5:13:59 PM3/14/20
to scintill...@googlegroups.com
  • labels: --> scintilla, documentation
  • status: open --> open-fixed
  • Comment:

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

Zufu Liu

unread,
Mar 14, 2020, 7:36:27 PM3/14/20
to scintill...@googlegroups.com

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

Neil Hodgson

unread,
Mar 15, 2020, 6:11:27 PM3/15/20
to scintill...@googlegroups.com

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

Neil Hodgson

unread,
Mar 22, 2020, 6:17:08 PM3/22/20
to scintill...@googlegroups.com

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

Neil Hodgson

unread,
Jul 5, 2026, 9:56:35 PMJul 5
to scintill...@googlegroups.com
  • status: open-fixed --> open

[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

Reply all
Reply to author
Forward
0 new messages