User (Legacy) Posted May 27, 2003 Report Share Posted May 27, 2003 Hi, I am using latest CFX Activex in simple ASP page in IE6. When I load this page on my local machine it works fine. When I load this page from Win2K Terminal Sevices as soon as the chart loads it changes the backgroud color of the page. Also if I load the chart in a frame with another ActiveX control (Vflex grid component) in another frame...as soon as the chart loads the colors in the grid change. If change the palette of the chart, color in the underlying HTML and the other Activex change again. Any ideas what is causing this? Link to comment Share on other sites More sharing options...
Software FX Posted May 28, 2003 Report Share Posted May 28, 2003 Looks like you are using a palette in your system, this causes chart FX to change the palette to accommodate the colors being displayed and might cause other controls to change colors because there is not enough of them to go around. There is a flag in Chart FX that will prevent it from using palettes, it is called CTE_USEPALETTE, this flag is ON by default when the system in which you are running has no support for "true colors". You can turn it OFF using the TypeEx property as follows: Chart1.TypeEx = Chart1.TypeEx and not CTE_USEPALETTE Notice that this will cause dithering, as colors used by chart FX are not available in a 256 color environment. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 29, 2003 Author Report Share Posted May 29, 2003 Hi, Thanks for your response. I have switched off the pallete but colors are still changing. When I first run the chart, everything is fine. If I refresh it then colors in other controls change. What do you mean by "colors used by chart FX are not available in a 256 color environment"? Surely I can programmatically set colors used by a particular chart to use colors available in 256 environment? Please help if you can Thanks "SoftwareFX Support" <support@softwarefx.com> wrote in message news:BUI5ukSJDHA.1060@webserver1.softwarefx.com... > Looks like you are using a palette in your system, this causes chart FX to > change the palette to accommodate the colors being displayed and might cause > other controls to change colors because there is not enough of them to go > around. > > There is a flag in Chart FX that will prevent it from using palettes, it is > called CTE_USEPALETTE, this flag is ON by default when the system in which > you are running has no support for "true colors". You can turn it OFF using > the TypeEx property as follows: > > Chart1.TypeEx = Chart1.TypeEx and not CTE_USEPALETTE > > Notice that this will cause dithering, as colors used by chart FX are not > available in a 256 color environment. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted May 31, 2003 Report Share Posted May 31, 2003 1) Can you please specify the line of code you used to turn OFF the palette ? 2) What I meant by "colors used by chart FX are not available in a 256 color environment" is that in a 256 color environment, only 16 colors or so are predefined the rest needs to be mixed into the system palette, when several controls/programs do this, you may see the effect you mentioned because there is simply not enough color to go around. Turning OFF the palette setting will remove ALL PALETTES uses from Chart FX meaning that when drawing, Chart FX will use ABSOLUTE colors instead of palette indexes leaving the system palette unchanged. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.