i dont understand exactly what u want but in mdx there is a function called richedit(not in the help file) but it adds thing to an edit/list box exactly how it wud appear as a message to the channel

dll pathtomdxhere SetMdxControl id richedit > ctl_gen.mdx
but when u add something u have to use did -ra and look at my example:
did -ra name id text +m yourtexthere
the rest isnt optional grin