Need some ideas

Need some ideas

Postby Jeff Barnes » Wed Mar 19, 2008 3:56 pm

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?
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Otto » Wed Mar 19, 2008 4:28 pm

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.



Image
User avatar
Otto
 
Posts: 6344
Joined: Fri Oct 07, 2005 7:07 pm

Postby Jeff Barnes » Wed Mar 19, 2008 4:58 pm

Thanks Otto.

But I think what I need is something like a scrollbar that you see in a browse but horizontal.

Do you know if there is a scrollbar control?
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Otto » Wed Mar 19, 2008 5:01 pm

Jeff, could you post some of the numbers to see how you would like to plot them.
Regards,
Otto
User avatar
Otto
 
Posts: 6344
Joined: Fri Oct 07, 2005 7:07 pm

Postby Otto » Wed Mar 19, 2008 5:23 pm

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

Image
User avatar
Otto
 
Posts: 6344
Joined: Fri Oct 07, 2005 7:07 pm

Postby Jeff Barnes » Wed Mar 19, 2008 5:33 pm

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).

[url]
www.can-soft.net/dl/Sample.bmp
[/url]
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Jeff Barnes » Wed Mar 19, 2008 6:27 pm

Thanks Otto.

Using your suggestions I am almost there.

Is it possible to have the scrollbar somewhere else on the screen (other than at the bottom)?
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Array-positions

Postby ukoenig » Wed Mar 19, 2008 7:54 pm

Hello Jeff,

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Antonio Linares » Wed Mar 19, 2008 8:12 pm

Jeff,

> Is it possible to have the scrollbar somewhere else on the screen (other than at the bottom)?

Yes. You can create a scrollbar control anywhere.

Please review samples\TestScrl.prg. Use the clause HORIZONTAL to create it horizontal instead of vertical.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Jeff Barnes » Thu Mar 20, 2008 1:21 am

Got it working :-)

Is there an updated look to the scrollbar?
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: dutch, Google [Bot] and 67 guests