Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Windows
 Charting and Real-Time Graphics Tools for Windows
 position on a scroll bar
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

senkyoshi

6 Posts

Posted - 07 Sep 2005 :  16:44:49  Show Profile  Reply with Quote
Bear with me on my question. I am picking up a project that someone else started and I am still learning QC programming.
I have an application that displays a stripchart with data and with a scrollbar for when the data contained in the stripchart becomes too long (the user can scroll through the data). The application also has a tool that scans the data for areas where the data reached a specified amplitude. After one such region of data is found I want the strip chart to automatically scroll to the region of interest(where it has reached a specified amplitude). WRSetScrollPos is a nice function that moves the stripchart to the location desired but it moves the scrollbar according to the scroll location provided as a parameter. Instead of telling the graph to move by scroll location can I move the scrollbar according to the point of data that I want displayed in the stripchart? Any ideas? Thanks

quinncurtis

1164 Posts

Posted - 08 Sep 2005 :  10:55:56  Show Profile  Reply with Quote
Sorry, but I don't really understand what you are asking.

When you say "can I move the scrollbar according to the point of data that I want displayed in the stripchart"

what information exactly do you want to index the scrollbar. Is it the index of the data point in a static or dynamic dataset, is the x or y value of the data point ?

Why can't you use a simple mx+ b scaling operation to convert from the data point that you want to display to the physical coordinate range you setup the scrollbar for.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07