Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP 7.0 active middle scroll on mouse

Status
Not open for further replies.

bettyfurr

Technical User
Mar 12, 2002
371
US
I have a user with a combobox that would like to use th scroll on the mouse to pick off her chose.

Are there any way to active this feature in VFP 7.0?

Thanks

Betty :-(
 
You may find the MiddleClick, MouseDown, and MouseMove events helpful in your endeavour. The nButton parameter for mousedown and mousemove will be 4 if it is the middle mouse button.

boyd.gif

 
Thank you for your help. Please give an example of what the
LPARAMETERS [nIndex,] nButton, nShift, nXCoord, nYCoord

I am having problems with the syntax.

Thank you again

Betty

:)
 
Those are events that fire for the combobox control. You needn't send in the lparameters as VFP/Windows will handle this for you...you just need to check the results and then do whatever you want based on whether the user was using the middle mouse button.

Code:
LPARAMETERS nButton, nShift, nXCoord, nYCoord
if nButton = 4
 *!* Do something useful here
endif

boyd.gif

 
The problem is that the middle scroll button is ignored. There is no movement of the mouse. I just want it to scroll the combobox items on the list.

Is this possible?

Betty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top