FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBrowse error in GoRight method
Posts: 3
Joined: Tue Jan 29, 2019 11:12 AM
XBrowse error in GoRight method
Posted: Wed Feb 06, 2019 10:41 PM
There is an error in the movement between the columns of an Xbrowse with selection by columns.

The error occurs when you move to the right and instead of placing the focus in the next column on the right, the selected column returns a couple of columns to the left.

The error is in GoRight() method

Code (fw): Select all Collapse
METHOD GoRight( lOffset, lRefresh )

...

      do while ! ::IsDisplayPosVisible( oCol:nPos, .t. ) .and. ::nColSel > ( ::nFreeze + 1 )
         ::nColOffSet++
         ::nColSel--
         ::GetDisplayCols()
      enddo

...



In this gif I show you the wrong behavior of XBrowse.

Set as being in the column "Total precios" the next to the right is "Propiedades", but nevertheless it goes to "Precio"



I hope that a solution can be found, it is a very bad experience for a user who wants to go to the next column and end up backing two.

regards
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: XBrowse error in GoRight method
Posted: Thu May 09, 2019 01:04 PM
It seems, the problem still exists
it happens using the arrow-key. On mouseclick it works.
I need it to call a function on column-change using the arrow-key.

There is an error in the movement between the columns of an Xbrowse with selection by columns.
The error occurs when you move to the right and instead of placing the focus in the next column on the right,
the selected column returns a couple of columns to the left.


viewtopic.php?f=3&t=35869&p=221679#p221679

I had a look at METHOD KeyDown

and added a message

METHOD KeyDown( nKey, nFlags ) CLASS TXBrowse
...
...
case nKey == VK_RIGHT

if GetKeyState( VK_CONTROL )
::GoRightMost()
else
MsgAlert( STR(nKey), "Go right" )
::GoRight() :-)
endif

closing the message the cell is painted
without the message nothing happens



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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse error in GoRight method
Posted: Thu May 09, 2019 04:36 PM

Mr. Manuel

May I know which version of FWH are you using?

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion