XBrowse error in GoRight method

XBrowse error in GoRight method

Postby manuel_calero_solis » 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: Select all  Expand view

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"

Image

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
User avatar
manuel_calero_solis
 
Posts: 3
Joined: Tue Jan 29, 2019 11:12 am

Re: XBrowse error in GoRight method

Postby ukoenig » Thu May 09, 2019 1: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

Image

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

Re: XBrowse error in GoRight method

Postby nageswaragunupudi » Thu May 09, 2019 4:36 pm

Mr. Manuel

May I know which version of FWH are you using?
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 107 guests