wxWidgets
wxWidgets copied to clipboard
Add native RTF support to wxTextCtrl (macOS)
This adds:
-
GetRTFValue()
andSetRTFValue()
functions to get and set raw RTF - Changes
wxTEXT_TYPE_ANY
into awxTextCtrlFileType
enum that includes a newwxTEXT_TYPE_RTF
option -
LoadFile()
andSaveFile()
now use theirfileType
parameter to save as either text or RTF (if supported) - Demonstrates these new feature in the "text" sample
- Simple unit test
P.S. An MSW implementation for the RICHEDIT2 control will be forthcoming in another PR if this is accepted.