Q1231013. Setting color properties in ColdFusion 3.X
This article describes how to set color properties in Cold Fusion 3.X
ColdFusion 3.X supports ASP components but it DOES NOT support color properties, even though a color is just a long number. Please note that Allaire fixed this problem in ColdFusion 4.0.1 so you will not need the workarounds described below if you update to this version.
To workaround this limitation you will need to use the SendMsg method. This method has the following syntax
Chart.SendMsg(wMsg,wParam,lParam)
To set colors using this method you should use the following parameters:
wMsg: 26 to set the background color (RGBBk property)
27 to set the 2D background color (RGB2DBk property)
28 to set the 3D background color (RG3DBk property)
wParam This parameter should be set to 0
lParam This parameter should contain the numerical representation of the color, to get this color you can use the windows calculator to translate a hex number (BBGGRR) into a decimal number.
e.g.
' To set the background color to black <CFSET Chart1.SendMsg(26,0,0)>
' To set the 2D background color to white <CFSET Chart1.SendMsg(27,0,16777215)>
' To set the 3D background color to red <CFSET Chart1.SendMsg(28,0,256)>
ArticleID:Q1231013 Keywords:Cold Fusion; Color;Server; ASP;Server; ASP