Please enable JavaScript to view this site.

 

void = SetTemplateColorName(nIdx, sColorName)

 

This macro function changes the color referred to by the template color of index nIdx of the current DiaryGridLine to the color sColorName.

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

list of the colors defined in a template

list of the colors defined in a template

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 sColorName 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 17-Oct-2026