Mixed read-only/editable text Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
PeterO
Earned a small fee
Earned a small fee
Posts: 14
Joined: Mon Jun 23, 2014 11:12 am

Mixed read-only/editable text

Post 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
User avatar
doublemax
Moderator
Moderator
Posts: 19159
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Mixed read-only/editable text

Post 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.
Use the source, Luke!
PeterO
Earned a small fee
Earned a small fee
Posts: 14
Joined: Mon Jun 23, 2014 11:12 am

Re: Mixed read-only/editable text

Post by PeterO »

Thanks, that's what I was searching for.
Post Reply