ComboBox behavior

2 questions regarding a comboBox.

1.  Is it poosible to have it initiated in the drop down position. ie. As if the drop down arrow was clicked.

2.  Can I make the drop down section respond to the mouse wheel. The combobox itself responds to the wheel. It's the dropdown section that does not. I looked in the mouse wheel method and found this.

                      LPARAMETERS nDirection, nShift, nXCoord, nYCoord

But am not sure what to do /

Thanks.
Michael
MichaelKatzAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pcelbaCommented:
1. Yes, this is possible. Place the following code into the form's Init or other suitable method:
THISFORM.YourComboName.SetFocus
KEYBOARD '{F4}'

Open in new window


2. Mouse wheel works when the mouse cursor is not placed on the highlited row which is not always possible: When you activate the combo by F4 key in form's Init then the dropdown section reacts to the mouse wheel. If you activate it by pressing the down arrow then the highlited row follows the mouse cursor and mouse wheel is "inactive". If you leave the mouse cursor on the down arrow then the mouse wheel works and it even allows to scroll from the last item in the drop down to the first one.

This behavior may change in different VFP versions. Mine is Visual FoxPro 09.00.0000.7423 for Windows.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MichaelKatzAuthor Commented:

Thanks.
Both solutions were exactly what I was looking for.
0
MichaelKatzAuthor Commented:
This was the quickest and response I ever received. AND, it was right on target.
0
pcelbaCommented:
It was easy to answer because you know how to ask.

The answer could be even faster but I am watching TV this evening... :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FoxPro

From novice to tech pro — start learning today.