Page 1 of 1

TXBrowse():PageUp() problem with ADSCDX.

Posted: Tue Apr 15, 2008 2:26 am
by dutch
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

   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)

Posted: Tue Apr 15, 2008 5:25 am
by nageswaragunupudi
Mr Duch

In one of your programs include this line

Code: Select all

REQUEST ADSKEYCOUNT, ADSGETRELKEYPOS, ADSSETRELKEYPOS
and then build your project.

I normally include this line in the main program

Posted: Tue Apr 15, 2008 3:17 pm
by dutch
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

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

Posted: Tue Apr 15, 2008 3:52 pm
by nageswaragunupudi
>
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

Posted: Tue Apr 15, 2008 6:47 pm
by dutch
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

::bChange := {|| oBrw:Refresh() }
Anyway, thanks a lot for your helpful.

Regards,
Dutch

Posted: Tue Apr 15, 2008 7:48 pm
by nageswaragunupudi
>
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.