Jump to content
Software FX Community

GetScrollView


User (Legacy)

Recommended Posts

Posted

I'm trying to capture the Min and Max values for the XAxis using 

GetScrollValue, but nothing is returned. This code is placed behind check

box events that generate Constant Lines against the graph. I'd like the

scale to remain the same when the user decides to generate a contant line.

Instead, the Min and Max values are not captured, and the scale regenerates.

Dim dmin As Double = 0

Dim dmax As Double = 0

Chart1.AxisX.GetScrollView(dmin, dmax)

Chart1.AxisX.Step = [stepValue as Double]

Chart1.AxisX.Zoom(dmin, dmax)

Please advise...

Thanks, JJN

Posted

JJN,

I am sorry I don't quite understand your problem.

You are getting the current scrollview and zooming to it?

What does adding a constant line have to do with changing the scale?

Are you changing data together with generating a constant line?

Here are two methods you might want to read up on:

chart1.RecalcScale();

chart1.UpdateSizeNow();

Otherwise, please rephrase your question.

-c

"JJN" <jnassiff@hotmail.com> wrote in message

news:P8Pj4$V6FHA.472@webserver3.softwarefx.com...

> I'm trying to capture the Min and Max values for the XAxis using

> GetScrollValue, but nothing is returned. This code is placed behind check

> box events that generate Constant Lines against the graph. I'd like the

> scale to remain the same when the user decides to generate a contant line.

> Instead, the Min and Max values are not captured, and the scale

> regenerates.

>

>

> Dim dmin As Double = 0

> Dim dmax As Double = 0

> Chart1.AxisX.GetScrollView(dmin, dmax)

> Chart1.AxisX.Step = [stepValue as Double]

> Chart1.AxisX.Zoom(dmin, dmax)

>

> Please advise...

>

> Thanks, JJN

>

>

Archived

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

×
×
  • Create New...