Jump to content
Software FX Community

terminal sevices - colors problem


User (Legacy)
 Share

Recommended Posts

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

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

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...