RichTextView with NSTextView problem

RogisterAlainRogisterAlain BEBeta ✭✭✭

Hi,

I need to use a Rich NSTextView to view an RTF file.

I can correctly display the RTF file and I have the bar to change font, size, fat, etc ...

Only, I do not know why, when I want to change the size of the font or the color of the text, it does not work. The rest is working properly.

Can someone help me and tell me why?

Thank you

Posts

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai

    I was unable to reproduce this issue. I made a simple test app that just had an NSTextView in the main view that loads an rtf file from Resources folder in the ViewDidLoad method. Without any other changes, I am able to select some text and change the text color and font size.

    Are you adding the NSTextView to your layout in code or are you using the interface builder? I used the interface builder, so many some default settings are put in place that are not when you create the NSTextView in code?

  • RogisterAlainRogisterAlain BEBeta ✭✭✭

    Bizarre.

    I used Interface Builder. I did like you.

    I have in a window a webview and a RichTextView. In function, if it's an HTML or an RTF file, I hide one or the other. But during my tests, when I hid the webview and I posted the RTF file. Everything works, but it's impossible to change the color, the font size and the underline. For the rest everything worked.

    I will redo a simple application like you and I'll let you know.

    thanks for the help

  • RogisterAlainRogisterAlain BEBeta ✭✭✭

    I tried what you did. A simple application and control works well.

    Only me, in my application, I open another window that contains this control and here I have this problem.

    Do you have a solution ?

Sign In or Register to comment.