How can I disable mouse wheel in FWH 8.10?
Thank You,
#include "FiveWin.ch"
...
OVERRIDE METHOD MouseWheel IN CLASS TXBrowse WITH MyMouseWheel
...
function MyMouseWheel( nKey, nDelta, nXPos, nYPos )
// local Self := HB_QSelf()
return nil
//----------------------------------------------------------------------------//
STATIC FUNCTION BasicCell( oWnd )
local oChild, oBrw
DEFINE WINDOW oChild TITLE "Basic Cell selector browse" MDICHILD OF oWnd
@ 0,0 XBROWSE oBrw OF oWnd ALIAS Alias()
oBrw:CreateFromCode()
oBrw:cToolTip = "This is a test"
oBrw:lMouseWheel := .F. // NEW
oChild:oClient := oBrw
ACTIVATE WINDOW oChild ON INIT oBrw:SetFocus()
RETURN NIL
//----------------------------------------------------------------------------//
METHOD New( oWnd ) CLASS TXBrowse
...
::lMouseWheel := .T.
...
return Self
//----------------------------------------------------------------------------//
METHOD MouseWheel( nKeys, nDelta, nXPos, nYPos ) CLASS TXBrowse
local aPoint := { nYPos, nXPos }
if ! ::lMouseWheel
return NIL
endif
ScreenToClient( ::hWnd, aPoint )
if IsOverWnd( ::hWnd, aPoint[ 1 ], aPoint[ 2 ] ) .and. ;
...
return NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 95 guests