Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent Double Click
Message
De
28/05/2014 13:17:30
 
 
À
28/05/2014 13:11:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01600043
Message ID:
01600814
Vues:
46
>>>>>I have a form with combo box. If the user double clicks a list item and it happens to be over another control, the other control gets clicked.
>>>>>
>>>>>How can this be prevented?
>>>>
>>>>One option is to test for and consume all pending mouse-clicks in the click event of the combobox;
>>>>
>>>>
>>>>DO WHILE INKEY("HM") <> 0
>>>>ENDDO
>>>>
>>>
>>>Hi,
>>>
>>>sorry does not seem to work, do you have an other solution at hand?
>>>
>>>Regards,
>>>
>>>Koen
>>
>>If that doesn't work then the only other option I have is the one you will not want to hear :) and that is re-design the form layout to avoid that from happening. Or you could maybe consider changing the dropdown to a fixed list or a dropdown of only 1 row or move the dropdown towards the bottom of the form so that it drops down below the form and not over other controls..... Some design options like that?
>
>
>Hi,
>I have found something:
>
>1) added a new property to my combobox : aWrongcontrol
>2) populate the array with all the controls which will be coverred by the dropdown combobox
>3) in the downclick:
>parse the array aWrongcontrol and make all properties involved invisible
>4) in the click event
>Do While Inkey("HM") ! 0
>dodefault
>enddo
>parse the array aWrongcontrol and make all the properties involved visible
>
>Regards,
>
>Koen

I think this sounds a lot like a kludge and suggests to me that a form re-design would probably be a cleaner solution.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform