Coding > FPC Valkyrie

Colouring TTextModeMessages?..


Igor Savin:
Kornel, I'm completely lost. I need to colour entire Message in colour other than LightGray, but there doesn't seem to be any procedure or variable related to that!.. The closest thing is LoadColors, which is supposed to read colourcoding from file, but it's so enigmatic, I couldn't make heads or tails of it.

Is there a simple way to accomplish the colouring?..

Kornel Kisielewicz:
LoadColors is for user highlighting (see doomrl.ini). As for changing color of entire messages, the closest you can get is passing the vcode at the beginning -- "@rThis is a red message". Unfortunately until someone fixes bug ID#1 coloring will break at the end of line...

You asks You to post an example of Bug#1. You can not properly understand where is the end of line, where colouring breaks.

Why don't you anticipate where the line break will be and then add another @r or whatever color you need?


[0] Message Index

Go to full version