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:
01025662
Views:
12
Hi Nick,

MOUSE CLICK AT works, though the listbox (or part of it) has to be "in sight" for OBJTOCLIENT to read it properly. Before, I had lbxOptions completely out of sight so it would not overlap the button when lbxOptions got the focus. To make it work I had to make sure that at least one pixel of lbxOptions is in sight, and that the MOUSE CLICK should be over that pixel.

Thanks!




>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
Previous
Reply
Map
View

Click here to load this message in the networking platform