TextEditor... and styles
Posted: Sat Jan 03, 2026 7:36 pm
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
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