Click to See Complete Forum and Search --> : How to change the color of the text?


Kansana
May 2nd, 2007, 09:07 AM
Hi All,

I use TaskDialogIndirect to display a error dialog. In that I display the error message and file name that caused the error. I want the file name to be in red color. How could I achieve this?

Please let me know how to change the color of a text which forms a part of the whole string.

Thanks,
Kansana

olivthill
May 3rd, 2007, 07:31 AM
Edit: Sorry, I did not see you were using TaskIndire... which is something I've never used.

-- Original Message --
How do you display your text?
I presume it is with a MessageBox. Then the color cannot be changed, as far as I know. You should use instead a DialogBox that you would tailor to your requirements.

kirants
May 3rd, 2007, 12:16 PM
How are you creating a taskdialog ? The details on what parameters you are using , as well as if you are using the callback at all , would be useful.