Jump to content
Software FX Community

Regd Axis Scroll size and Scroll position


sudidela
 Share

Recommended Posts

In a windows application i am working on, i have implemented a custom zoom to capture the exact area selected by the user for zoom.

after zoom is done, some times AxisX scroll view is not refreshing and so if we move scroll bar, application is crashing......

So to find the root cause of this, at one point of time i found that crash is happening when

if ((Chart.AxisX.ScrollSize - Chart.AxisX.ScrollPosition) == 1 )

then  application is crashing.

so if the above condition executes, i am writing the below code

Chart.AxisX.ZoomOff();

Chart.AxisX.Step = PreviousAxisXStep; // PreviousAxisXStep is stored before zoom is done

cfxBaseChart.Refresh();

 

Then AxisX is getting refreshed and there will not appear scroll bar for X-axis..

If data points are less, it's ok. Flickering will not be there....

If large no of data points are there, then flickering is involved......which is very bad experience for the user....

What does this Chart.AxisX.ScrollSize and Chart.AxisX.ScrollPosition literally mean??????

 

Please help me out of this problem.......

Thanks in Advance........

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