TXBrowse():PageUp() problem with ADSCDX.

TXBrowse():PageUp() problem with ADSCDX.

Postby dutch » Tue Apr 15, 2008 2:26 am

Dear Antonio,

there is an error of ::PageUp() in TXBrowse() for ADS, when the items have more than number of lines in XBrowse. I use xHb.com/FWH 8.04/ADS.

I found when I press PageDown and PageUp, if there are a lot of items in XBrowse and effect only ADS.

Regards,
Dutch

Code: Select all  Expand view
   Error description : Error BASE/1001  Undefined function: ADSSETRELKEYPOS
   Args:
     [   1] = N   0.82

Stack Calls
===========
   Called from :  => ADSSETRELKEYPOS(0)
   Called from : xbrowse.prg => (b)TXBROWSE:SETRDD(2872)
   Called from : xbrowse.prg => TXBROWSE:PAGEUP(2096)
   Called from : xbrowse.prg => TXBROWSE:KEYDOWN(1575)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Postby nageswaragunupudi » Tue Apr 15, 2008 5:25 am

Mr Duch

In one of your programs include this line
Code: Select all  Expand view
REQUEST ADSKEYCOUNT, ADSGETRELKEYPOS, ADSSETRELKEYPOS

and then build your project.

I normally include this line in the main program
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby dutch » Tue Apr 15, 2008 3:17 pm

Dear nageswaragunupudi,

It's fixed. I've this line in my main program but it doesn't help. What is the different between EXTERNAL and REQUEST ?
Code: Select all  Expand view
external ADSKEYCOUNT, ADSGETRELKEYPOS, ADSSETRELKEYPOS


Another strange thing
When I :PageDown() until the last line and :PageUp(), then it can go to the first page but it cannot go to the first line (item). If I press :GoUp() or :GoDown() and then I will be able to press :PageUp() to first line.

Regards,
Dutch
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Postby nageswaragunupudi » Tue Apr 15, 2008 3:52 pm

>
What is the different between EXTERNAL and REQUEST ?
>
In my view both have the same effect of requesting the linker to link these symbols ( functions ).

>
When I :PageDown() until the last line and :PageUp(), then it can go to the first page but it cannot go to the first line (item). If I press :GoUp() or :GoDown() and then I will be able to press :PageUp() to first line.
>
It seems thats how the authors of the program have written it. If we express here what is the behavior we all like to have, I hope Mr Antonio can provide it in the next release. Meanwhile we may work out a fix if possible
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby dutch » Tue Apr 15, 2008 6:47 pm

Dear nageswaragunupudi,

nageswaragunupudi wrote:>
What is the different between EXTERNAL and REQUEST ?
>
In my view both have the same effect of requesting the linker to link these symbols ( functions ).

I put in REQUEST. It fixed but EXTERNAL got an error.

nageswaragunupudi wrote:>
When I :PageDown() until the last line and :PageUp(), then it can go to the first page but it cannot go to the first line (item). If I press :GoUp() or :GoDown() and then I will be able to press :PageUp() to first line.
>
It seems thats how the authors of the program have written it. If we express here what is the behavior we all like to have, I hope Mr Antonio can provide it in the next release. Meanwhile we may work out a fix if possible


I try to remove this following line, it fixed but somewhere with this line without problem. I'm not quite understand.
Code: Select all  Expand view
::bChange := {|| oBrw:Refresh() }


Anyway, thanks a lot for your helpful.

Regards,
Dutch
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Postby nageswaragunupudi » Tue Apr 15, 2008 7:48 pm

>
I put in REQUEST. It fixed but EXTERNAL got an error.
>
I dont see why should you get an error. I use either external or request and both work fine for me.

>
:bChange := {|| oBrw:Refresh() }
>

Unless you are referring to another browse, this slows down browse a lot. Because refreshing entire browse with every row movement costs lot of time.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests