#2417 RichText text modify

Jeremy Criquet Wed 13 May 2015

I don't know why but it seems you can't add new lines to a RichTextModel programaticly. If the RichText is editable, you can by typing but doing like model.text += "\nStuff" makes the whole thing break. Can't do it with modify either. Why not? I've tried this with the demo provided, as well as many other methods but nothing seems to allow me to make a simple log window that I can append to.

brian Wed 13 May 2015

RichTextModel is abstract. To modify you should call the fwt::RichTextModel.modify method. What it does is based on your implementation. The only real full implementation in Fantom is the one in Flux. What one are you using?

Jeremy Criquet Sat 16 May 2015

I'm just using the demo one to test this. It seems like when a new line is added, whatever SWT handler isn't being notified of this because I get array out of bounds errors.

Login or Signup to reply.