Hi Everybody,
I have an array full of numbers that I plot on the screen.
For easy reference, lets say my array holds 100,000 numbers and I display 1000 at a time. My user can page forward and back through all this data.
I would like to show some kind of "you are here" type bar so they have an idea of where in the data they are.
Can anyone please give me some ideas as to how I would do this?
Need some ideas
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
Need some ideas
Thanks,
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
Hello Jeff,
I am working on a new datepicker. I would like to select the duration of an appointment with the mouse. The position of the mouse shows a tooltip with the date of the mouseposition.
As I use an array to hold the days of the year I thought maybe this could be of use
for you. Depending on the length of the numbers I see no problem to show 1000 on a screen.
As I use oWnd:say to show the “cells” I don’t have problems with handles and memory.
If this could be of help I send you the sources.
Regrads,
Otto
The idea to such a type of datepicker is from Timm ( Easyreport).
He resolved the task with a browser I try to do the same with
an array.
I am working on a new datepicker. I would like to select the duration of an appointment with the mouse. The position of the mouse shows a tooltip with the date of the mouseposition.
As I use an array to hold the days of the year I thought maybe this could be of use
for you. Depending on the length of the numbers I see no problem to show 1000 on a screen.
As I use oWnd:say to show the “cells” I don’t have problems with handles and memory.
If this could be of help I send you the sources.
Regrads,
Otto
The idea to such a type of datepicker is from Timm ( Easyreport).
He resolved the task with a browser I try to do the same with
an array.
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
Jeff, if you define the Window with
DEFINE WINDOW oWndPlan TITLE "Kalender" ;
HSCROLL ;
FROM 5, 5 TO 24, 98
you have the scrollbar.
Then you can use these methods:
oWindPlan:oHScroll():SetRange(1,oWindPlan:nHorzRes())
oWindPlan:oHScroll():SetPos(oWindPlan:nHorzRes()/2)
oWindPlan:oHScroll():SetPos(nPos:=nPos+7));
here you can use 100 or 1000 ...
Regards,
Otto
DEFINE WINDOW oWndPlan TITLE "Kalender" ;
HSCROLL ;
FROM 5, 5 TO 24, 98
you have the scrollbar.
Then you can use these methods:
oWindPlan:oHScroll():SetRange(1,oWindPlan:nHorzRes())
oWindPlan:oHScroll():SetPos(oWindPlan:nHorzRes()/2)
oWindPlan:oHScroll():SetPos(nPos:=nPos+7));
here you can use 100 or 1000 ...
Regards,
Otto
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
Otto,
Here is a screen shot. I already have the data plotted ... I just need a way to let the user know where they are in the record (array).
www.can-soft.net/dl/Sample.bmp
Here is a screen shot. I already have the data plotted ... I just need a way to let the user know where they are in the record (array).
www.can-soft.net/dl/Sample.bmp
Thanks,
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
Array-positions
Hello Jeff,
just have a look at my new toppic
maybe it helps.
Regards
Uwe
just have a look at my new toppic
maybe it helps.
Regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact: