TXBrowse():PageUp() problem with ADSCDX.

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

TXBrowse():PageUp() problem with ADSCDX.

Post 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)
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post 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
Regards

G. N. Rao.
Hyderabad, India
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post 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
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post 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
Regards

G. N. Rao.
Hyderabad, India
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post 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
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post 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.
Regards

G. N. Rao.
Hyderabad, India
Post Reply