Jump to content
Software FX Community

Points Shifting on SetScrollView


User (Legacy)
 Share

Recommended Posts

I have a chart with 144 data points  (every 10 minutes).  I allow the user

to zoom in, at which point I want to show 3 hours. If i zoom in , and

scroll to the beginning of the day/chart, and modify values (say at 8:10 and

8:20), then, as soon as i scroll away (using setscrollview) the values get

shifted by 1 datapoint and become 8:20 and 8:30. Only if i scroll back to

the chart beginning (far left) does it correct itself.

I am using SetScrollView( pos, pos+18) to get to a particular dataset.

any ideas?

thanx,

dev

Link to comment
Share on other sites

Ok, as you probably  hoped... in creating a test case to send, i was able to

fix the problem.

I found that if you have AXIS_X.STEP > 1 (i have it at 6), and

SetScrollView(1,20), it shows points 0 thru point 19, but if I have STEP =

1, it shows points 1 through point 20. So, to fix it, I set STEP = 1 and

SetScrollView( 1,19 ).

thanx for your quick and willing support,

dev

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

news:rs9A9BBqBHA.1412@webserver1.softwarefx.com...

> We have been unable to reproduce this problem with the information you

have

> given us. Could you please send us a piece of code (sample) that

reproduces

> it ?

>

> --

> 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...