MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.Copy styled text?

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

MBS Xojo PDF Plugins