Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Network:
Windows 2008 Server
>>>>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?
>>>
>>>
>>>Hi,
>>>
>>>I have constructed a class: A double click on an item in the dropdown which is over an other control prevents the other control to get clicked.
>>>You have to set in the init of your combobox the propertie(s) which you want to protect.
>>>See attached form1, Combo colours is with this class, combo cities is the native combo.
>>>The class needs to be enhanced so that you can also use this combo in a grid.
>>>For the time being, although called klumsy and idiosyncratic it prevents users to make a remark and it also prevents the by-design flaw in VFP.
>>>
>>>Feel free to report any bugs and enhancements.
>>>
>>>Koen
>>
>>It is by-design, not a flaw. Idiosyncracy is not a good idea.
>
>Peter,
>
>is it also by design that the method Doubleclick in a combobox does not get fired when you double click?
>
>Groet,
>
>Koen
If I'm not mistaken, doubleclick event DOES get fired -- at least in the textbox part of the combo box. It doesn't appear to fire when applied to the dropdown list portion however (though I've heard rumor that it DOES fire if the date is the 32nd of February if it is the eighth day of the week on a night of a full moon immediately following a new moon for years that are prime and evenly divisible by two and three).
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement