CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Posts
    3

    Selecting rows on mschart using the mouse

    Hi,

    I want people to be able to click on a line MsChart and then return information about all of the datapoints in that row. MsChart has a mousedown and mouseup property which returns the x and y coordinates of the mouse click, but this doesn't easily translate to the row number, particularly if the axes change. Is there an easy way to return which row has been clicked on by the user?



  2. #2
    Join Date
    Jan 2000
    Posts
    11

    Re: Selecting rows on mschart using the mouse

    I think that you should use the events and actions of the plot object of mschart instead of the events of the chart object itself. From plot you can get if axis are clicked and all the events you need. Look at sybase's Chart control at www.sybase.com (vschart) that is a superset of mschart.


  3. #3
    Join Date
    Jan 2000
    Posts
    3

    Re: Selecting rows on mschart using the mouse

    I forgot to mention that I only have vb5, and I can't seem to find the events you mention. Is this a new feature of vb6, and if so, is there any other way to solve the problem using vb5?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured