How To - Add Color To Parameter Descriptions

How can I add color to a parameter’s descriptive text. I want to do something like this:

showBTOverview = ParamToggle(EncodeColor(colorRed)+"Show Overview in Interpretation window",EncodeColor(colorGreen)+"No|Yes",defaultval = 0);
1 Like

If you want to change the color of the text displayed in the Parameters window, I'm afraid, it cannot be done.

Przechwytywanie

But (you probably know that) you can easily change the color and style of the text in the Interpretation window.

An example TJ code from: https://www.amibroker.com/guide/h_commentary.html

printf("<b>Bold text</b>\n");
printf("<i>Italic text</i>\n");
printf("Now " + EncodeColor( colorRed ) + "red text\n");
printf("and finally " + EncodeColor( colorGreen ) + "green <b>AND bold <i>AND italic</i></b>\n");
printf(EncodeColor( colorBlack ) + "going back to black");

Przechwytywanie

1 Like