TextEditor and bold/italice/underlined styles
Hi,
I try to display bold, italic and underlined words in a TextEditor gadget. It works when creating the gadget by using:
LAYOUT_AddChild, TxtEd = TextEditorObject,
GA_ReadOnly, TRUE,
GA_TEXTEDITOR_BevelStyle, BVS_NONE,
GA_TEXTEDITOR_Contents, "\33bbold\33iitalic\33uunderlined\33nnormal",
GA_TEXTEDITOR_ImportHook, GV_TEXTEDITOR_ImportHook_Plain,
TAG_END),
But if I try to add the same string (except a leadin \n) after the creation of the window:
DoGadgetMethod((struct Gadget *)TxtEd, window, NULL,
GM_TEXTEDITOR_InsertText, NULL, (ULONG) "\n\33bbold\33iitalic\33uunderlined\33nnormal",
GV_TEXTEDITOR_InsertText_Bottom);
\n is well interpreted but it seems that \33b, \33i... are no longer.
So the new line is displayed without any bold, italic, underlined styles.
What am I doing wrong?
You can download source, exe and screenshot of the problem here:
http://boing.attitude.online.fr/temp/Test_TextEditor.zip
Thanks in advance.