Applying Color to Heading Text

I'm recreating the main column for some objects using Layout DXL and I'ld like to change the color to blue. I've seen posts here that show how to apply color, however, that solution changes the font size. I'd like to keep the larger Heading font size, but I cant find a way to do it. I've used the "font(getCanvas(" command to recreate the main column using the matching font of the main column, but I cant find a way to just change the color.

Any ideas?

 

Abe

 


abe777 - Mon Jul 29 11:55:56 EDT 2013

Re: Applying Color to Heading Text
Pekka_Makinen - Tue Jul 30 01:36:35 EDT 2013

You can change the font color in a canvas by using the color or realColor functions.

realColor(getCanvas, realColor_Blue)
 

Re: Applying Color to Heading Text
KBSri - Tue Jul 30 09:08:47 EDT 2013

You can add the color only for specific columns  and attributes in a view.

Declare the following the code where you need to apply the code :

AttrType attrColor = create("Color Sample1", names, values, colors, mess)

color(colColorHandle1, "Domain_Name")

Domain Name  is in which domain you can apply the color.

You can check for the color 'blue' code in DXL help.

Regards,
Shriraam

Re: Applying Color to Heading Text
abe777 - Tue Jul 30 12:26:43 EDT 2013

Pekka_Makinen - Tue Jul 30 01:36:35 EDT 2013

You can change the font color in a canvas by using the color or realColor functions.

realColor(getCanvas, realColor_Blue)
 

Pekka,

Thank you, this works great, however, I had to use "display" instead of "displayRichWithColor".

Do you know how to change to font size of rich text? I've tried using "{\\fs28" myText "}" without success.

Abe

Re: Applying Color to Heading Text
abe777 - Tue Jul 30 12:28:07 EDT 2013

KBSri - Tue Jul 30 09:08:47 EDT 2013

You can add the color only for specific columns  and attributes in a view.

Declare the following the code where you need to apply the code :

AttrType attrColor = create("Color Sample1", names, values, colors, mess)

color(colColorHandle1, "Domain_Name")

Domain Name  is in which domain you can apply the color.

You can check for the color 'blue' code in DXL help.

Regards,
Shriraam

Thank you, I'll try this.