Coloring text messages

Discussions about CSEntry
Post Reply
AriSilva
Posts: 470
Joined: July 22nd, 2016, 3:55 pm

Coloring text messages

Post by AriSilva » April 7th, 2021, 5:09 pm

Is there a way to put some color attributes in the errmsgs texts?
Sometimes it is needed to emphasize certain messages in the CAPI applications.
As far as I know, the only formatting options we have now is to use \n to skip to the next line.
Best
Ari

Gregory Martin
Posts: 1418
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Coloring text messages

Post by Gregory Martin » April 8th, 2021, 11:39 am

If you're running on Windows, you could modify the error message font for operator-controlled messages:

https://www.csprousers.org/help/CSPro/s ... ction.html

You could force the use of operator-controlled messages in a system-controlled application:

https://www.csprousers.org/help/CSPro/s ... ction.html

However, this will color the whole message, not just a part. Other than that, and on Android, there is no way to change the formatting.

AriSilva
Posts: 470
Joined: July 22nd, 2016, 3:55 pm

Re: Coloring text messages

Post by AriSilva » April 8th, 2021, 5:04 pm

I´m talking about CAPI on Android.
Is it difficult to put color on Androids, even for the whole msg?
Or having a different msg type for a general prompt, for example?
This might be good to separate error messages from warning messages, or prompt alerts.
Best
Ari

Gregory Martin
Posts: 1418
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Coloring text messages

Post by Gregory Martin » April 14th, 2021, 9:48 am

It's not particularly difficult on Android, but we'd have to think about how to allow users to specify colors, how to implement it on Windows, etc. We'll definitely add it to our list of feature requests.

Post Reply