Display Question

Post Reply
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Display Question

Post by Jeff Barnes »

Hi Everybody,

This may seem like an odd question but....

When displaying data on a screen in a graphical format I have seen programs that plot a datapoint every second ... for easy math lets say they collected data for one hour (3600 datapoints) and to keep it even easier lets say the data is all the same value. They give you the option to view the data in different time setups: 5 minutes, 30 minutes or all the data at one time.

Here is my question ...

If you select the option that shows you ALL the data (3600 datapoints) how are they displaying this info on the screen ...

For example: On my system I have the screen setup to 1024 x 768.
This means I have 1024 pixels I can turn on (in one line). Since all the datapoints are the same value I should end up with a straight line BUT how can I display more than 1024 datapoints?

Does anyone have a clue as to how this is done ?


Thanks,

Jeff
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Display Question

Post by Enrico Maria Giordano »

There are two choices that come up to my mind:

1. Divide X coords by a factor to keep them in the video range

2. Display the points on a control that can be horizontally scrolled

EMG
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Hi Enrico,

I tried to display the points on a window with HSCROLL added to the DEFINE... line but nothing happens when I try to scroll.

Jeff
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

You may try drawing the points on a bitmap hDC and then displaying that bitmap on a TBitmap control.

EMG
Post Reply