FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Disable mouse wheel
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Disable mouse wheel
Posted: Mon Oct 27, 2008 03:39 AM

Hello,

How do I disable mouse wheel events?

Thank You,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Disable mouse wheel
Posted: Mon Oct 27, 2008 08:58 AM

Darrell,

On what controls do you want to disable the mouse wheel support ?

You can disable it for any control, including this in the desired class:

METHOD MouseWheel( nKeys, nDelta, nXPos, nYPos ) VIRTUAL

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Disable mouse wheel
Posted: Mon Oct 27, 2008 12:12 PM

Hi Antonio,

I have a function that is called from a listbox where the user highlights the record then clicks a button. What is happening is that the user is using the mouse wheel by accident and it is causing the highlighted record in the listbox to move. I would like to disable the mouse wheel when this function is called. Can you provide sample code?

Thank You,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Disable mouse wheel
Posted: Mon Oct 27, 2008 02:28 PM

Darrell,

Is it a standard listbox or a browse ?

If it is a browse, is it a TWBrowse or a TXBrowse ? or a third party one ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Disable mouse wheel
Posted: Mon Oct 27, 2008 08:34 PM

Hi Antonio,

Yes,

@135,000 LISTBOX oLbx FIELDS ...

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Disable mouse wheel
Posted: Mon Oct 27, 2008 08:55 PM

Darrell,

You have to modify fwh\source\classes\wbrowse.prg this way:

METHOD MouseWheel( nKeys, nDelta, nXPos, nYPos ) VIRTUAL

and comment its source code in the same PRG

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion