Page 1 of 1

Mixed read-only/editable text

Posted: Tue Aug 20, 2019 7:44 am
by PeterO
Hello everyone

I would like to have a textcontrol with mixed read-only/editable text parts. In HTML you can achieve this by using the contenteditable attribute in a span. Is this possible with one of the native controls as well?

Thx in advance,
Peter

Re: Mixed read-only/editable text

Posted: Tue Aug 20, 2019 8:23 am
by doublemax
I think wxRichTextCtrl might be the only control that supports this. (I don't know about wxSTC). Check the "richtext" sample, look for occurences of "locked content" in the source code.

Re: Mixed read-only/editable text

Posted: Tue Aug 20, 2019 10:52 am
by PeterO
Thanks, that's what I was searching for.