cocoa: forcing CocoaWSMemo to use plain text, disabling rich-editor features. #33699

git-svn-id: trunk@57909 -
This commit is contained in:
dmitry 2018-05-13 06:21:54 +00:00
parent 19695582ac
commit f01052ee8f

View File

@ -1065,6 +1065,9 @@ begin
txt := TCocoaTextView.alloc.initwithframe(nr);
// setting up a default system font (to be consistent with other widgetsets)
txt.setFont( NSFont.systemFontOfSize( NSFont.systemFontSizeForControlSize(NSRegularControlSize) ));
txt.setRichText(false);
txt.setImportsGraphics(false);
txt.setUsesRuler(false);
// this is necessary for Ward Wrap disabled, so NSViewText
// doesn't have a constraint to resize