Page 1 of 1

Chat Box control

Posted: Wed Oct 19, 2005 2:22 am
by Dark Rain
I needed a chat window for our client and I wasn't very satisfied with any of the current control as a solution. The colored listbox control was nice but it was missing some critical features like text wrap around for large message. Also, it still allowed you to select list items etc. So I created my own chat control :

Features:
-Message based: You add the chat text message by message, like irc.
-Wrap around : If the text is too large to fit on one line, it will wrap around on the other line.
-Message color: You can assign one color per message.
-Auto scroll : The text will scroll as new messages are added.

Here, you can see the text wrap around and the color coding per line:
Image

Just some random user chat. Notice that the window will scroll to follow the chat as new messages are added like any good irc client:
Image

I've talked to my boss and they're fine with me releasing the source for all the irrlitch stuff I add as long as it's not client specific code. So I'll create a website for it on our server and I'll release the code for this control along with the tab control.

Posted: Wed Oct 19, 2005 2:36 am
by Midnight
damn you're fast 8)

Posted: Wed Oct 19, 2005 3:56 am
by BlackNinjaGames
My thoughts exactly.

Very nice!

Posted: Wed Oct 19, 2005 12:41 pm
by Acki
Sorry, but could it be, that I allready did this !?!??! 8)

http://irrlicht.sourceforge.net/phpBB2/ ... php?t=9133

Posted: Wed Oct 19, 2005 12:53 pm
by hybrid
I think it was the thing that was referenced with "colored listbox control". I did not check the code, but it might be worth merging both and give some options to it in order to have all the functionality?!

Posted: Wed Oct 19, 2005 1:59 pm
by Dark Rain
Acki: In my explanation, I refer to your control but as I've mentionned it's lacking several features that IMHO are needed for a full fledged chat window.

Posted: Tue Nov 01, 2005 6:08 am
by Fhqwhgads
I would like this for my project if I may have it :)

Posted: Thu Nov 03, 2005 1:30 am
by Guest
looks really cool :) any chance niko will see this?

Posted: Sat Nov 05, 2005 6:25 pm
by Fhqwhgads
Hey I went to your website and downloaded it. Put it into my irrlicht's soruce directory and tried to compile but I got errors...like it couldn't find files and stuff. Any possibility someone already has a prebuild version with this in it? and the tab controle?

Posted: Thu Mar 15, 2007 12:56 pm
by freezzo
I tried all night trying to add this to my irrlicht engine, and can't figure out how to do it.

does anyone have some helpful tips?

Posted: Thu Mar 15, 2007 6:51 pm
by Midnight
what files did you add?

all of them?

irrlicht has been changed a bit since then..

this is how you change or add gui.

step 1: add your working gui files to the irrlicht project IF its not intended to be added directly to a project that uses irrlicht..easy way to tell is if they have #include "irrlicht.h" that means its including irrlicht not part of it in most cases. also it usually will be a class simular to irrlicht gui classes.

step 2: you'll have to edit the environment and maybe the element code files these are the factories which create gui in irrlicht to be rendered. gui factories are actually something else new to irrlicht that also uses environment however.

step 3: add all the proper includes and defines to the preprocessor meaning IDE/compiler settings. ie msvc properties ect...

step 4: compile and debug.. if you don't know how to debug you are already 4 steps ahead of yourself.