I wonder, has anyone been successful enough to use colours and/or text styles in OS4 ReAction's texteditor.gadget? I remember there was a thread about it over at UtilityBase but the site has been down for months, unfortunately. A piece of example code would be great!
Mon, 2011-07-11 09:19
#1
Colours and styles in texteditor.gadget
Well, anyone? :-)
AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2
Well, I do not have example code, but can quote the texteditor autodoc to shed some light on your issue:
In console.device autodoc you find the ASCII-Code of ESC:
Hope this helps.
This used to work on OS3.x but sadly, not with the OS4 texteditor.gadget: the escape codes just seem to be ignored. Plus, being only able to set text style/colour at text import time is a bit limiting. I need to specify a portion of text and set it to a specific style/colour - ie. no import involved.
AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2
No, this is not posible with the texteditor as it stands today.
Simon
@Rigo
I see, good to know. Perhaps it's time to bury the whole thing and replace it with richeditor.gadget? It's really difficult to develop serious software for OS4 if the GUI components are so limited!
Could you also take a peek at my other texteditor-related question in this thread?
Thanks!
AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2
Replied, although you won't be any the wiser for it :)
Simon