Please enable JavaScript to view this site.

 

void = SetTemplateColorName(nIdx, nColorName)

 

list of the colors defined in a template

list of the colors defined in a template

This macro function changes the color referred to by the template color of index nIdx to the color nColorName.

// at the beginning of diary generation
// set the second template color to CYAN
sColorName = SetTemplateColorName(2'CYAN')

Some remarks:

 

The value of the parameter nIdx is limited to the values 1, 2, or 3.

This function changes the color referred to by one of the template colors; it does not simply rename it. This means that there must already be a color of the name nColorName in the list of colors in the current template.

The change made by a call to this function remains for the remainder of the current diary generation (or until another call is made to the same function).

 

See also: GetTemplateColorName, FormatText, native text formatting, FormatParagraph, template colors, template information.

 


Topic 181030, last updated on 30-Jun-2020