Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to force a droplist drop
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01025595
Message ID:
01025631
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform