Page 1 of 1

Coloring text messages

Posted: April 7th, 2021, 5:09 pm
by AriSilva
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.

Re: Coloring text messages

Posted: April 8th, 2021, 11:39 am
by Gregory Martin
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.

Re: Coloring text messages

Posted: April 8th, 2021, 5:04 pm
by AriSilva
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.

Re: Coloring text messages

Posted: April 14th, 2021, 9:48 am
by Gregory Martin
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.