Chat Box control
Chat Box control
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:
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:
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.
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:
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:
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.
-
- Posts: 31
- Joined: Mon Sep 05, 2005 4:47 pm
- Contact:
Sorry, but could it be, that I allready did this !?!??!
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=9133
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=9133
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
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.
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.