Display Question

Display Question

Postby Jeff Barnes » Thu Jan 11, 2007 12:24 am

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
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Display Question

Postby Enrico Maria Giordano » Thu Jan 11, 2007 8:19 am

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
Enrico Maria Giordano
 
Posts: 8348
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Jeff Barnes » Thu Jan 11, 2007 2:50 pm

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
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Enrico Maria Giordano » Thu Jan 11, 2007 2:56 pm

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

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], RSalazarU and 30 guests