Code: Select all
FUNCTION SetMouseWheel(nScrollRows)
DEFAULT nScrollRows := 0
IF nScrollRows <= 0
SystemParametersInfoA(104,0,@nScrollRows,0)
MsgBox('Wheel is set to move the cursor '+LTrim(Str(nScrollRows))+' lines')
ELSE
SystemParametersInfoA(105,@nScrollRows,0,0x0002)
ENDIF
RETURN nil
But this function sets the value for the whole system - and other applications aswell. I'd prefer to set this only for browses inside my application. I already played with the :Wheel-slot, but I failed when I tried to create a subclass for DC_XbpBrowse which includes this.
Is there an easy solution for something like DCBROWSE ... MOUSEWHEEL n?
