SBSTP
SBSTP

Reputation: 3639

wxWidgets wxRichTextCtrl horizontal text wrapping

I have a wxRichTextCtrl which keeps wrapping the lines instead of increase the scrollbar size. How can I disable the line wrapping and make it so the horizontal scrollbar grows.

wxWidgets 2.8.11

Upvotes: 0

Views: 850

Answers (2)

Mikolasan
Mikolasan

Reputation: 795

May be you should try this:

wxTE_DONTWRAP: Same as wxHSCROLL style: don't wrap at all, show horizontal scrollbar instead.

And other styles look at http://docs.wxwidgets.org/trunk/classwx_text_ctrl.html

Upvotes: 1

ymett
ymett

Reputation: 2454

According to http://docs.wxwidgets.org/trunk/classwx_rich_text_ctrl.html:

wxRE_MULTILINE:

  • The control will be multiline (mandatory).

In other words you can't make the wxRichTextCtrl not wrap lines.

Upvotes: 0

Related Questions