Re: Rich Edit Questions
- Posted by DerekParnell (admin) Jun 26, 2009
- 1014 views
lockiedownunder said...
I haven't tried these ideas yet, as I'm about to go see Carlton beat Essendon ... anyhow ...
setText(RE, "") -- Clear the control. RE = create(RichEdit, "", aWin, x,y, w,h, ES_READONLY) -- read only control removeStyle(RE, {ES_READONLY, 0}) -- Take away readonly style addStyle(RE, {ES_READONLY, 0}) -- Add readonly style
I'm not sure if the remove/add style works with richedits as they have loads of quirks.
If not, then I'd suggest you have two controls - one readonly and one not - overlay each other, then when you want to use other or the other, just make visible the one you want.