Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to force a droplist drop
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01025595
Message ID:
01025631
Views:
22
This message has been marked as the solution to the initial question of the thread.
Hi Sorin,
*** Button.Click()
lnLeft = MROW((thisform.Name), 3)
lnTop = MCOL((thisform.Name), 3)

MOUSE CLICK AT ;
OBJTOCLIENT(This.Parent.lbxOptions,1)  + 5, ;
OBJTOCLIENT(This.Parent.lbxOptions,2) +  OBJTOCLIENT(This.Parent.lbxOptions, 3) - 5 ;
PIXELS WINDOW (thisform.Name)

MOUSE AT lnLeft,  lnTop PIXELS WINDOW (thisform.Name)
>Hi,
>
>I have a button and a dropdown list in a container. The button is visible and the list is positioned at Top= -10, Left = -10. On button.click I'd like the list to drop and getfocus, so I have this in the button click event:
>
This.Parent.lbxOptions.SetFocus()
>KEYBOARD '{SPACEBAR}'
>It all works, except that the list highlight does not react to mouse move. I assume it has to do with the KEYBOARD '{SPACEBAR}' command (?).
>Could anyone suggest a different way of making the list drop and at the same time react to mouse movements?
>
>TIA
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform