Page 1 of 1

TextEditor... and styles

Posted: Sat Jan 03, 2026 7:36 pm
by glames
Hi,

I try to display bold, italic and underlined text within a TextEditor gadget but it doesn't work : all is displayed with "normal" style.

This is what I use :
WINDOW_Layout, LayoutObject,
LAYOUT_AddChild, TxtEd = TextEditorObject,
GA_ReadOnly, TRUE,
GA_TEXTEDITOR_BevelStyle, BVS_NONE,
GA_TEXTEDITOR_ImportHook, GV_TEXTEDITOR_ImportHook_Plain,
GA_TEXTEDITOR_Contents, "\33bbold\33iitalic\33uunderlined\33nnormal",
TAG_END),

What am I doing wrong ? Any help would be welcomed.

Here is the full source, exe and screenshot : http://boing.attitude.online.fr/temp/TextEditor_OS4.lha

Thanks

PS: the same code works under OS 3.2.
PS 2 : I use AmigaOS 4.1 FE update 3 => texteditor.gadget 53.32

Re: TextEditor... and styles

Posted: Sun Jan 04, 2026 12:26 pm
by javierdlr
Hi, tried too have BOLD in mirrorGUI log text gadget, but no luck, only the "highlight" option/tag worked "\033h" and IIRC " <ESC> + [s:x] Create a separator." too. Created BZ 10558

Re: TextEditor... and styles

Posted: Sun Jan 04, 2026 4:28 pm
by glames
Hola Javier :)

Thanks for feedback and for having filled a bug report.

Happy New Year!