[Gambas-user] ComboBox not editable + Combopbox_Change Event

Benoît Minisini gambas at ...1...
Sat May 31 12:50:10 CEST 2014


Le 31/05/2014 11:49, abbat81 a écrit :
> How to prevent editing any text in a ComboBox ?
> I can do it by "ReadOnly", but at  I lose Combobox_Change Event.
> So, how to prevent editing any text in a ComboBox ?
>

Set ReadOnly to TRUE, and don't use the Change event, but the Click event.

Change event means "the text field has changed".
Click means "a element has been selected in the popup".

Sorry, all that comes from VB.

Regards,

-- 
Benoît Minisini




More information about the User mailing list