Xojo Developer Conference
Join us from 25th to 27th April 2018 in Denver.

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.Copy styled text?
Feedback.

Answer: How to quickly copy styled text from one textarea to another?
Example:
#if TargetWin32 then
TextArea1.WinRTFDataMBS = TextArea2.WinRTFDataMBS
#elseif TargetMacOS then
TextArea1.NSTextViewMBS.textStorage.setAttributedString TextArea2.NSTextViewMBS.textStorage
#else
TextArea1.StyledText = TextArea2.StyledText
#endif
Notes: The code above uses special plugin functions on Mac and Windows and falls back to framework for Linux.




Links
MBS Xojo PDF Plugins