Adding Emoticons to a RichEdit
Posted on 2005-04-22
I know this question has been asked (and answered) before but the methods I have seen will not work for me because I need to load the emoticons into a ReadOnly richedit control which means any method that the requires the user to interact with it will not work for me.
If you have ever seen/used the archive feature of Yahoo Messenger then thats pretty much what I want to do. Give the users the ability to archive thier chats with all the formatting intact which includes the emotions.
I believe the only method that will work for me will be something of a custom StringReplace procedure that will add the emotions to the richedit control when the text is changed but I not the expert so thats why I came here to ask the experts for help. (code examples)
I am currently storing the emotions in an imagelist and I have installed the JvRichEdit control from the JVCL group if this information helps in anyway.
Finally I hope I have explained my situation well enough but if not then I will do my best to clear up any questions you might have and thx in advance for your replies.