ec55f11ff7
Apparently various text wrapping modes are not supported natively by NSTextView (apart from word wrapping which is used by default) and non-default wrapping has to be implemented in the custom code. To wrap lines at any character, NSLineBreakByCharWrapping style should be applied at any text change to the entire text stored in NSTextStorage associated with NSTextView. This is done in DoUpdateTextStyle() method which is called from controlTextDidChange() when text is modified by the user, or SetStringValue() and WriteText() when text is set programmatically. |
||
---|---|---|
.. | ||
msvc/wx | ||
wx |