Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2004, 11:46 PM
Authorized User
 
Join Date: Sep 2004
Posts: 13
Thanks: 0
Thanked 1 Time in 1 Post
Default ChartDirector-HELP

Hi,

I need to get the coordinate X and Y when the mouse click somewhere in the graph area. How can I do this?

I am declaring as

dim chartimage as Image

so the mouse muct click/mouseup/mousedown within that image area to get the value of X and Y.

While playing it.. when I use

chartimage_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single),

i got the value of X and Y, but I think it doesnt represent the graph/chart value. For instance, i placed my mouse at (24,0), the value that came out is (3330, 3810), How to make the value that come out is (24,0)?, in other words, the value of X and Y must be according/in the range of the chart/graph scale.

ps: if anyone have the solution but for MsChart, please feel free to share your solution with me.

Thanks










Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.