Mousewheel and Wbrowse

Mousewheel and Wbrowse

Postby peterk » Wed Jul 22, 2009 3:16 pm

Hi Antonio

Occasionally in our browses using wbrowse, when scrolling down or up using the mouse wheel, the browse scrolls left or right instead
This has been irritating me for a long time. The following seems to be the offending code:

METHOD MouseWheel( nKeys, nDelta, nXPos, nYPos ) CLASS TWBrowse

local aPos := { nYPos, nXPos }
aPos := ScreenToClient( ::hWnd, aPos )

if aPos[ 1 ] > ::nHeight * 0.80
if nDelta > 0
::GoLeft()
else
::GoRight()
endif
else
etc

The *.8 above seems to some sort of guestimate value and I think causes the wrong behavior occasionally.
Can you explain the *8 please / consider the above

Thanks
Peter
Peter
peterk
 
Posts: 47
Joined: Thu Jul 13, 2006 2:39 pm

Re: Mousewheel and Wbrowse

Postby James Bott » Wed Jul 22, 2009 4:17 pm

It was supposed to be a feature. When the cursor is near the bottom, the browse scrolls to the horizontally insead of vertically. Perhaps WBrowse should have a flag to turn this off. If you would like this, I suggest asking Antonio.

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

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