Well i'm making chat program where you can text can be colored so i use edit box but i dont want to do 2 edit boxes or something. Because i need to colour like half of my text or some words only.
Like: Hello! my name is ...
Hello!<--(blue) My name is ... <--- (Black)
In this point i want to get the hello! into different colour as the last part of the text. So what i need is to code so i does this automatically or user can do this by him(her)self by coloring the word(s) and pushing some button. I can code the button (-_-), but what i need is a way to do it without other words would not be colorized too. Also the automatically thing would be nice.
Althought is it even possible to make it with one edit box?
I have proven new mathematic formula to be true...
Yeah, I get what you mean. You'll need MMF, and the Rich Edit object. Rich Edit can change font color at any time. So just do like this:
* Event
- Rich Edit: set font color to (blue)
- Rich Edit: set text to "Hello! "
- Rich Edit: set font color to (black)
- Rich Edit: set text to "My name is..."
There's also an action that lets you set font color from a string (like "0,0,255" for blue. You know, RGB), if you want to let the user change the color theme. Note that the Rich Edit object's set text action doesn't actually SET the text to the input string, but adds it to the existing text (don't ask me why, it's stupid).
Still I have one problem, when others talk like bla bla bla and then they want to save their talkings (which are in rich edit object). And the question is how to save the talkings into .txt for example. I looked mmf objects and finded object named file. So is it the right object to use and how I use it (or use other), also if someone needs to be loading stuff from .txt files for example to the screen that is also a problem, but I thing I can handle it when I learn to save those texts. So can someone tell how to do that too?
I have proven new mathematic formula to be true...