what I would like is to have the smile show in the message textbox (where u enter the message...) which I can do, but when sending the message I need to be able to convert it back to text to send... (or is there an easy way to just trans the text and picture at the same time??)
Thanks!
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Just a thought, would it be possible to save the real text (whitout the images) but with the text representation of the images, to a string variable, so when you have to send it you send this variable instead of the RTB contents? For doing something like this each change in the RTB must be updated in the variable (adding just the text shortcut for those images)
What I do in my VBForums Editor is create a Pictures class and a ColPictures Collection class. The picture class has a tag property (such as ":)") and an rtfText property. When a picture is inserted, a picture class is added to the collection class, its rtfText property is set to the RTF text that is actually inserted and the tag property contains... well you know.
When the document is converted to VBForums code I do a series of replaces where I replace each rtftext with the corresponding tag.
iPrank? how could I use a webbrowser control to type into it??
Either way my chat app is done... I just wanted to change the one feature..
I kinda like the idea of "storing" whats in the RTF as a string in the background.. then just send that thru...
Thanks!
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
ok.. the webbrowser could be a cool solution .. need some more info...
I am using it for the main "message window" works well... just need to insert HTML for images which will be fine..
but using edit mode as suggested... I have questions:
1) how do I insert an image while in edit mode....
2) how do remove the scrollbar....
thanks!
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Static, you could also use the DHTMLEdit control. I think it will be easier than using a webbrowser control.
Some links you may find usefull: Web Workshop - DHTML Editing Component - I can't find it online. In my MSDN January 2001 installation, it is at mk:@MSITStore:MSDNDRIVE:\MSDNFOLDER\2001JAN\1033\inet.chm::/workshop/author/dhtml/edit/ref/cncpt.htm . The only downloadable version I found is this. I'm not sure if it is the original file.
But, I think, the easiest way would be,
Use an RTB for user input. When user presses Enter, convert the rtf text to html and add it to the webbrowser contrl. It will be easier than building an HTMLEditor. You just need to convert bold/italic etc fomatting code and some special text for smilies.
As a side note, the DHTMLEdit contol isn't supported by MS anymore. But this doesn't mean anythig now, as VB6 itself is not supported.
ok.. RTF convert sounds good.. but how do i capture any smiles in the RTF?
I guess Im kinda back to square one with that.. I need to take the smile from the RTF (message enter textbox) and put it into the main window either an RTF or webbrowser??
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
I see. You are an MSN messanger user. Be a Yahoo Mesanger user, you'll understand what i'm saying.
JK. YM acts like vBulletin, you enter :)) in the 'input' box and YM converts it to adress of an image (located in ..\Media\Smileys folder). Then it adds the converted html to the main window.
Unlike MSN, it doesn't show images in input window. (atleast not in my version)