FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Display Question
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM

Display Question

Posted: 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

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Display Question

Posted: Thu Jan 11, 2007 08: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

Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM

Display Question

Posted: Thu Jan 11, 2007 02: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

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Display Question

Posted: Thu Jan 11, 2007 02:56 PM

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

EMG

Continue the discussion