Jump to content
Software FX Community

Modifying existing value...


User (Legacy)

Recommended Posts

Hello,

I am working on the latest SP of your client/server ChartFX Control under

VB6 SP5.

I am adding a vast number of candlesticks to a chart by looping through my

data and adding each point with your API. This works fine. Also, I am

opening the data with the api ( ChartFX.OpenDataEx COD_VALUES, COD_UNCHANGE,

COD_UNCHANGE ) and modify the last candle's data every few seconds to

reflect the most up to date data. However, even if I close the opendataex

with a COD_SMOOTH tag, I am still seeing (on a 500mhz AMD test platform) all

the candles redraw, not just the last one. Is there a better way to

accomplish this?

Also, every minute or so the last candle does not update, but rather a new

candle is added. I am using (ChartFX.OpenDataEx COD_VALUES, COD_UNCHANGE,

COD_UNKNOWN) the api to accomplish this, and see everything redrawn here as

well.

I have set "chartfx.scrollable = false" so the user is forced to see all the

data at once; however, if he is using the zoom tool on part of the chart, he

will be unzoomed when I fire the first mentioned update event (when the last

candle is modified)... Is there a way to prevent him from being zoomed out?

Finally, please bare in mind that I am also using the financial extension,

so any fix must be compatible with it.

Thanking you in advance,

Chase Gale

Link to comment
Share on other sites

Check all properties that you are assigning every time the timer is fired,

COD_SMOOTH will only work if all you do is set the Value properties

(ValueEx, XValueEx,IniValueEx) any other property will cause a full refresh.

There is a flag in the TypeEx property called CTE_SMOOTH, this flag will

cause a biblitz operation EVERY time the chart is redrawn regardless of the

operation that caused the redraw.

As for a value being added, make sure that the indexes of the ValueEx

property contain the right values, even if you use COD_UNCHANGE, if you set

a value outside of the current range the chart's data will automatically

grow.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

I'll work on that... thank you. Also, Did you discover anything about

zooming? If the user is zoomed in on a particular part of the chart and I

update any point, the chart unzooms... Is there a way to prevent this

behavior?

Thanks,

Chase Gale

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:fej2C97xCHA.2184@webserver1.softwarefx.com...

> Check all properties that you are assigning every time the timer is fired,

> COD_SMOOTH will only work if all you do is set the Value properties

> (ValueEx, XValueEx,IniValueEx) any other property will cause a full

refresh.

>

> There is a flag in the TypeEx property called CTE_SMOOTH, this flag will

> cause a biblitz operation EVERY time the chart is redrawn regardless of

the

> operation that caused the redraw.

>

> As for a value being added, make sure that the indexes of the ValueEx

> property contain the right values, even if you use COD_UNCHANGE, if you

set

> a value outside of the current range the chart's data will automatically

> grow.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

I tried this and didn't not get the behavior you are describing. On a

default chart, I added a button to the same form with the following code

(Click):

ChartFX1.OpenDataEx COD_VALUES, COD_UNCHANGE, COD_UNCHANGE

ChartFX1.ValueEx(0, 0) = Rnd(100)

ChartFX1.CloseData COD_VALUES

I zoom in, then press the button and the Zoom position and size remains

unchanged.

Can you give us a little bit more details on how to reproduce this case.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

I'm using candlestick gallery with the chartfx Financial extension. I

believe ChartFXFE is doing something that you can replicate with ChartFX

client/Server alone.

Chase Gale

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:1fAIsO9yCHA.2184@webserver1.softwarefx.com...

> I tried this and didn't not get the behavior you are describing. On a

> default chart, I added a button to the same form with the following code

> (Click):

>

> ChartFX1.OpenDataEx COD_VALUES, COD_UNCHANGE, COD_UNCHANGE

> ChartFX1.ValueEx(0, 0) = Rnd(100)

> ChartFX1.CloseData COD_VALUES

>

> I zoom in, then press the button and the Zoom position and size remains

> unchanged.

>

> Can you give us a little bit more details on how to reproduce this case.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...