Jump to content
Software FX Community

Zoom region

Software FX

Recommended Posts

Yes, is possible to get the zoomed coordinates, using the following code:

Private Sub Form_Load()

ChartFX1.TypeMask = ChartFX1.TypeMask Or CT_TRACKMOUSE

End Sub

Private Sub ChartFX1_MouseMoving(ByVal x As Integer, ByVal y As Integer, nRes As Integer)

Dim nHit As CfxHitTest

Dim nSeries As Integer

Dim nPoint As Long

Dim dX As Double

Dim dy As Double

' Convert from pixel to logical X,Y coordinates

ChartFX1.PixelToValue x, y, dX, dy, AXIS_Y

Text1.Text = Format(dX, "0.0")

Text2.Text = Format(dy, "#")

' Find out what was hit

nHit = ChartFX1.HitTest(x, y, nSeries, nPoint)

Text3.Text = nSeries + 1

Text4.Text = nPoint + 1

End Sub

This sample will get mouse move and button down and mouse button up to apply those values to the zoomin event.

<<mouse zoom.frm>> <<mouse zoom.frx>> <<mouse zoom.vbp>> <<mouse zoom.vbw>>

Please, take the time to answer this questions.

We are in the process of improving our technical support. We request that you please answer a couple of questions of ours. In order to avoid future delays, please include this information with each tech support inquiry.

1) Are you a current customer or a trial user of Software FX?

2) Which product are you requesting technical support for?


5200 Town Center Circle, Tower I, Suite 450

Boca Raton, FL 33486. USA

Toll Free: (800) 392-4278

Telephone: (561) 392-5089

Tech Support: (561) 392-2023, Ext. 207

Fax: (561) 392-3328 / 998-2383

-----Original Message-----

From: Abram Krebs [mailto:duckwood@gamry.com]

Sent: Friday, October 27, 2000 11:21 AM

Posted To: General

Conversation: Zoom region

Subject: Zoom region

Is it possible to get the values of the zoomed region? e.g. I have a chart

from 0 to 100 in the X and 0 to 100 in the Y. The user zooms, and is

viewing 25-35 in the X and 45-55 in the Y. Can I get these coordinates?

The Axis Min and Max still relate to the overall graph...



Link to comment
Share on other sites


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

  • Create New...