开发者

wxWidgets wxRichTextCtrl horizontal text wrapping

开发者 https://www.devze.com 2023-02-10 08:27 出处:网络
I have a wxRichTex开发者_如何转开发tCtrl 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.

I have a wxRichTex开发者_如何转开发tCtrl 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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消